クラス LdapUtils
java.lang.ObjectSE
org.springframework.security.ldap.LdapUtils
LDAP ユーティリティメソッド。
方法の概要
修飾子と型メソッド説明static void
closeContext
(ContextSE ctx) static void
static StringSE
convertPasswordToString
(ObjectSE passObj) static LdapNameSE
getFullDn
(LdapNameSE dn, ContextSE baseCtx) static org.springframework.ldap.core.DistinguishedName
使用すべきではありません。static StringSE
getRelativeName
(StringSE fullDn, ContextSE baseCtx) 指定されたベースコンテキストに関連する DN の一部を取得します。static StringSE
LDAPURL のルート DN を計算します。
メソッドの詳細
closeContext
closeEnumeration
getRelativeName
指定されたベースコンテキストに関連する DN の一部を取得します。DN が "cn=bob,ou=people,dc=springframework,dc=org" で、ベースコンテキスト名が "ou=people,dc=springframework,dc=org" の場合、"cn=bob" が返されます。
- パラメーター:
fullDn
- DNbaseCtx
- 相対的な名前を計算するためのコンテキスト。- 戻り値:
- 例外:
NamingExceptionSE
- コンテキストによってスローされた例外はすべて伝播されます。
getFullDn
@DeprecatedSE public static org.springframework.ldap.core.DistinguishedName getFullDn(org.springframework.ldap.core.DistinguishedName dn, ContextSE baseCtx) throws NamingExceptionSE 使用すべきではありません。相対的なコンテキストの名前を前に付けることにより、名前の完全な dn を取得します。名前にすでにベース名が含まれている場合は、変更されずに返されます。getFullDn
convertPasswordToString
parseRootDnFromUrl
LDAPURL のルート DN を計算します。例: URL ldap://monkeymachine:11389/dc=springframework、dc = org にはルート DN "dc=springframework,dc=org" があります。
- パラメーター:
url
- LDAPURL- 戻り値:
- ルート DN
getFullDn(LdapName, Context)
を使用