Class SecurityContext

java.lang.Object
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.
  • Field Details

    • BROKER_SECURITY_CONTEXT

      public static final SecurityContext BROKER_SECURITY_CONTEXT
  • Constructor Details

    • SecurityContext

      public SecurityContext(String userName)
  • Method Details

    • isInOneOf

      public boolean isInOneOf(Set<?> allowedPrincipals)
    • getPrincipals

      public abstract Set<Principal> getPrincipals()
    • getUserName

      public String getUserName()
    • getAuthorizedWriteDests

      public ConcurrentMap<org.apache.activemq.command.ActiveMQDestination,org.apache.activemq.command.ActiveMQDestination> getAuthorizedWriteDests()
    • isBrokerContext

      public boolean isBrokerContext()