Package org.ldaptive.auth
Class SearchEntryResolver
- All Implemented Interfaces:
EntryResolver,ConnectionFactoryManager,Freezable
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.AbstractOperationFactory
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, setUserFilterParametersMethods inherited from class org.ldaptive.AbstractSearchOperationFactory
createSearchOperation, createSearchOperation, freeze, getEntryHandlers, getReferenceHandlers, getSearchResultHandlers, setEntryHandlers, setReferenceHandlers, setSearchResultHandlersMethods inherited from class org.ldaptive.AbstractOperationFactory
getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, initializeOperation, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlersMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
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:AbstractSearchEntryResolverExecutes an ldap search with the supplied authentication criteria.- Specified by:
performLdapSearchin 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
- Overrides:
toStringin classAbstractSearchEntryResolver
-