Class DefaultAuthorizationMap

java.lang.Object
org.apache.activemq.filter.DestinationMap
org.apache.activemq.security.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.
  • Field Details

  • Constructor Details

    • DefaultAuthorizationMap

      public DefaultAuthorizationMap()
    • DefaultAuthorizationMap

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

    • setTempDestinationAuthorizationEntry

      public void setTempDestinationAuthorizationEntry(TempDestinationAuthorizationEntry tempDestinationAuthorizationEntry)
    • getTempDestinationAuthorizationEntry

      public TempDestinationAuthorizationEntry getTempDestinationAuthorizationEntry()
    • getTempDestinationAdminACLs

      public Set<Object> getTempDestinationAdminACLs()
      Description copied from interface: AuthorizationMap
      Returns the set of all ACLs capable of administering temp destination
      Specified by:
      getTempDestinationAdminACLs in interface AuthorizationMap
    • getTempDestinationReadACLs

      public Set<Object> getTempDestinationReadACLs()
      Description copied from interface: AuthorizationMap
      Returns the set of all ACLs capable of reading from temp destination
      Specified by:
      getTempDestinationReadACLs in interface AuthorizationMap
    • getTempDestinationWriteACLs

      public Set<Object> getTempDestinationWriteACLs()
      Description copied from interface: AuthorizationMap
      Returns the set of all ACLs capable of writing to temp destination
      Specified by:
      getTempDestinationWriteACLs in interface AuthorizationMap
    • 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
    • getDefaultEntry

      public AuthorizationEntry getDefaultEntry()
    • setDefaultEntry

      public void setDefaultEntry(AuthorizationEntry defaultEntry)
    • 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)
    • createGroupPrincipal

      public static Object createGroupPrincipal(String name, String groupClass) throws Exception
      Throws:
      Exception