Class SecurityContext
java.lang.Object
org.apache.activemq.security.SecurityContext
- Direct Known Subclasses:
JaasCertificateSecurityContext
Used to cache up authorizations so that subsequent requests are faster.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleancontainsWildcardPrincipal(Set<?> principals) ConcurrentMap<org.apache.activemq.command.ActiveMQDestination, org.apache.activemq.command.ActiveMQDestination> booleanbooleanbooleanWhether the authenticated user may register this connection as a network connection.booleanWhether the authenticating plugin made a network connection decision for this connection.static booleanisWildcardPrincipal(Object principal)
-
Field Details
-
BROKER_SECURITY_CONTEXT
-
-
Constructor Details
-
SecurityContext
-
-
Method Details
-
isWildcardPrincipal
-
containsWildcardPrincipal
-
isInOneOf
-
getPrincipals
-
isNetworkConnectionAllowed
public boolean isNetworkConnectionAllowed()Whether the authenticated user may register this connection as a network connection. Consulted when a connection identifies itself as a network bridge after it has already been authenticated. Defaults to allowed so authentication plugins that do not make the distinction are unaffected. -
isNetworkConnectionAuthorizationRequired
public boolean isNetworkConnectionAuthorizationRequired()Whether the authenticating plugin made a network connection decision for this connection. When false the broker applies no network connection restriction andisNetworkConnectionAllowed()is not consulted. -
contains
-
getUserName
-
getAuthorizedWriteDests
public ConcurrentMap<org.apache.activemq.command.ActiveMQDestination, org.apache.activemq.command.ActiveMQDestination> getAuthorizedWriteDests() -
isBrokerContext
public boolean isBrokerContext()
-