站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

SecurityManager (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq.security
Class SecurityManager

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.mq.server.jmx.InterceptorMBeanSupport
              extended byorg.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.11.10.1 $
Author:
Peter Antman, Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.mq.security.SecurityManagerMBean
OBJECT_NAME
 
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
 
Constructor Summary
SecurityManager()
           
 
Method Summary
 void addDestination(String destName, Element conf)
           
 void addDestination(String destName, String conf)
           
 String authenticate(String user, String password)
           
 boolean authorize(ConnectionToken token, Set rolePrincipals)
           
 Element getDefaultSecurityConfig()
           
 JMSServerInterceptor getInterceptor()
           
 JMSServerInterceptor getInvoker()
           
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 String getSecurityDomain()
           
 SecurityMetadata getSecurityMetadata(String destName)
           
 void logout(ConnectionToken token)
           
 String printAuthCache()
           
 void removeDestination(String destName)
           
 void setDefaultSecurityConfig(Element conf)
           
 void setSecurityDomain(String securityDomain)
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.mq.server.jmx.InterceptorMBeanSupport
getNextInterceptor, setNextInterceptor
 
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.mq.server.jmx.InterceptorMBean
getNextInterceptor, setNextInterceptor
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

SecurityManager

public SecurityManager()
Method Detail

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.