Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » security » auth » login » [javadoc | source]
org.jboss.security.auth.login
public class: DynamicLoginConfig [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.security.auth.login.DynamicLoginConfig

All Implemented Interfaces:
    DynamicLoginConfigMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

A security config mbean that loads an xml login configuration using the XMLLoginConfig.loadConfig(URL config) operation on start, and unloads the contained login module configurations on stop. login-config.xml jboss.security:service=XMLLoginConfig jboss.security:service=JaasSecurityManager
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public DynamicLoginConfig() 
Method from org.jboss.security.auth.login.DynamicLoginConfig Summary:
flushAuthenticationCaches,   getAuthConfig,   getLoginConfigService,   getName,   getPolicyConfig,   getSecurityManagerService,   setAuthConfig,   setLoginConfigService,   setPolicyConfig,   setSecurityManagerService,   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:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.security.auth.login.DynamicLoginConfig Detail:
 public  void flushAuthenticationCaches() throws Exception 
    Go through the registered login config names and flush the auth caches if there is a registered SecurityManagerService.
 public String getAuthConfig() 
    Get the resource path to the JAAS login configuration file to use.
 public ObjectName getLoginConfigService() 
 public String getName() 
 public PolicyConfig getPolicyConfig() 
 public ObjectName getSecurityManagerService() 
 public  void setAuthConfig(String authConf) 
    Set the resource path to the JAAS login configuration file to use. The default is "login-config.xml".
 public  void setLoginConfigService(ObjectName serviceName) 
    Get the XMLLoginConfig service to use for loading. This service must support a String[] loadConfig(URL) operation to load the configurations.
 public  void setPolicyConfig(PolicyConfig config) 
 public  void setSecurityManagerService(ObjectName serviceName) 
    Set the SecurityManagerService used to flush the registered security domains. This service must support an flushAuthenticationCache(String) operation to flush the case for the argument security domain. Setting this triggers the flush of the authentication caches when the service is stopped.
 protected  void startService() throws Exception 
    Start the service. This entails loading the AuthConf file contents using the LoginConfigService.
 protected  void stopService() throws Exception 
    Start the service. This entails unloading the AuthConf file contents using the LoginConfigService.