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