|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.filter.DestinationMap
org.apache.activemq.security.DefaultAuthorizationMap
public class DefaultAuthorizationMap
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(List authorizationEntries)
|
Method Summary | |
---|---|
Set |
getAdminACLs(ActiveMQDestination destination)
Returns the set of all ACLs capable of administering the given destination |
protected Set |
getAllEntries(ActiveMQDestination destination)
|
AuthorizationEntry |
getDefaultEntry()
|
protected Class |
getEntryClass()
Returns the type of the allowed entries which can be set via the DestinationMap.setEntries(List) method. |
AuthorizationEntry |
getEntryFor(ActiveMQDestination destination)
|
Set |
getReadACLs(ActiveMQDestination destination)
Returns the set of all ACLs capable of reading (consuming from) the given destination |
Set |
getWriteACLs(ActiveMQDestination destination)
Returns the set of all ACLs capable of writing to the given destination |
void |
setAuthorizationEntries(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 |
---|
public DefaultAuthorizationMap()
public DefaultAuthorizationMap(List authorizationEntries)
Method Detail |
---|
public Set getAdminACLs(ActiveMQDestination destination)
AuthorizationMap
getAdminACLs
in interface AuthorizationMap
public Set getReadACLs(ActiveMQDestination destination)
AuthorizationMap
getReadACLs
in interface AuthorizationMap
public Set getWriteACLs(ActiveMQDestination destination)
AuthorizationMap
getWriteACLs
in interface AuthorizationMap
public AuthorizationEntry getEntryFor(ActiveMQDestination destination)
public void setAuthorizationEntries(List entries)
public AuthorizationEntry getDefaultEntry()
public void setDefaultEntry(AuthorizationEntry defaultEntry)
protected Class getEntryClass()
DestinationMap
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.
getEntryClass
in class DestinationMap
protected Set getAllEntries(ActiveMQDestination destination)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |