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
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
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, getConnectionFactory, getControlHandlers, getEntryHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferenceHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getSearchResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, setConnectionFactory, setControlHandlers, setEntryHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferenceHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setSearchResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers
-
-
-
-
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
-
-