public class SubjectSecurityContext extends SecurityContext
SecurityContext implementation that retains a Shiro Subject instance for use during
security checks and other security-related operations.BROKER_SECURITY_CONTEXT| Constructor and Description |
|---|
SubjectSecurityContext(SubjectConnectionReference conn) |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap<ActiveMQDestination,ActiveMQDestination> |
getAuthorizedReadDests() |
ConcurrentMap<ActiveMQDestination,ActiveMQDestination> |
getAuthorizedWriteDests() |
Set<Principal> |
getPrincipals() |
org.apache.shiro.subject.Subject |
getSubject() |
String |
getUserName() |
boolean |
isInOneOf(Set<?> allowedPrincipals) |
isBrokerContextpublic SubjectSecurityContext(SubjectConnectionReference conn)
public org.apache.shiro.subject.Subject getSubject()
public String getUserName()
getUserName in class SecurityContextpublic boolean isInOneOf(Set<?> allowedPrincipals)
isInOneOf in class SecurityContextpublic ConcurrentMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedReadDests()
getAuthorizedReadDests in class SecurityContextpublic ConcurrentMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedWriteDests()
getAuthorizedWriteDests in class SecurityContextpublic Set<Principal> getPrincipals()
getPrincipals in class SecurityContextCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.