クラス 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で初期化されたインスタンスを作成します。方法の概要
修飾子と型メソッド説明voidprotected org.springframework.ldap.core.ContextSourceStringSE @Nullable[]getUserDns(StringSE username) ユーザーの可能な DN のリストを作成し、 userDnPatterns プロパティから作成します。protected @Nullable LdapUserSearchvoidsetMessageSource(org.springframework.context.MessageSource messageSource) voidsetUserAttributes(StringSE[] userAttributes) ディレクトリから取得されるユーザー属性を設定します。voidsetUserDnPatterns(StringSE[] dnPattern) ユーザーに DN を提供するために使用されるパターンを設定します。voidsetUserSearch(LdapUserSearch userSearch) クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース LdapAuthenticator から継承されたメソッド
authenticate
フィールドの詳細
messages
protected org.springframework.context.support.MessageSourceAccessor messages
コンストラクターの詳細
AbstractLdapAuthenticator
public AbstractLdapAuthenticator(org.springframework.ldap.core.ContextSource contextSource) 提供されたContextSourceで初期化されたインスタンスを作成します。- パラメーター:
contextSource- 使用するContextSource
方法の詳細
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean内のafterPropertiesSet
getContextSource
protected org.springframework.ldap.core.ContextSource getContextSource()getUserAttributes
getUserDns
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