Class DefaultAuthorizationMap

  • All Implemented Interfaces:
    AuthorizationMap

    public class DefaultAuthorizationMap
    extends org.apache.activemq.filter.DestinationMap
    implements AuthorizationMap
    Represents a destination based configuration of policies so that individual destinations or wildcard hierarchies of destinations can be configured using different policies. Each entry in the map represents the authorization ACLs for each operation.
    • Constructor Detail

      • DefaultAuthorizationMap

        public DefaultAuthorizationMap()
      • DefaultAuthorizationMap

        public DefaultAuthorizationMap​(List<org.apache.activemq.filter.DestinationMapEntry> authorizationEntries)
    • Method Detail

      • getAdminACLs

        public Set<Object> getAdminACLs​(org.apache.activemq.command.ActiveMQDestination destination)
        Description copied from interface: AuthorizationMap
        Returns the set of all ACLs capable of administering the given destination
        Specified by:
        getAdminACLs in interface AuthorizationMap
      • getReadACLs

        public Set<Object> getReadACLs​(org.apache.activemq.command.ActiveMQDestination destination)
        Description copied from interface: AuthorizationMap
        Returns the set of all ACLs capable of reading (consuming from) the given destination
        Specified by:
        getReadACLs in interface AuthorizationMap
      • getWriteACLs

        public Set<Object> getWriteACLs​(org.apache.activemq.command.ActiveMQDestination destination)
        Description copied from interface: AuthorizationMap
        Returns the set of all ACLs capable of writing to the given destination
        Specified by:
        getWriteACLs in interface AuthorizationMap
      • getEntryFor

        public AuthorizationEntry getEntryFor​(org.apache.activemq.command.ActiveMQDestination destination)
      • get

        public Set get​(org.apache.activemq.command.ActiveMQDestination key)
        Looks up the value(s) matching the given Destination key. For simple destinations this is typically a List of one single value, for wildcards or composite destinations this will typically be a Union of matching values.
        Overrides:
        get in class org.apache.activemq.filter.DestinationMap
        Parameters:
        key - the destination to lookup
        Returns:
        a Union of matching values or an empty list if there are no matching values.
      • setAuthorizationEntries

        public void setAuthorizationEntries​(List<org.apache.activemq.filter.DestinationMapEntry> entries)
        Sets the individual entries on the authorization map
      • getEntryClass

        protected Class<? extends org.apache.activemq.filter.DestinationMapEntry> getEntryClass()
        Overrides:
        getEntryClass in class org.apache.activemq.filter.DestinationMap
      • getAllEntries

        protected Set<AuthorizationEntry> getAllEntries​(org.apache.activemq.command.ActiveMQDestination destination)
      • getGroupClass

        public String getGroupClass()
      • setGroupClass

        public void setGroupClass​(String groupClass)