|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.core.LdapTemplate org.springframework.security.ldap.SpringSecurityLdapTemplate
public class SpringSecurityLdapTemplate
Extension of Spring LDAP's LdapTemplate class which adds extra functionality required by Spring Security.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.springframework.ldap.core.LdapTemplate |
---|
org.springframework.ldap.core.LdapTemplate.MappingCollectingNameClassPairCallbackHandler |
Field Summary | |
---|---|
static java.lang.String[] |
NO_ATTRS
|
Constructor Summary | |
---|---|
SpringSecurityLdapTemplate(org.springframework.ldap.core.ContextSource contextSource)
|
Method Summary | |
---|---|
boolean |
compare(java.lang.String dn,
java.lang.String attributeName,
java.lang.Object value)
Performs an LDAP compare operation of the value of an attribute for a particular directory entry. |
org.springframework.ldap.core.DirContextOperations |
retrieveEntry(java.lang.String dn,
java.lang.String[] attributesToRetrieve)
Composes an object from the attributes of the given DN. |
java.util.Set<java.lang.String> |
searchForSingleAttributeValues(java.lang.String base,
java.lang.String filter,
java.lang.Object[] params,
java.lang.String attributeName)
Performs a search using the supplied filter and returns the union of the values of the named attribute found in all entries matched by the search. |
org.springframework.ldap.core.DirContextOperations |
searchForSingleEntry(java.lang.String base,
java.lang.String filter,
java.lang.Object[] params)
Performs a search, with the requirement that the search shall return a single directory entry, and uses the supplied mapper to create the object from that entry. |
void |
setSearchControls(javax.naming.directory.SearchControls searchControls)
Sets the search controls which will be used for search operations by the template. |
Methods inherited from class org.springframework.ldap.core.LdapTemplate |
---|
afterPropertiesSet, authenticate, authenticate, authenticate, authenticate, bind, bind, bind, deleteRecursively, executeReadOnly, executeReadWrite, getContextSource, list, list, list, list, list, list, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookupContext, lookupContext, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, rebind, rename, rename, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, searchForObject, searchForObject, setContextSource, setIgnoreNameNotFoundException, setIgnorePartialResultException, unbind, unbind, unbind, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] NO_ATTRS
Constructor Detail |
---|
public SpringSecurityLdapTemplate(org.springframework.ldap.core.ContextSource contextSource)
Method Detail |
---|
public boolean compare(java.lang.String dn, java.lang.String attributeName, java.lang.Object value)
dn
- the entry who's attribute is to be usedattributeName
- the attribute who's value we want to comparevalue
- the value to be checked against the directory value
public org.springframework.ldap.core.DirContextOperations retrieveEntry(java.lang.String dn, java.lang.String[] attributesToRetrieve)
dn
- the directory entry which will be readattributesToRetrieve
- the named attributes which will be retrieved from the directory entry.
public java.util.Set<java.lang.String> searchForSingleAttributeValues(java.lang.String base, java.lang.String filter, java.lang.Object[] params, java.lang.String attributeName)
base
- the DN to search infilter
- search filter to useparams
- the parameters to substitute in the search filterattributeName
- the attribute who's values are to be retrieved.
public org.springframework.ldap.core.DirContextOperations searchForSingleEntry(java.lang.String base, java.lang.String filter, java.lang.Object[] params)
Ignores PartialResultException if thrown, for compatibility with Active Directory
(see LdapTemplate.setIgnorePartialResultException(boolean)
).
base
- the search base, relative to the base context supplied by the context source.filter
- the LDAP search filterparams
- parameters to be substituted in the search.
org.springframework.dao.IncorrectResultSizeDataAccessException
- if no results are found or the search returns more than one
result.public void setSearchControls(javax.naming.directory.SearchControls searchControls)
searchControls
- the SearchControls instance which will be cached in the template.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |