java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.security.plugins.SecurityConfig
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, SecurityConfigMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class SecurityConfig
- extends org.jboss.system.ServiceMBeanSupport
- implements SecurityConfigMBean
The SecurityConfigMBean implementation. This class needs the
javax.security.auth.AuthPermission("setLoginConfiguration") to install
the javax.security.auth.login.Configuration when running with a security
manager.
- Version:
- $Revision: 1.4.4.1 $
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, STARTED, STARTING, states, STOPPED, STOPPING, UNREGISTERED |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loginConfigName
private java.lang.String loginConfigName
- The default Configuration mbean name
loginConfigStack
private java.util.Stack loginConfigStack
- The stack of Configuration mbeans that are active
SecurityConfig
public SecurityConfig()
getName
public java.lang.String getName()
- Description copied from class:
org.jboss.system.ServiceMBeanSupport
- Use the short class name as the default for the service name.
- Specified by:
getName in interface org.jboss.system.ServiceMBean
getLoginConfig
public java.lang.String getLoginConfig()
- Get the name of the mbean that provides the default JAAS login configuration
- Specified by:
getLoginConfig in interface SecurityConfigMBean
setLoginConfig
public void setLoginConfig(java.lang.String name)
throws javax.management.MalformedObjectNameException
- Set the name of the mbean that provides the default JAAS login configuration
- Specified by:
setLoginConfig in interface SecurityConfigMBean
startService
public void startService()
throws java.lang.Exception
- Start the configuration service by pushing the mbean given by the
LoginConfig onto the configuration stack.
stopService
public void stopService()
throws java.lang.Exception
- Start the configuration service by poping the top of the
configuration stack.
pushLoginConfig
public void pushLoginConfig(java.lang.String objectName)
throws javax.management.JMException,
javax.management.MalformedObjectNameException
- Push an mbean onto the login configuration stack and install its
Configuration as the current instance.
- Specified by:
pushLoginConfig in interface SecurityConfigMBean
popLoginConfig
public void popLoginConfig()
throws javax.management.JMException
- Pop the current mbean from the login configuration stack and install
the previous Configuration as the current instance.
- Specified by:
popLoginConfig in interface SecurityConfigMBean
installConfig
private SecurityConfig.ConfigInfo installConfig(javax.management.ObjectName name,
javax.security.auth.login.Configuration prevConfig)
throws javax.management.JMException
- Obtain the Configuration from the named mbean using its getConfiguration
operation and install it as the current Configuration.