org.apache.activemq.security
Class SecurityContext

java.lang.Object
  extended by org.apache.activemq.security.SecurityContext
Direct Known Subclasses:
JaasCertificateSecurityContext

public abstract class SecurityContext
extends Object

Used to cache up authorizations so that subsequent requests are faster.

Version:
$Revision$

Field Summary
static SecurityContext BROKER_SECURITY_CONTEXT
           
 
Constructor Summary
SecurityContext(String userName)
           
 
Method Summary
 ConcurrentHashMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedReadDests()
           
 ConcurrentHashMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedWriteDests()
           
abstract  Set<?> getPrincipals()
           
 String getUserName()
           
 boolean isBrokerContext()
           
 boolean isInOneOf(Set<?> allowedPrincipals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROKER_SECURITY_CONTEXT

public static final SecurityContext BROKER_SECURITY_CONTEXT
Constructor Detail

SecurityContext

public SecurityContext(String userName)
Method Detail

isInOneOf

public boolean isInOneOf(Set<?> allowedPrincipals)

getPrincipals

public abstract Set<?> getPrincipals()

getUserName

public String getUserName()

getAuthorizedReadDests

public ConcurrentHashMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedReadDests()

getAuthorizedWriteDests

public ConcurrentHashMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedWriteDests()

isBrokerContext

public boolean isBrokerContext()


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.