|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.auth.AbstractSearchOperationFactory
org.ldaptive.auth.AbstractSearchEntryResolver
org.ldaptive.auth.SearchEntryResolver
public class SearchEntryResolver
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.auth.AbstractSearchOperationFactory |
|---|
logger |
| Constructor Summary | |
|---|---|
SearchEntryResolver()
Default constructor. |
|
SearchEntryResolver(ConnectionFactory cf)
Creates a new search entry resolver. |
|
SearchEntryResolver(ConnectionFactory cf,
String... attrs)
Deprecated. return attributes are provided in the authentication criteria |
|
SearchEntryResolver(String... attrs)
Deprecated. return attributes are provided in the authentication criteria |
|
| Method Summary | |
|---|---|
ConnectionFactory |
getConnectionFactory()
Returns the connection factory. |
SearchResult |
performLdapSearch(Connection conn,
AuthenticationCriteria ac)
Executes an ldap search with the supplied authentication criteria. |
void |
setConnectionFactory(ConnectionFactory cf)
Sets the connection factory. |
String |
toString()
|
| 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, wait, wait, wait |
| Constructor Detail |
|---|
public SearchEntryResolver()
@Deprecated public SearchEntryResolver(String... attrs)
attrs - to returnpublic SearchEntryResolver(ConnectionFactory cf)
cf - connection factory
@Deprecated
public SearchEntryResolver(ConnectionFactory cf,
String... attrs)
cf - connection factoryattrs - to return| Method Detail |
|---|
public ConnectionFactory getConnectionFactory()
getConnectionFactory in interface ConnectionFactoryManagerpublic void setConnectionFactory(ConnectionFactory cf)
setConnectionFactory in interface ConnectionFactoryManagercf - connection factory
public SearchResult performLdapSearch(Connection conn,
AuthenticationCriteria ac)
throws LdapException
performLdapSearch in class AbstractSearchEntryResolverconn - that the user attempted to bind onac - authentication criteria associated with the user
LdapException - if an error occurs attempting the searchpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||