org.jboss.mq.security
Class SecurityManager
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.mq.server.jmx.InterceptorMBeanSupport (src)
org.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.
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityManager
public SecurityManager()
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()