Class SecurityService


  • public class SecurityService
    extends Object
    The SecurityService installs a java.security.Policy implementation that handles the JACC permission checks. The Policy provider can be done using the standard javax.security.jacc.policy.provider system property, or by setting the PolicyName attribute to an mbean which supports a Policy attribute of type java.security.Policy.
    Version:
    $Revision$
    Author:
    Scott.Stark@jboss.org
    • Constructor Detail

      • SecurityService

        public SecurityService()
    • Method Detail

      • getPolicyName

        public ObjectName getPolicyName()
      • setPolicyName

        public void setPolicyName​(ObjectName policyName)
      • getPolicyAttributeName

        public String getPolicyAttributeName()
      • setPolicyAttributeName

        public void setPolicyAttributeName​(String policyAttributeName)
      • setMBeanServer

        public void setMBeanServer​(MBeanServer server)
      • getPolicy

        public Policy getPolicy()
      • setPolicy

        public void setPolicy​(Policy jaccPolicy)
      • start

        public void start()
                   throws Exception
        The following permissions are required: java.security.SecurityPermission("getPolicy") java.security.SecurityPermission("setPolicy")
        Throws:
        Exception