Package org.apache.activemq.security
Class LDAPAuthorizationMap
- java.lang.Object
-
- org.apache.activemq.security.LDAPAuthorizationMap
-
- All Implemented Interfaces:
AuthorizationMap
public class LDAPAuthorizationMap extends Object implements AuthorizationMap
AnAuthorizationMap
which uses LDAP- Author:
- ngcutura
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADMIN_ATTRIBUTE
static String
ADMIN_BASE
static String
AUTHENTICATION
static String
CONNECTION_PASSWORD
static String
CONNECTION_PROTOCOL
static String
CONNECTION_URL
static String
CONNECTION_USERNAME
static String
INITIAL_CONTEXT_FACTORY
static String
QUEUE_SEARCH_MATCHING
static String
QUEUE_SEARCH_SUBTREE
static String
READ_ATTRIBUTE
static String
READ_BASE
static String
TOPIC_SEARCH_MATCHING
static String
TOPIC_SEARCH_SUBTREE
static String
WRITE_ATTRIBUTE
static String
WRITE_BASE
-
Constructor Summary
Constructors Constructor Description LDAPAuthorizationMap()
LDAPAuthorizationMap(Map<String,String> options)
-
Method Summary
-
-
-
Field Detail
-
INITIAL_CONTEXT_FACTORY
public static final String INITIAL_CONTEXT_FACTORY
- See Also:
- Constant Field Values
-
CONNECTION_URL
public static final String CONNECTION_URL
- See Also:
- Constant Field Values
-
CONNECTION_USERNAME
public static final String CONNECTION_USERNAME
- See Also:
- Constant Field Values
-
CONNECTION_PASSWORD
public static final String CONNECTION_PASSWORD
- See Also:
- Constant Field Values
-
CONNECTION_PROTOCOL
public static final String CONNECTION_PROTOCOL
- See Also:
- Constant Field Values
-
AUTHENTICATION
public static final String AUTHENTICATION
- See Also:
- Constant Field Values
-
TOPIC_SEARCH_MATCHING
public static final String TOPIC_SEARCH_MATCHING
- See Also:
- Constant Field Values
-
TOPIC_SEARCH_SUBTREE
public static final String TOPIC_SEARCH_SUBTREE
- See Also:
- Constant Field Values
-
QUEUE_SEARCH_MATCHING
public static final String QUEUE_SEARCH_MATCHING
- See Also:
- Constant Field Values
-
QUEUE_SEARCH_SUBTREE
public static final String QUEUE_SEARCH_SUBTREE
- See Also:
- Constant Field Values
-
ADMIN_BASE
public static final String ADMIN_BASE
- See Also:
- Constant Field Values
-
ADMIN_ATTRIBUTE
public static final String ADMIN_ATTRIBUTE
- See Also:
- Constant Field Values
-
READ_BASE
public static final String READ_BASE
- See Also:
- Constant Field Values
-
READ_ATTRIBUTE
public static final String READ_ATTRIBUTE
- See Also:
- Constant Field Values
-
WRITE_BASE
public static final String WRITE_BASE
- See Also:
- Constant Field Values
-
WRITE_ATTRIBUTE
public static final String WRITE_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTempDestinationAdminACLs
public Set<GroupPrincipal> getTempDestinationAdminACLs()
Description copied from interface:AuthorizationMap
Returns the set of all ACLs capable of administering temp destination- Specified by:
getTempDestinationAdminACLs
in interfaceAuthorizationMap
-
getTempDestinationReadACLs
public Set<GroupPrincipal> getTempDestinationReadACLs()
Description copied from interface:AuthorizationMap
Returns the set of all ACLs capable of reading from temp destination- Specified by:
getTempDestinationReadACLs
in interfaceAuthorizationMap
-
getTempDestinationWriteACLs
public Set<GroupPrincipal> getTempDestinationWriteACLs()
Description copied from interface:AuthorizationMap
Returns the set of all ACLs capable of writing to temp destination- Specified by:
getTempDestinationWriteACLs
in interfaceAuthorizationMap
-
getAdminACLs
public Set<GroupPrincipal> getAdminACLs(ActiveMQDestination destination)
Description copied from interface:AuthorizationMap
Returns the set of all ACLs capable of administering the given destination- Specified by:
getAdminACLs
in interfaceAuthorizationMap
-
getReadACLs
public Set<GroupPrincipal> 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 interfaceAuthorizationMap
-
getWriteACLs
public Set<GroupPrincipal> 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 interfaceAuthorizationMap
-
getAdminAttribute
public String getAdminAttribute()
-
setAdminAttribute
public void setAdminAttribute(String adminAttribute)
-
getAdminBase
public String getAdminBase()
-
setAdminBase
public void setAdminBase(String adminBase)
-
getAuthentication
public String getAuthentication()
-
setAuthentication
public void setAuthentication(String authentication)
-
getConnectionPassword
public String getConnectionPassword()
-
setConnectionPassword
public void setConnectionPassword(String connectionPassword)
-
getConnectionProtocol
public String getConnectionProtocol()
-
setConnectionProtocol
public void setConnectionProtocol(String connectionProtocol)
-
getConnectionURL
public String getConnectionURL()
-
setConnectionURL
public void setConnectionURL(String connectionURL)
-
getConnectionUsername
public String getConnectionUsername()
-
setConnectionUsername
public void setConnectionUsername(String connectionUsername)
-
getContext
public DirContext getContext()
-
setContext
public void setContext(DirContext context)
-
getInitialContextFactory
public String getInitialContextFactory()
-
setInitialContextFactory
public void setInitialContextFactory(String initialContextFactory)
-
getQueueSearchMatchingFormat
public MessageFormat getQueueSearchMatchingFormat()
-
setQueueSearchMatchingFormat
public void setQueueSearchMatchingFormat(MessageFormat queueSearchMatchingFormat)
-
isQueueSearchSubtreeBool
public boolean isQueueSearchSubtreeBool()
-
setQueueSearchSubtreeBool
public void setQueueSearchSubtreeBool(boolean queueSearchSubtreeBool)
-
getReadAttribute
public String getReadAttribute()
-
setReadAttribute
public void setReadAttribute(String readAttribute)
-
getReadBase
public String getReadBase()
-
setReadBase
public void setReadBase(String readBase)
-
getTopicSearchMatchingFormat
public MessageFormat getTopicSearchMatchingFormat()
-
setTopicSearchMatchingFormat
public void setTopicSearchMatchingFormat(MessageFormat topicSearchMatchingFormat)
-
isTopicSearchSubtreeBool
public boolean isTopicSearchSubtreeBool()
-
setTopicSearchSubtreeBool
public void setTopicSearchSubtreeBool(boolean topicSearchSubtreeBool)
-
getWriteAttribute
public String getWriteAttribute()
-
setWriteAttribute
public void setWriteAttribute(String writeAttribute)
-
getWriteBase
public String getWriteBase()
-
setWriteBase
public void setWriteBase(String writeBase)
-
isUseAdvisorySearchBase
public boolean isUseAdvisorySearchBase()
-
setUseAdvisorySearchBase
public void setUseAdvisorySearchBase(boolean useAdvisorySearchBase)
-
getAdvisorySearchBase
public String getAdvisorySearchBase()
-
setAdvisorySearchBase
public void setAdvisorySearchBase(String advisorySearchBase)
-
getTempSearchBase
public String getTempSearchBase()
-
setTempSearchBase
public void setTempSearchBase(String tempSearchBase)
-
getCompositeACLs
protected Set<GroupPrincipal> getCompositeACLs(ActiveMQDestination destination, String roleBase, String roleAttribute)
-
getACLs
protected Set<GroupPrincipal> getACLs(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
protected DirContext open() throws NamingException
- Throws:
NamingException
-
-