Package com.avoka.core.ldap
Class LdapUserQuery
- java.lang.Object
-
- com.avoka.core.ldap.LdapUserQuery
-
public class LdapUserQuery extends Object
Provides an LDAP User Query authenticating the LDAP user credentials and returning the specified attributes.
-
-
Constructor Summary
Constructors Constructor Description LdapUserQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames)
Perform a LDAP user query and return the specified user attributes.Map<String,Object>
getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames, boolean ldapConnectPooling)
Perform a LDAP user query and return the specified user attributes and LDAP connection pooling.
-
-
-
Method Detail
-
getUserAttributes
public Map<String,Object> getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames) throws NamingException
Perform a LDAP user query and return the specified user attributes. This method will not use LDAP connection pooling.- Parameters:
providerUrl
- the LDAP provider server URLsecurityPrincipal
- the user distinguished namesecurityCredential
- the user passwordsearchBase
- the LDAP query search basesearchFilter
- the LDAP search filtersearchSubTree
- specify whether to use subtree search scope, or single level otherwiseattributeNames
- the list attributes to return- Returns:
- the user attributes
- Throws:
NamingException
- if an error occurs
-
getUserAttributes
public Map<String,Object> getUserAttributes(String providerUrl, String securityPrincipal, String securityCredential, String searchBase, String searchFilter, boolean searchSubTree, List<String> attributeNames, boolean ldapConnectPooling) throws NamingException
Perform a LDAP user query and return the specified user attributes and LDAP connection pooling.- Parameters:
providerUrl
- the LDAP provider server URLsecurityPrincipal
- the user distinguished namesecurityCredential
- the user passwordsearchBase
- the LDAP query search basesearchFilter
- the LDAP search filtersearchSubTree
- specify whether to use subtree search scope, or single level otherwiseattributeNames
- the list attributes to returnldapConnectPooling
- use Sun LDAP connection pooling- Returns:
- the user attributes
- Throws:
NamingException
- if an error occurs- Since:
- 4.0.0
-
-