Package org.ldaptive.auth
Class WhoAmIEntryResolver
-
- All Implemented Interfaces:
EntryResolver
,ConnectionFactoryManager
,Freezable
public class WhoAmIEntryResolver extends AbstractSearchEntryResolver
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.AbstractOperationFactory
logger
-
-
Constructor Summary
Constructors Constructor Description WhoAmIEntryResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SearchRequest
createSearchRequest(AuthenticationCriteria ac, String dn)
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.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
-
-
-
-
Method Detail
-
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
protected SearchRequest createSearchRequest(AuthenticationCriteria ac, String dn)
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
-
toString
public String toString()
- Overrides:
toString
in classAbstractSearchEntryResolver
-
-