Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uses of Java Security Manager

I was reading some article on Java Security, and came across uses of java.policy files for granting permission to the source code coming from different code sources.

My question is, do we still use the Policy files for granting permissions to the source code?

Or use Java Security manager for restricting the code from accessing certain resources?

I do not see uses of java -Djava.security.Manager anywhere in even my App-server (JBoss) start up script.

like image 708
Vicky Avatar asked Nov 13 '22 14:11

Vicky


1 Answers

Yes, java still uses the java security manager for controlling access. However, most application servers, including JBoss and Tomcat, don't enable support for it out of the box. JBoss has a standard configuration that allows you to enable the security manager.

like image 187
John Haager Avatar answered Nov 16 '22 02:11

John Haager