|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.ldap.search.FilterBasedLdapUserSearch
public class FilterBasedLdapUserSearch
LdapUserSearch implementation which uses an Ldap filter to locate the user.
SearchControls
Constructor Summary | |
---|---|
FilterBasedLdapUserSearch(String searchBase,
String searchFilter,
org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
|
Method Summary | |
---|---|
org.springframework.ldap.core.DirContextOperations |
searchForUser(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 |
setReturningAttributes(String[] attrs)
Specifies the attributes that will be returned as part of 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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterBasedLdapUserSearch(String searchBase, String searchFilter, org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
Method Detail |
---|
public org.springframework.ldap.core.DirContextOperations searchForUser(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).public void setReturningAttributes(String[] attrs)
null indicates that all attributes will be returned. An empty array indicates no attributes are returned.
attrs
- An array of attribute names identifying the attributes that
will be returned. Can be null.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |