org.apache.activemq.security
Class LDAPAuthorizationMap

java.lang.Object
  extended by org.apache.activemq.security.LDAPAuthorizationMap
All Implemented Interfaces:
AuthorizationMap

public class LDAPAuthorizationMap
extends Object
implements AuthorizationMap

An AuthorizationMap which uses LDAP

Author:
ngcutura

Field Summary
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
LDAPAuthorizationMap()
           
LDAPAuthorizationMap(Map<String,String> options)
           
 
Method Summary
protected  Set<String> addAttributeValues(String attrId, Attributes attrs, Set<String> values)
           
protected  Set<GroupPrincipal> getACLs(ActiveMQDestination destination, String roleBase, String roleAttribute)
           
protected  Set<GroupPrincipal> getACLs(String destinationBase, SearchControls constraints, String roleBase, String roleAttribute)
           
 Set<GroupPrincipal> getAdminACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of administering the given destination
 String getAdminAttribute()
           
 String getAdminBase()
           
 String getAdvisorySearchBase()
           
 String getAuthentication()
           
protected  Set<GroupPrincipal> getCompositeACLs(ActiveMQDestination destination, String roleBase, String roleAttribute)
           
 String getConnectionPassword()
           
 String getConnectionProtocol()
           
 String getConnectionURL()
           
 String getConnectionUsername()
           
 DirContext getContext()
           
 String getInitialContextFactory()
           
 MessageFormat getQueueSearchMatchingFormat()
           
 Set<GroupPrincipal> getReadACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of reading (consuming from) the given destination
 String getReadAttribute()
           
 String getReadBase()
           
 Set<GroupPrincipal> getTempDestinationAdminACLs()
          Returns the set of all ACLs capable of administering temp destination
 Set<GroupPrincipal> getTempDestinationReadACLs()
          Returns the set of all ACLs capable of reading from temp destination
 Set<GroupPrincipal> getTempDestinationWriteACLs()
          Returns the set of all ACLs capable of writing to temp destination
 String getTempSearchBase()
           
 MessageFormat getTopicSearchMatchingFormat()
           
 Set<GroupPrincipal> getWriteACLs(ActiveMQDestination destination)
          Returns the set of all ACLs capable of writing to the given destination
 String getWriteAttribute()
           
 String getWriteBase()
           
 boolean isQueueSearchSubtreeBool()
           
 boolean isTopicSearchSubtreeBool()
           
 boolean isUseAdvisorySearchBase()
           
protected  DirContext open()
           
 void setAdminAttribute(String adminAttribute)
           
 void setAdminBase(String adminBase)
           
 void setAdvisorySearchBase(String advisorySearchBase)
           
 void setAuthentication(String authentication)
           
 void setConnectionPassword(String connectionPassword)
           
 void setConnectionProtocol(String connectionProtocol)
           
 void setConnectionURL(String connectionURL)
           
 void setConnectionUsername(String connectionUsername)
           
 void setContext(DirContext context)
           
 void setInitialContextFactory(String initialContextFactory)
           
 void setQueueSearchMatchingFormat(MessageFormat queueSearchMatchingFormat)
           
 void setQueueSearchSubtreeBool(boolean queueSearchSubtreeBool)
           
 void setReadAttribute(String readAttribute)
           
 void setReadBase(String readBase)
           
 void setTempSearchBase(String tempSearchBase)
           
 void setTopicSearchMatchingFormat(MessageFormat topicSearchMatchingFormat)
           
 void setTopicSearchSubtreeBool(boolean topicSearchSubtreeBool)
           
 void setUseAdvisorySearchBase(boolean useAdvisorySearchBase)
           
 void setWriteAttribute(String writeAttribute)
           
 void setWriteBase(String writeBase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

LDAPAuthorizationMap

public LDAPAuthorizationMap()

LDAPAuthorizationMap

public LDAPAuthorizationMap(Map<String,String> options)
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 interface AuthorizationMap

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 interface AuthorizationMap

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 interface AuthorizationMap

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 interface AuthorizationMap

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 interface AuthorizationMap

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 interface AuthorizationMap

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


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.