org.jboss.mq.security
Class SecurityManager

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.mq.server.jmx.InterceptorMBeanSupport (src) 
              extended byorg.jboss.mq.security.SecurityManager
All Implemented Interfaces:
InterceptorMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , SecurityManagerMBean (src) , Service (src) , ServiceMBean (src)

public class SecurityManager
extends InterceptorMBeanSupport (src)
implements SecurityManagerMBean (src)

A JAAS based security manager for JBossMQ.


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.mq.security.SecurityManagerMBean (src)
OBJECT_NAME
 
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
SecurityManager()
           
 
Method Summary
 void addDestination(java.lang.String destName, org.w3c.dom.Element conf)
           
 void addDestination(java.lang.String destName, java.lang.String conf)
           
 java.lang.String authenticate(java.lang.String user, java.lang.String password)
           
 boolean authorize(ConnectionToken (src)  token, java.util.Set rolePrincipals)
           
 org.w3c.dom.Element getDefaultSecurityConfig()
           
 JMSServerInterceptor (src) getInterceptor()
           
 JMSServerInterceptor (src) getInvoker()
           
protected  ObjectName (src) getObjectName(MBeanServer (src)  server, ObjectName (src)  name)
          Sub-classes should override this method if they only need to set their object name during MBean pre-registration.
 java.lang.String getSecurityDomain()
           
 SecurityMetadata (src) getSecurityMetadata(java.lang.String destName)
           
 void logout(ConnectionToken (src)  token)
           
 java.lang.String printAuthCache()
           
 void removeDestination(java.lang.String destName)
           
 void setDefaultSecurityConfig(org.w3c.dom.Element conf)
           
 void setSecurityDomain(java.lang.String securityDomain)
           
 void startService()
          Sub-classes should override this method to provide custum 'start' logic.
 void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.mq.server.jmx.InterceptorMBeanSupport (src)
getNextInterceptor, setNextInterceptor
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, 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.mq.server.jmx.InterceptorMBean (src)
getNextInterceptor, setNextInterceptor
 
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

SecurityManager

public SecurityManager()
Method Detail

getObjectName

protected ObjectName (src)  getObjectName(MBeanServer (src)  server,
                                   ObjectName (src)  name)
                            throws MalformedObjectNameException (src) 
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration.

Overrides:
getObjectName in class ServiceMBeanSupport (src)
Throws:
MalformedObjectNameException (src)

getInvoker

public JMSServerInterceptor (src)  getInvoker()

getDefaultSecurityConfig

public org.w3c.dom.Element getDefaultSecurityConfig()
Specified by:
getDefaultSecurityConfig in interface SecurityManagerMBean (src)

setDefaultSecurityConfig

public void setDefaultSecurityConfig(org.w3c.dom.Element conf)
                              throws java.lang.Exception
Specified by:
setDefaultSecurityConfig in interface SecurityManagerMBean (src)
Throws:
java.lang.Exception

getSecurityDomain

public java.lang.String getSecurityDomain()
Specified by:
getSecurityDomain in interface SecurityManagerMBean (src)

setSecurityDomain

public void setSecurityDomain(java.lang.String securityDomain)
Specified by:
setSecurityDomain in interface SecurityManagerMBean (src)

printAuthCache

public java.lang.String printAuthCache()

addDestination

public void addDestination(java.lang.String destName,
                           org.w3c.dom.Element conf)
                    throws java.lang.Exception
Specified by:
addDestination in interface SecurityManagerMBean (src)
Throws:
java.lang.Exception

addDestination

public void addDestination(java.lang.String destName,
                           java.lang.String conf)
                    throws java.lang.Exception
Specified by:
addDestination in interface SecurityManagerMBean (src)
Throws:
java.lang.Exception

removeDestination

public void removeDestination(java.lang.String destName)
                       throws java.lang.Exception
Specified by:
removeDestination in interface SecurityManagerMBean (src)
Throws:
java.lang.Exception

getSecurityMetadata

public SecurityMetadata (src)  getSecurityMetadata(java.lang.String destName)

startService

public 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 InterceptorMBeanSupport (src)
Throws:
java.lang.Exception

stopService

public 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

authenticate

public java.lang.String authenticate(java.lang.String user,
                                     java.lang.String password)
                              throws JMSException (src) 
Throws:
JMSException (src)

authorize

public boolean authorize(ConnectionToken (src)  token,
                         java.util.Set rolePrincipals)
                  throws JMSException (src) 
Throws:
JMSException (src)

logout

public void logout(ConnectionToken (src)  token)

getInterceptor

public JMSServerInterceptor (src)  getInterceptor()
Specified by:
getInterceptor in interface InterceptorMBean (src)
See Also:
InterceptorMBean#getInterceptor()