| java.lang.Object org.acegisecurity.ldap.search.FilterBasedLdapUserSearch
FilterBasedLdapUserSearch | public class FilterBasedLdapUserSearch implements LdapUserSearch(Code) | | LdapUserSearch implementation which uses an Ldap filter to locate the user.
author: Robert Sanders author: Luke Taylor version: $Id: FilterBasedLdapUserSearch.java 1928 2007-07-24 17:01:36Z luke_t $ See Also: SearchControls |
Method Summary | |
public LdapUserDetails | searchForUser(String username) Return the LdapUserDetails containing the user's information
Parameters: username - the username to search for. | public void | setDerefLinkFlag(boolean deref) Sets the corresponding property on the
SearchControls instance used in the search. | public void | setSearchSubtree(boolean searchSubtree) If true then searches the entire subtree as identified by context, if false (the default) then only
searches the level identified by the context. | public void | setSearchTimeLimit(int searchTimeLimit) The time to wait before the search fails; the default is zero, meaning forever. | public String | toString() |
searchForUser | public LdapUserDetails searchForUser(String username)(Code) | | Return the LdapUserDetails containing the user's information
Parameters: username - the username to search for. An LdapUserDetails object containing the details of the located user's directory entry throws: UsernameNotFoundException - if no matching entry is found. |
setDerefLinkFlag | public void setDerefLinkFlag(boolean deref)(Code) | | Sets the corresponding property on the
SearchControls instance used in the search.
Parameters: deref - the derefLinkFlag value as defined in SearchControls.. |
setSearchSubtree | public void setSearchSubtree(boolean searchSubtree)(Code) | | If true then searches the entire subtree as identified by context, if false (the default) then only
searches the level identified by the context.
Parameters: searchSubtree - true the underlying search controls should be set to SearchControls.SUBTREE_SCOPErather than SearchControls.ONELEVEL_SCOPE. |
setSearchTimeLimit | public void setSearchTimeLimit(int searchTimeLimit)(Code) | | The time to wait before the search fails; the default is zero, meaning forever.
Parameters: searchTimeLimit - the time limit for the search (in milliseconds). |
|
|