org.jboss.test.security.service
Class SecurityConfig

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.test.security.service.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)

A security config mbean that loads an xml login configuration and pushes a XMLLoginConfig instance onto the the config stack managed by the SecurityConfigName mbean(default=jboss.security:name=SecurityConfig).


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 getAuthConfig()
          Get the resource path to the JAAS login configuration file to use.
 java.lang.String getName()
          Use the short class name as the default for the service name.
 java.lang.String getSecurityConfigName()
          Get the name of the SecurityConfig mbean whose pushLoginConfig and popLoginConfig ops will be used to install and remove the xml login config
 void setAuthConfig(java.lang.String authConf)
          Set the resource path to the JAAS login configuration file to use.
 void setSecurityConfigName(java.lang.String objectName)
          Set the name of the SecurityConfig mbean whose pushLoginConfig and popLoginConfig ops will be used to install and remove the xml login config
protected  void startService()
          Start the service.
protected  void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
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)

getSecurityConfigName

public java.lang.String getSecurityConfigName()
Description copied from interface: SecurityConfigMBean (src)
Get the name of the SecurityConfig mbean whose pushLoginConfig and popLoginConfig ops will be used to install and remove the xml login config

Specified by:
getSecurityConfigName in interface SecurityConfigMBean (src)

setSecurityConfigName

public void setSecurityConfigName(java.lang.String objectName)
Description copied from interface: SecurityConfigMBean (src)
Set the name of the SecurityConfig mbean whose pushLoginConfig and popLoginConfig ops will be used to install and remove the xml login config

Specified by:
setSecurityConfigName in interface SecurityConfigMBean (src)

getAuthConfig

public java.lang.String getAuthConfig()
Get the resource path to the JAAS login configuration file to use.

Specified by:
getAuthConfig in interface SecurityConfigMBean (src)

setAuthConfig

public void setAuthConfig(java.lang.String authConf)
Set the resource path to the JAAS login configuration file to use. The default is "login-config.xml".

Specified by:
setAuthConfig in interface SecurityConfigMBean (src)

startService

protected void startService()
                     throws java.lang.Exception
Start the service. This entails

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

stopService

protected void stopService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

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