|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acegisecurity.ldap.search.FilterBasedLdapUserSearch
public class FilterBasedLdapUserSearch
LdapUserSearch implementation which uses an Ldap filter to locate the user.
SearchControls
Constructor Summary | |
---|---|
FilterBasedLdapUserSearch(java.lang.String searchBase,
java.lang.String searchFilter,
InitialDirContextFactory initialDirContextFactory)
|
Method Summary | |
---|---|
protected LdapUserDetailsMapper |
getUserDetailsMapper()
|
LdapUserDetails |
searchForUser(java.lang.String username)
Return the LdapUserDetails containing the user's information |
void |
setDerefLinkFlag(boolean deref)
Sets the corresponding property on the SearchControls instance used in the search. |
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. |
void |
setSearchTimeLimit(int searchTimeLimit)
The time to wait before the search fails; the default is zero, meaning forever. |
void |
setUserDetailsMapper(LdapUserDetailsMapper userDetailsMapper)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterBasedLdapUserSearch(java.lang.String searchBase, java.lang.String searchFilter, InitialDirContextFactory initialDirContextFactory)
Method Detail |
---|
public LdapUserDetails searchForUser(java.lang.String username)
searchForUser
in interface LdapUserSearch
username
- the username to search for.
UsernameNotFoundException
- if no matching entry is found.public void setDerefLinkFlag(boolean deref)
SearchControls
instance used in the search.
deref
- the derefLinkFlag value as defined in SearchControls..public void setSearchSubtree(boolean searchSubtree)
searchSubtree
- true the underlying search controls should be set to SearchControls.SUBTREE_SCOPE
rather than SearchControls.ONELEVEL_SCOPE.public void setSearchTimeLimit(int searchTimeLimit)
searchTimeLimit
- the time limit for the search (in milliseconds).protected LdapUserDetailsMapper getUserDetailsMapper()
public void setUserDetailsMapper(LdapUserDetailsMapper userDetailsMapper)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |