Package org.apache.activemq.security
Class LDAPAuthorizationMap
java.lang.Object
org.apache.activemq.security.LDAPAuthorizationMap
- All Implemented Interfaces:
AuthorizationMap
An
AuthorizationMap which uses LDAP- Author:
- ngcutura
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeValues(String attrId, Attributes attrs, Set<String> values) protected Set<GroupPrincipal>getACLs(String destinationBase, SearchControls constraints, String roleBase, String roleAttribute) protected Set<GroupPrincipal>getACLs(org.apache.activemq.command.ActiveMQDestination destination, String roleBase, String roleAttribute) getAdminACLs(org.apache.activemq.command.ActiveMQDestination destination) Returns the set of all ACLs capable of administering the given destinationprotected Set<GroupPrincipal>getCompositeACLs(org.apache.activemq.command.ActiveMQDestination destination, String roleBase, String roleAttribute) 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 destinationbooleanbooleanbooleanprotected DirContextopen()voidsetAdminAttribute(String adminAttribute) voidsetAdminBase(String adminBase) voidsetAdvisorySearchBase(String advisorySearchBase) voidsetAuthentication(String authentication) voidsetConnectionPassword(String connectionPassword) voidsetConnectionProtocol(String connectionProtocol) voidsetConnectionURL(String connectionURL) voidsetConnectionUsername(String connectionUsername) voidsetContext(DirContext context) voidsetInitialContextFactory(String initialContextFactory) voidsetQueueSearchMatchingFormat(MessageFormat queueSearchMatchingFormat) voidsetQueueSearchSubtreeBool(boolean queueSearchSubtreeBool) voidsetReadAttribute(String readAttribute) voidsetReadBase(String readBase) voidsetTempSearchBase(String tempSearchBase) voidsetTopicSearchMatchingFormat(MessageFormat topicSearchMatchingFormat) voidsetTopicSearchSubtreeBool(boolean topicSearchSubtreeBool) voidsetUseAdvisorySearchBase(boolean useAdvisorySearchBase) voidsetWriteAttribute(String writeAttribute) voidsetWriteBase(String writeBase)
-
Field Details
-
INITIAL_CONTEXT_FACTORY
- See Also:
-
CONNECTION_URL
- See Also:
-
CONNECTION_USERNAME
- See Also:
-
CONNECTION_PASSWORD
- See Also:
-
CONNECTION_PROTOCOL
- See Also:
-
AUTHENTICATION
- See Also:
-
TOPIC_SEARCH_MATCHING
- See Also:
-
TOPIC_SEARCH_SUBTREE
- See Also:
-
QUEUE_SEARCH_MATCHING
- See Also:
-
QUEUE_SEARCH_SUBTREE
- See Also:
-
ADMIN_BASE
- See Also:
-
ADMIN_ATTRIBUTE
- See Also:
-
READ_BASE
- See Also:
-
READ_ATTRIBUTE
- See Also:
-
WRITE_BASE
- See Also:
-
WRITE_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
LDAPAuthorizationMap
public LDAPAuthorizationMap() -
LDAPAuthorizationMap
-
-
Method Details
-
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
public Set<GroupPrincipal> getAdminACLs(org.apache.activemq.command.ActiveMQDestination destination) 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
public Set<GroupPrincipal> getWriteACLs(org.apache.activemq.command.ActiveMQDestination destination) Description copied from interface:AuthorizationMapReturns the set of all ACLs capable of writing to the given destination- Specified by:
getWriteACLsin interfaceAuthorizationMap
-
getAdminAttribute
-
setAdminAttribute
-
getAdminBase
-
setAdminBase
-
getAuthentication
-
setAuthentication
-
getConnectionPassword
-
setConnectionPassword
-
getConnectionProtocol
-
setConnectionProtocol
-
getConnectionURL
-
setConnectionURL
-
getConnectionUsername
-
setConnectionUsername
-
getContext
-
setContext
-
getInitialContextFactory
-
setInitialContextFactory
-
getQueueSearchMatchingFormat
-
setQueueSearchMatchingFormat
-
isQueueSearchSubtreeBool
public boolean isQueueSearchSubtreeBool() -
setQueueSearchSubtreeBool
public void setQueueSearchSubtreeBool(boolean queueSearchSubtreeBool) -
getReadAttribute
-
setReadAttribute
-
getReadBase
-
setReadBase
-
getTopicSearchMatchingFormat
-
setTopicSearchMatchingFormat
-
isTopicSearchSubtreeBool
public boolean isTopicSearchSubtreeBool() -
setTopicSearchSubtreeBool
public void setTopicSearchSubtreeBool(boolean topicSearchSubtreeBool) -
getWriteAttribute
-
setWriteAttribute
-
getWriteBase
-
setWriteBase
-
isUseAdvisorySearchBase
public boolean isUseAdvisorySearchBase() -
setUseAdvisorySearchBase
public void setUseAdvisorySearchBase(boolean useAdvisorySearchBase) -
getAdvisorySearchBase
-
setAdvisorySearchBase
-
getTempSearchBase
-
setTempSearchBase
-
getCompositeACLs
protected Set<GroupPrincipal> getCompositeACLs(org.apache.activemq.command.ActiveMQDestination destination, String roleBase, String roleAttribute) -
getACLs
protected Set<GroupPrincipal> getACLs(org.apache.activemq.command.ActiveMQDestination destination, String roleBase, String roleAttribute) -
getACLs
protected Set<GroupPrincipal> getACLs(String destinationBase, SearchControls constraints, String roleBase, String roleAttribute) -
addAttributeValues
protected Set<String> addAttributeValues(String attrId, Attributes attrs, Set<String> values) throws NamingException - Throws:
NamingException
-
open
- Throws:
NamingException
-