org.jboss.security.jacc
Class SecurityService

java.lang.Object
  extended byorg.jboss.security.jacc.SecurityService

public class SecurityService
extends java.lang.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.


Constructor Summary
SecurityService()
           
 
Method Summary
 MBeanServer (src) getMBeanServer()
           
 java.lang.String getPolicyAttributeName()
           
 ObjectName (src) getPolicyName()
           
 void setMBeanServer(MBeanServer (src)  server)
           
 void setPolicyAttributeName(java.lang.String policyAttributeName)
           
 void setPolicyName(ObjectName (src)  policyName)
           
 void start()
          The following permissions are required: java.security.SecurityPermission("getPolicy") java.security.SecurityPermission("setPolicy")
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityService

public SecurityService()
Method Detail

getPolicyName

public ObjectName (src)  getPolicyName()

setPolicyName

public void setPolicyName(ObjectName (src)  policyName)

getPolicyAttributeName

public java.lang.String getPolicyAttributeName()

setPolicyAttributeName

public void setPolicyAttributeName(java.lang.String policyAttributeName)

getMBeanServer

public MBeanServer (src)  getMBeanServer()

setMBeanServer

public void setMBeanServer(MBeanServer (src)  server)

start

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

Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception