クラス AbstractLdapAuthenticator
java.lang.ObjectSE
org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.MessageSourceAware
、LdapAuthenticator
- 既知の直属サブクラス
BindAuthenticator
,PasswordComparisonAuthenticator
public abstract class AbstractLdapAuthenticator
extends ObjectSE
implements LdapAuthenticator, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
オーセンティケーター実装の基本クラス。
フィールドサマリー
フィールドコンストラクターのサマリー
コンストラクターコンストラクター説明AbstractLdapAuthenticator
(org.springframework.ldap.core.ContextSource contextSource) 提供されたContextSource
で初期化されたインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明void
protected org.springframework.ldap.core.ContextSource
StringSE[]
getUserDns
(StringSE username) ユーザーの可能な DN のリストを作成し、 userDnPatterns プロパティから作成します。protected LdapUserSearch
void
setMessageSource
(org.springframework.context.MessageSource messageSource) void
setUserAttributes
(StringSE[] userAttributes) ディレクトリから取得されるユーザー属性を設定します。void
setUserDnPatterns
(StringSE[] dnPattern) ユーザーに DN を提供するために使用されるパターンを設定します。void
setUserSearch
(LdapUserSearch userSearch) クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.security.ldap.authentication.LdapAuthenticator から継承されたメソッド
authenticate
フィールドの詳細
messages
protected org.springframework.context.support.MessageSourceAccessor messages
コンストラクターの詳細
AbstractLdapAuthenticator
public AbstractLdapAuthenticator(org.springframework.ldap.core.ContextSource contextSource) 提供されたContextSource
で初期化されたインスタンスを作成します。- パラメーター:
contextSource
-
メソッドの詳細
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
getContextSource
protected org.springframework.ldap.core.ContextSource getContextSource()getUserAttributes
getUserDns
ユーザーの可能な DN のリストを作成し、 userDnPatterns プロパティから作成します。- パラメーター:
username
- ユーザーのログイン名- 戻り値:
- 一致する可能性のある DN のリスト。 userDnPatterns が設定されていない場合は空です。
getUserSearch
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource) - 次で指定:
- インターフェース
org.springframework.context.MessageSourceAware
のsetMessageSource
setUserAttributes
ディレクトリから取得されるユーザー属性を設定します。- パラメーター:
userAttributes
-
setUserDnPatterns
ユーザーに DN を提供するために使用されるパターンを設定します。パターンは、ルート DN に関連する名前にする必要があります。パターン引数 {0} にはユーザー名が含まれます。"cn={0},ou=people" がその例です。- パラメーター:
dnPattern
- ユーザー名を DN に変換するときに試行されるパターンの配列。
setUserSearch