Save This Page
Home » JBoss-5.1.0 » org » jboss » security » plugins » [javadoc | source]
org.jboss.security.plugins
public class: SecurityConfig [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.security.plugins.SecurityConfig

All Implemented Interfaces:
    SecurityConfigMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

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.
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.security.plugins.SecurityConfig Summary:
getDefaultLoginConfig,   getLoginConfig,   getMbeanServer,   getName,   popLoginConfig,   pushLoginConfig,   pushLoginConfig,   setDefaultLoginConfig,   setLoginConfig,   setMbeanServer,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.security.plugins.SecurityConfig Detail:
 public XMLLoginConfig getDefaultLoginConfig() 

    Obtains a reference to the default login configuration bean.

 public String getLoginConfig() 
    Get the name of the mbean that provides the default JAAS login configuration
 public MBeanServer getMbeanServer() 

    Obtains a reference to the {@code MBeanServer} instance.

 public String getName() 
 public synchronized  void popLoginConfig() throws JMException 
    Pop the current mbean from the login configuration stack and install the previous Configuration as the current instance.
 public synchronized  void pushLoginConfig(XMLLoginConfig loginConfig) 

    Push the configuration obtained from the specified {@code XMLLoginConfig} onto the stack.

 public synchronized  void pushLoginConfig(String objectName) throws JMException, MalformedObjectNameException 
    Push an mbean onto the login configuration stack and install its Configuration as the current instance.
 public  void setDefaultLoginConfig(XMLLoginConfig defaultLoginConfig) 

    Injects the default login configuration bean.

 public  void setLoginConfig(String name) throws MalformedObjectNameException 
    Set the name of the mbean that provides the default JAAS login configuration
 public  void setMbeanServer(MBeanServer server) 

    Injects the {@code MBeanServer} instance that must be used by this class.

 public  void startService() throws Exception 
    Start the configuration service by pushing the mbean given by the LoginConfig onto the configuration stack.
 public  void stopService() throws Exception 
    Stop the configuration service by poping the top of the configuration stack.