当前页面:
在线文档首页 >
JBoss 3.2.7 messaging API Documentation 英文版文档
SecurityManager (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档
org.jboss.mq.security
Class SecurityManager
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mq.server.jmx.InterceptorMBeanSupport
org.jboss.mq.security.SecurityManager
- All Implemented Interfaces:
- InterceptorMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, SecurityManagerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class SecurityManager
- extends InterceptorMBeanSupport
- implements SecurityManagerMBean
A JAAS based security manager for JBossMQ.
- Version:
- $Revision: 1.4.2.5 $
- Author:
- Peter Antman, Scott.Stark@jboss.org
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
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 |
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 |
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 |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
SecurityManager
public SecurityManager()
getObjectName
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
- Throws:
javax.management.MalformedObjectNameException
getInvoker
public JMSServerInterceptor getInvoker()
getDefaultSecurityConfig
public Element getDefaultSecurityConfig()
- Specified by:
getDefaultSecurityConfig
in interface SecurityManagerMBean
setDefaultSecurityConfig
public void setDefaultSecurityConfig(Element conf)
throws Exception
- Specified by:
setDefaultSecurityConfig
in interface SecurityManagerMBean
- Throws:
Exception
getSecurityDomain
public String getSecurityDomain()
- Specified by:
getSecurityDomain
in interface SecurityManagerMBean
setSecurityDomain
public void setSecurityDomain(String securityDomain)
- Specified by:
setSecurityDomain
in interface SecurityManagerMBean
printAuthCache
public String printAuthCache()
addDestination
public void addDestination(String destName,
Element conf)
throws Exception
- Specified by:
addDestination
in interface SecurityManagerMBean
- Throws:
Exception
addDestination
public void addDestination(String destName,
String conf)
throws Exception
- Specified by:
addDestination
in interface SecurityManagerMBean
- Throws:
Exception
removeDestination
public void removeDestination(String destName)
throws Exception
- Specified by:
removeDestination
in interface SecurityManagerMBean
- Throws:
Exception
getSecurityMetadata
public SecurityMetadata getSecurityMetadata(String destName)
startService
public void startService()
throws Exception
- Overrides:
startService
in class InterceptorMBeanSupport
- Throws:
Exception
stopService
public void stopService()
throws Exception
- Throws:
Exception
authenticate
public String authenticate(String user,
String password)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
authorize
public boolean authorize(ConnectionToken token,
Set rolePrincipals)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
logout
public void logout(ConnectionToken token)
getInterceptor
public JMSServerInterceptor getInterceptor()
- Specified by:
getInterceptor
in interface InterceptorMBean
- See Also:
InterceptorMBean#getInterceptor()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.