org.ldaptive.auth
Class WhoAmIEntryResolver

java.lang.Object
  extended by org.ldaptive.auth.AbstractSearchOperationFactory
      extended by org.ldaptive.auth.AbstractSearchEntryResolver
          extended by org.ldaptive.auth.WhoAmIEntryResolver
All Implemented Interfaces:
EntryResolver

public class WhoAmIEntryResolver
extends AbstractSearchEntryResolver

Executes the WhoAmIOperation on the authenticated connection, then performs an object level search on the result. Useful when users authenticate with some mapped identifier, like DIGEST-MD5.

Version:
$Revision: 3068 $ $Date: 2014-10-24 13:22:32 -0400 (Fri, 24 Oct 2014) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.auth.AbstractSearchOperationFactory
logger
 
Constructor Summary
WhoAmIEntryResolver()
           
 
Method Summary
protected  SearchRequest createSearchRequest(AuthenticationCriteria ac, String dn)
          Returns a search request for an object level search for the supplied DN.
protected  SearchResult performLdapSearch(Connection conn, AuthenticationCriteria ac)
          Executes an ldap search with the supplied authentication criteria.
 
Methods inherited from class org.ldaptive.auth.AbstractSearchEntryResolver
createSearchFilter, createSearchRequest, createSearchRequest, getAllowMultipleEntries, getBaseDn, getDerefAliases, getFollowReferrals, getReturnAttributes, getSearchEntryHandlers, getSubtreeSearch, getUserFilter, getUserFilterParameters, resolve, setAllowMultipleEntries, setBaseDn, setDerefAliases, setFollowReferrals, setReturnAttributes, setSearchEntryHandlers, setSubtreeSearch, setUserFilter, setUserFilterParameters
 
Methods inherited from class org.ldaptive.auth.AbstractSearchOperationFactory
createSearchOperation, getSearchCache, getSearchExceptionHandler, getSearchResponseHandlers, setSearchCache, setSearchExceptionHandler, setSearchResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhoAmIEntryResolver

public WhoAmIEntryResolver()
Method Detail

performLdapSearch

protected SearchResult performLdapSearch(Connection conn,
                                         AuthenticationCriteria ac)
                                  throws LdapException
Executes an ldap search with the supplied authentication criteria.

Specified by:
performLdapSearch in class AbstractSearchEntryResolver
Parameters:
conn - that the user attempted to bind on
ac - authentication criteria associated with the user
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 attributes
dn - from the who am i operation
Returns:
search request


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.