org.jboss.security.jacc
Class SecurityService

java.lang.Object
  extended by org.jboss.security.jacc.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: 57203 $
Author:
Scott.Stark@jboss.org

Constructor Summary
SecurityService()
           
 
Method Summary
 javax.management.MBeanServer getMBeanServer()
           
 String getPolicyAttributeName()
           
 javax.management.ObjectName getPolicyName()
           
 void setMBeanServer(javax.management.MBeanServer server)
           
 void setPolicyAttributeName(String policyAttributeName)
           
 void setPolicyName(javax.management.ObjectName 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 javax.management.ObjectName getPolicyName()

setPolicyName

public void setPolicyName(javax.management.ObjectName policyName)

getPolicyAttributeName

public String getPolicyAttributeName()

setPolicyAttributeName

public void setPolicyAttributeName(String policyAttributeName)

getMBeanServer

public javax.management.MBeanServer getMBeanServer()

setMBeanServer

public void setMBeanServer(javax.management.MBeanServer server)

start

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

Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.