Chapter 14: Tomcat Security Permission Class Description javax.security.auth
Chapter 14: Tomcat Security Permission Class Description javax.security.auth .AuthPermission javax.security.auth.and PrivateCredentialPermission javax.security.auth.kerberos. and DelegationPermission javax.security.auth.kerberos. and ServicePermission javax.sound.sampled .AudioPermission Controls authentication permissions. Controls various security permissions. Controls various security permissions related to the Kerberos protocol. Controls various security permissions related to the Kerberos protocol. Controls access to the sound system. Enabling the Security Manager System The Security Manager system is enabled by passing the -Djava.security.managerparameter to the Java Virtual Machine at startup, in the following manner: $ java -Djava.security.manager MyClass By default, Java looks for the file $JAVA_HOME/lib/security/java.policy to determine what permissions to grant when the Security Manager is turned on. For more information on enabling the Security Manager and using custom policy files, see the following URL: http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html Advanced Security Manager Topics Some additional Security Manager topics are simply beyond the scope of this chapter. For example, it is possible to subclass the default Java Security Manager implementation to provide for custom permission classes. It is further possible to define grant blocks in policy files based on code signatures. For information on these and other advanced topics, check out the following URL: http://java.sun.com/javase/6/docs/technotes/guides/security/ Using the Security Manager with Tomcat Now that we ve covered the basics of the Security Manager system, we ll explain their use with Tomcat. Enabling Tomcat s Security Manager The preferred way to start Tomcat with the Security Manager enabled on Linux systems is as follows: $ TOMCAT_INSTALLATION/bin/catalina.sh start -security
For high quality java hosting services please check java web hosting website.