org.jboss.security.auth
Class SystemAuthenticator

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

public class SystemAuthenticator
extends ServiceMBeanSupport (src)
implements SystemAuthenticatorMBean (src)

An MBean that requires a JAAS login in order for it to startup. This is used to require authentication to startup a JBoss instance.


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
SystemAuthenticator()
           
 
Method Summary
 java.lang.Class getCallbackHandler()
          Get the CallbackHandler to use to obtain the authentication information.
 java.lang.String getSecurityDomain()
          Get the name of the security domain used for authentication
 void setCallbackHandler(java.lang.Class callbackHandlerClass)
          Specify the CallbackHandler to use to obtain the authentication information.
 void setSecurityDomain(java.lang.String name)
          Set the name of the security domain used for authentication
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
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, getName, 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)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Constructor Detail

SystemAuthenticator

public SystemAuthenticator()
Method Detail

getSecurityDomain

public java.lang.String getSecurityDomain()
Get the name of the security domain used for authentication

Specified by:
getSecurityDomain in interface SystemAuthenticatorMBean (src)

setSecurityDomain

public void setSecurityDomain(java.lang.String name)
Set the name of the security domain used for authentication

Specified by:
setSecurityDomain in interface SystemAuthenticatorMBean (src)

getCallbackHandler

public java.lang.Class getCallbackHandler()
Get the CallbackHandler to use to obtain the authentication information.

Specified by:
getCallbackHandler in interface SystemAuthenticatorMBean (src)
See Also:
CallbackHandler

setCallbackHandler

public void setCallbackHandler(java.lang.Class callbackHandlerClass)
                        throws java.lang.InstantiationException,
                               java.lang.IllegalAccessException
Specify the CallbackHandler to use to obtain the authentication information.

Specified by:
setCallbackHandler in interface SystemAuthenticatorMBean (src)
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
See Also:
CallbackHandler

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' 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:
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