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.

Version:
$Revision: 426366 $

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 getAdminACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of administering the given destination
protected  java.util.Set getAllEntries(ActiveMQDestination destination)
           
 AuthorizationEntry getDefaultEntry()
           
protected  java.lang.Class 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 getReadACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of reading (consuming from) the given destination
 java.util.Set 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)
           
 
Methods inherited from class org.apache.activemq.filter.DestinationMap
chooseValue, findWildcardMatches, get, getQueueRootChildCount, getQueueRootNode, getRootNode, 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

getAdminACLs

public java.util.Set 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 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 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 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 getAllEntries(ActiveMQDestination destination)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.