Package org.apache.activemq.security
Class SecurityContext
- java.lang.Object
-
- org.apache.activemq.security.SecurityContext
-
- Direct Known Subclasses:
JaasCertificateSecurityContext
,SubjectSecurityContext
public abstract class SecurityContext extends Object
Used to cache up authorizations so that subsequent requests are faster.
-
-
Field Summary
Fields Modifier and Type Field Description static SecurityContext
BROKER_SECURITY_CONTEXT
-
Constructor Summary
Constructors Constructor Description SecurityContext(String userName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ConcurrentMap<ActiveMQDestination,ActiveMQDestination>
getAuthorizedWriteDests()
abstract Set<Principal>
getPrincipals()
String
getUserName()
boolean
isBrokerContext()
boolean
isInOneOf(Set<?> allowedPrincipals)
-
-
-
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)
-
getUserName
public String getUserName()
-
getAuthorizedWriteDests
public ConcurrentMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedWriteDests()
-
isBrokerContext
public boolean isBrokerContext()
-
-