java.lang.Object | |
↳ | org.springframework.security.ldap.LdapUtils |
LDAP Utility methods.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the full dn of a name by prepending the name of the context it is relative to.
| |||||||||||
Obtains the part of a DN relative to a supplied base context.
| |||||||||||
Works out the root DN for an LDAP URL.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the full dn of a name by prepending the name of the context it is relative to. If the name already contains the base name, it is returned unaltered.
NamingException |
---|
Obtains the part of a DN relative to a supplied base context.
If the DN is "cn=bob,ou=people,dc=springframework,dc=org" and the base context name is "ou=people,dc=springframework,dc=org" it would return "cn=bob".
fullDn | the DN |
---|---|
baseCtx | the context to work out the name relative to. |
NamingException | any exceptions thrown by the context are propagated. |
---|
Works out the root DN for an LDAP URL.
For example, the URL ldap://monkeymachine:11389/dc=springframework,dc=org has the root DN "dc=springframework,dc=org".
url | the LDAP URL |
---|