Package org.ldaptive.auth
Class SearchEntryResolver
-
- All Implemented Interfaces:
EntryResolver
,ConnectionFactoryManager
,Freezable
public class SearchEntryResolver extends AbstractSearchEntryResolver
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
Constructors Constructor Description SearchEntryResolver()
Default constructor.SearchEntryResolver(ConnectionFactory cf)
Creates a new search entry resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResponse
performLdapSearch(AuthenticationCriteria criteria, AuthenticationHandlerResponse response)
Executes an ldap search with the supplied authentication criteria.String
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, freeze, getEntryHandlers, getReferenceHandlers, getSearchResultHandlers, setEntryHandlers, setReferenceHandlers, setSearchResultHandlers
-
Methods inherited from class org.ldaptive.AbstractOperationFactory
getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, initializeOperation, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers
-
Methods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
-
-
-
Constructor Detail
-
SearchEntryResolver
public SearchEntryResolver()
Default constructor.
-
SearchEntryResolver
public SearchEntryResolver(ConnectionFactory cf)
Creates a new search entry resolver.- Parameters:
cf
- connection factory
-
-
Method Detail
-
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
public String toString()
- Overrides:
toString
in classAbstractSearchEntryResolver
-
-