java.lang.Object | ||
↳ | LdapTemplate | |
↳ | org.springframework.security.ldap.SpringSecurityLdapTemplate |
Extension of Spring LDAP's LdapTemplate class which adds extra functionality required by Spring Security.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NO_ATTRS |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs an LDAP compare operation of the value of an attribute for a particular directory entry.
| |||||||||||
Composes an object from the attributes of the given DN.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Internal method extracted to avoid code duplication in AD search.
| |||||||||||
Sets the search controls which will be used for search operations by the template.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Performs an LDAP compare operation of the value of an attribute for a particular directory entry.
dn | the entry who's attribute is to be used |
---|---|
attributeName | the attribute who's value we want to compare |
value | the value to be checked against the directory value |
Composes an object from the attributes of the given DN.
dn | the directory entry which will be read |
---|---|
attributesToRetrieve | the named attributes which will be retrieved from the directory entry. |
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. Note that one directory entry may have several values for the attribute. Intended for role searches and similar scenarios.
base | the DN to search in |
---|---|
filter | search filter to use |
params | the parameters to substitute in the search filter |
attributeName | the attribute who's values are to be retrieved. |
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.
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 filter |
params | parameters to be substituted in the search. |
IncorrectResultSizeDataAccessException | if no results are found or the search returns more than one result. |
---|
Internal method extracted to avoid code duplication in AD search.
NamingException |
---|
Sets the search controls which will be used for search operations by the template.
searchControls | the SearchControls instance which will be cached in the template. |
---|