Package org.ldaptive.auth
Class AuthorizationIdentityEntryResolver
- java.lang.Object
-
- org.ldaptive.AbstractFreezable
-
- org.ldaptive.AbstractOperationFactory<SearchRequest,SearchResponse>
-
- org.ldaptive.AbstractSearchOperationFactory
-
- org.ldaptive.auth.AbstractSearchEntryResolver
-
- org.ldaptive.auth.AuthorizationIdentityEntryResolver
-
- All Implemented Interfaces:
EntryResolver,ConnectionFactoryManager,Freezable
public class AuthorizationIdentityEntryResolver extends AbstractSearchEntryResolver
Reads the authorization identity response control, then performs an object level search on the result. Useful when users authenticate with some mapped identifier, like DIGEST-MD5. This resolver must be used with anAuthenticationHandlerthat is configured to send theAuthorizationIdentityRequestControl.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractOperationFactory
logger
-
-
Constructor Summary
Constructors Constructor Description AuthorizationIdentityEntryResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SearchRequestcreateSearchRequest(AuthenticationCriteria ac, String dn)Returns a search request for an object level search for the supplied DN.protected SearchResponseperformLdapSearch(AuthenticationCriteria criteria, AuthenticationHandlerResponse response)Executes an ldap search with the supplied authentication criteria.StringtoString()-
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: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
-
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:
toStringin classAbstractSearchEntryResolver
-
-