org.jboss.security.plugins
Class SecurityConfig

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.security.plugins.SecurityConfig
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , SecurityConfigMBean (src) , Service (src) , ServiceMBean (src)

public class SecurityConfig
extends ServiceMBeanSupport (src)
implements SecurityConfigMBean (src)

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.


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
SecurityConfig()
           
 
Method Summary
 java.lang.String getLoginConfig()
          Get the name of the mbean that provides the default JAAS login configuration
 java.lang.String getName()
          Use the short class name as the default for the service name.
 void popLoginConfig()
          Pop the current mbean from the login configuration stack and install the previous Configuration as the current instance.
 void pushLoginConfig(java.lang.String objectName)
          Push an mbean onto the login configuration stack and install its Configuration as the current instance.
 void setLoginConfig(java.lang.String name)
          Set the name of the mbean that provides the default JAAS login configuration
 void startService()
          Start the configuration service by pushing the mbean given by the LoginConfig onto the configuration stack.
 void stopService()
          Start the configuration service by poping the top of the configuration stack.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Constructor Detail

SecurityConfig

public SecurityConfig()
Method Detail

getName

public java.lang.String getName()
Description copied from class: ServiceMBeanSupport (src)
Use the short class name as the default for the service name.

Specified by:
getName in interface ServiceMBean (src)
Overrides:
getName in class ServiceMBeanSupport (src)

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 (src)

setLoginConfig

public void setLoginConfig(java.lang.String name)
                    throws MalformedObjectNameException (src) 
Set the name of the mbean that provides the default JAAS login configuration

Specified by:
setLoginConfig in interface SecurityConfigMBean (src)
Throws:
MalformedObjectNameException (src)

startService

public void startService()
                  throws java.lang.Exception
Start the configuration service by pushing the mbean given by the LoginConfig onto the configuration stack.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
Start the configuration service by poping the top of the configuration stack.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

pushLoginConfig

public void pushLoginConfig(java.lang.String objectName)
                     throws JMException (src) ,
                            MalformedObjectNameException (src) 
Push an mbean onto the login configuration stack and install its Configuration as the current instance.

Specified by:
pushLoginConfig in interface SecurityConfigMBean (src)
Throws:
JMException (src)
MalformedObjectNameException (src)
See Also:
Configuration

popLoginConfig

public void popLoginConfig()
                    throws JMException (src) 
Pop the current mbean from the login configuration stack and install the previous Configuration as the current instance.

Specified by:
popLoginConfig in interface SecurityConfigMBean (src)
Throws:
JMException (src)
See Also:
Configuration