java - Security manager rarely used on server? -



java - Security manager rarely used on server? -

a recent question on lead me older answer java security manager. question line in answer:

the security manager impacts performances though, , used on server side.

can please or refute? thought there always security manager, custom 1 or default , containers utilize time.

in server-side code you write, can't think need utilize securitymanager, since if writing code perform operation in your application, it's unlikely need check if code has permissions have given it.

for instance, lot of methods in securitymanager related io operations - checkdelete(), checkread(), checkwrite(), etc. jdk library classes phone call these methods when seek create/write/read/delete file, calling them pointless.

so it's unlikely server-side code create much utilize of securitymanager. however, code code runs in - if deployed in servlet container instance - might create utilize of these methods, because interested in determining if your code has level of permission they give it.

java securitymanager

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -