Package org.ldaptive.auth
Class WhoAmIEntryResolver
java.lang.Object
org.ldaptive.AbstractSearchOperationFactory
org.ldaptive.auth.AbstractSearchEntryResolver
org.ldaptive.auth.WhoAmIEntryResolver
- All Implemented Interfaces:
EntryResolver
,ConnectionFactoryManager
Executes the whoami extended operation on the authenticated connection, then performs an object level search
on the result. Useful when users authenticate with some mapped identifier, like DIGEST-MD5.
-
Field Summary
Fields inherited from class org.ldaptive.AbstractSearchOperationFactory
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchRequest
Returns a search request for an object level search for the supplied DN.protected SearchResponse
performLdapSearch
(AuthenticationCriteria criteria, AuthenticationHandlerResponse response) Executes an ldap search with the supplied authentication criteria.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
-
Constructor Details
-
WhoAmIEntryResolver
public WhoAmIEntryResolver()
-
-
Method Details
-
performLdapSearch
protected 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
-
createSearchRequest
Returns a search request for an object level search for the supplied DN.- Parameters:
ac
- authentication criteria containing return attributesdn
- from the who am i operation- Returns:
- search request
-