Package org.apache.activemq.security
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 Summary
FieldsFields inherited from class org.apache.activemq.filter.DestinationMap
ANY_CHILD, ANY_DESCENDENT -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuthorizationMap(List<org.apache.activemq.filter.DestinationMapEntry> authorizationEntries) -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcreateGroupPrincipal(String name, String groupClass) get(org.apache.activemq.command.ActiveMQDestination key) Looks up the value(s) matching the given Destination key.getAdminACLs(org.apache.activemq.command.ActiveMQDestination destination) Returns the set of all ACLs capable of administering the given destinationprotected Set<AuthorizationEntry>getAllEntries(org.apache.activemq.command.ActiveMQDestination destination) protected Class<? extends org.apache.activemq.filter.DestinationMapEntry>getEntryFor(org.apache.activemq.command.ActiveMQDestination destination) getReadACLs(org.apache.activemq.command.ActiveMQDestination destination) Returns the set of all ACLs capable of reading (consuming from) the given destinationReturns the set of all ACLs capable of administering temp destinationReturns the set of all ACLs capable of reading from temp destinationReturns the set of all ACLs capable of writing to temp destinationgetWriteACLs(org.apache.activemq.command.ActiveMQDestination destination) Returns the set of all ACLs capable of writing to the given destinationvoidsetAuthorizationEntries(List<org.apache.activemq.filter.DestinationMapEntry> entries) Sets the individual entries on the authorization mapvoidsetDefaultEntry(AuthorizationEntry defaultEntry) voidsetGroupClass(String groupClass) voidsetTempDestinationAuthorizationEntry(TempDestinationAuthorizationEntry tempDestinationAuthorizationEntry) Methods inherited from class org.apache.activemq.filter.DestinationMap
chooseValue, findWildcardMatches, findWildcardMatches, getQueueRootChildCount, getQueueRootNode, getRootNode, getTempQueueRootNode, getTempTopicRootNode, getTopicRootChildCount, getTopicRootNode, isEmpty, put, remove, removeAll, reset, setEntries, union, unsynchronizedGet, unsynchronizedPut, unsynchronizedRemove
-
Field Details
-
DEFAULT_GROUP_CLASS
- See Also:
-
groupClass
-
-
Constructor Details
-
DefaultAuthorizationMap
public DefaultAuthorizationMap() -
DefaultAuthorizationMap
public DefaultAuthorizationMap(List<org.apache.activemq.filter.DestinationMapEntry> authorizationEntries)
-
-
Method Details
-
setTempDestinationAuthorizationEntry
public void setTempDestinationAuthorizationEntry(TempDestinationAuthorizationEntry tempDestinationAuthorizationEntry) -
getTempDestinationAuthorizationEntry
-
getTempDestinationAdminACLs
Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of administering temp destination- Specified by:
getTempDestinationAdminACLsin interfaceAuthorizationMap
-
getTempDestinationReadACLs
Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of reading from temp destination- Specified by:
getTempDestinationReadACLsin interfaceAuthorizationMap
-
getTempDestinationWriteACLs
Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of writing to temp destination- Specified by:
getTempDestinationWriteACLsin interfaceAuthorizationMap
-
getAdminACLs
Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of administering the given destination- Specified by:
getAdminACLsin interfaceAuthorizationMap
-
getReadACLs
Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of reading (consuming from) the given destination- Specified by:
getReadACLsin interfaceAuthorizationMap
-
getWriteACLs
Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of writing to the given destination- Specified by:
getWriteACLsin interfaceAuthorizationMap
-
getEntryFor
-
get
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:
getin classorg.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
Sets the individual entries on the authorization map -
getDefaultEntry
-
setDefaultEntry
-
getEntryClass
- Overrides:
getEntryClassin classorg.apache.activemq.filter.DestinationMap
-
getAllEntries
protected Set<AuthorizationEntry> getAllEntries(org.apache.activemq.command.ActiveMQDestination destination) -
getGroupClass
-
setGroupClass
-
createGroupPrincipal
- Throws:
Exception
-