org.apache.activemq.security
Class DefaultAuthorizationMap

java.lang.Object
  extended by org.apache.activemq.filter.DestinationMap
      extended by org.apache.activemq.security.DefaultAuthorizationMap
All Implemented Interfaces:
AuthorizationMap

public class DefaultAuthorizationMap
extends 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
 
Fields inherited from class org.apache.activemq.filter.DestinationMap
ANY_CHILD, ANY_DESCENDENT
 
Constructor Summary
DefaultAuthorizationMap()
           
DefaultAuthorizationMap(java.util.List authorizationEntries)
           
 
Method Summary
 java.util.Set<java.lang.Object> getAdminACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of administering the given destination
protected  java.util.Set<AuthorizationEntry> getAllEntries(ActiveMQDestination destination)
           
 AuthorizationEntry getDefaultEntry()
           
protected  java.lang.Class<AuthorizationEntry> getEntryClass()
          Returns the type of the allowed entries which can be set via the DestinationMap.setEntries(List) method.
 AuthorizationEntry getEntryFor(ActiveMQDestination destination)
           
 java.util.Set<java.lang.Object> getReadACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of reading (consuming from) the given destination
 java.util.Set<java.lang.Object> getTempDestinationAdminACLs()
          Returns the set of all ACLs capable of administering temp destination
 TempDestinationAuthorizationEntry getTempDestinationAuthorizationEntry()
           
 java.util.Set<java.lang.Object> getTempDestinationReadACLs()
          Returns the set of all ACLs capable of reading from temp destination
 java.util.Set<java.lang.Object> getTempDestinationWriteACLs()
          Returns the set of all ACLs capable of writing to temp destination
 java.util.Set<java.lang.Object> getWriteACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of writing to the given destination
 void setAuthorizationEntries(java.util.List entries)
          Sets the individual entries on the authorization map
 void setDefaultEntry(AuthorizationEntry defaultEntry)
           
 void setTempDestinationAuthorizationEntry(TempDestinationAuthorizationEntry tempDestinationAuthorizationEntry)
           
 
Methods inherited from class org.apache.activemq.filter.DestinationMap
chooseValue, findWildcardMatches, get, getQueueRootChildCount, getQueueRootNode, getRootNode, getTempQueueRootNode, getTempTopicRootNode, getTopicRootChildCount, getTopicRootNode, put, remove, removeAll, setEntries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthorizationMap

public DefaultAuthorizationMap()

DefaultAuthorizationMap

public DefaultAuthorizationMap(java.util.List authorizationEntries)
Method Detail

setTempDestinationAuthorizationEntry

public void setTempDestinationAuthorizationEntry(TempDestinationAuthorizationEntry tempDestinationAuthorizationEntry)

getTempDestinationAuthorizationEntry

public TempDestinationAuthorizationEntry getTempDestinationAuthorizationEntry()

getTempDestinationAdminACLs

public java.util.Set<java.lang.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 java.util.Set<java.lang.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 java.util.Set<java.lang.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 java.util.Set<java.lang.Object> getAdminACLs(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 java.util.Set<java.lang.Object> getReadACLs(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 java.util.Set<java.lang.Object> getWriteACLs(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(ActiveMQDestination destination)

setAuthorizationEntries

public void setAuthorizationEntries(java.util.List entries)
Sets the individual entries on the authorization map


getDefaultEntry

public AuthorizationEntry getDefaultEntry()

setDefaultEntry

public void setDefaultEntry(AuthorizationEntry defaultEntry)

getEntryClass

protected java.lang.Class<AuthorizationEntry> getEntryClass()
Description copied from class: DestinationMap
Returns the type of the allowed entries which can be set via the DestinationMap.setEntries(List) method. This allows derived classes to further restrict the type of allowed entries to make a type safe destination map for custom policies.

Overrides:
getEntryClass in class DestinationMap

getAllEntries

protected java.util.Set<AuthorizationEntry> getAllEntries(ActiveMQDestination destination)


Copyright © 2005-2011. All Rights Reserved.