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> |
getAuthorizedWriteDests() |
Set<Principal> |
getPrincipals() |
org.apache.shiro.subject.Subject |
getSubject() |
String |
getUserName() |
boolean |
isInOneOf(Set<?> allowedPrincipals) |
isBrokerContext
public SubjectSecurityContext(SubjectConnectionReference conn)
public org.apache.shiro.subject.Subject getSubject()
public String getUserName()
getUserName
in class SecurityContext
public boolean isInOneOf(Set<?> allowedPrincipals)
isInOneOf
in class SecurityContext
public ConcurrentMap<ActiveMQDestination,ActiveMQDestination> getAuthorizedWriteDests()
getAuthorizedWriteDests
in class SecurityContext
public Set<Principal> getPrincipals()
getPrincipals
in class SecurityContext
Copyright © 2005–2018. All rights reserved.