Package org.ldaptive.auth
Class SearchEntryResolver
java.lang.Object
org.ldaptive.AbstractSearchOperationFactory
org.ldaptive.auth.AbstractSearchEntryResolver
org.ldaptive.auth.SearchEntryResolver
- All Implemented Interfaces:
EntryResolver
,ConnectionFactoryManager
public class SearchEntryResolver
extends AbstractSearchEntryResolver
implements ConnectionFactoryManager
Looks up the LDAP entry associated with a user. If a connection factory is configured it will be used to perform the
search for user. The connection will be opened and closed for each resolution. If no connection factory is configured
the search will occur using the connection that the bind was attempted on.
-
Field Summary
Fields inherited from class org.ldaptive.AbstractSearchOperationFactory
logger
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Creates a new search entry resolver. -
Method Summary
Modifier and TypeMethodDescriptionperformLdapSearch
(AuthenticationCriteria criteria, AuthenticationHandlerResponse response) Executes an ldap search with the supplied authentication criteria.toString()
Methods inherited from class org.ldaptive.auth.AbstractSearchEntryResolver
createFilterTemplate, createSearchRequest, getAllowMultipleEntries, getBaseDn, getBinaryAttributes, getDerefAliases, getSubtreeSearch, getUserFilter, getUserFilterParameters, resolve, setAllowMultipleEntries, setBaseDn, setBinaryAttributes, setDerefAliases, setSubtreeSearch, setUserFilter, setUserFilterParameters
Methods inherited from class org.ldaptive.AbstractSearchOperationFactory
createSearchOperation, createSearchOperation, getConnectionFactory, getEntryHandlers, getExceptionHandler, getResultHandlers, getSearchResultHandlers, setConnectionFactory, setEntryHandlers, setExceptionHandler, setResultHandlers, setSearchResultHandlers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ldaptive.ConnectionFactoryManager
getConnectionFactory, setConnectionFactory
-
Constructor Details
-
SearchEntryResolver
public SearchEntryResolver()Default constructor. -
SearchEntryResolver
Creates a new search entry resolver.- Parameters:
cf
- connection factory
-
-
Method Details
-
performLdapSearch
public SearchResponse performLdapSearch(AuthenticationCriteria criteria, AuthenticationHandlerResponse response) throws LdapException Description copied from class:AbstractSearchEntryResolver
Executes an ldap search with the supplied authentication criteria.- Specified by:
performLdapSearch
in classAbstractSearchEntryResolver
- Parameters:
criteria
- authentication criteria associated with the userresponse
- response from the authentication event- Returns:
- search result
- Throws:
LdapException
- if an error occurs attempting the search
-
toString
-