クラス BindAuthenticator
- java.lang.Object
-
- org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
-
- org.springframework.security.ldap.authentication.BindAuthenticator
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.MessageSourceAware
、LdapAuthenticator
public class BindAuthenticator extends AbstractLdapAuthenticator
ユーザーとしてバインドするオーセンティケーター。
フィールドサマリー
クラス org.springframework.security.ldap.authentication.AbstractLdapAuthenticator から継承されたフィールド
messages
コンストラクターのサマリー
コンストラクター コンストラクター 説明 BindAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
提供されているBaseLdapPathContextSource
を使用して、初期化されたインスタンスを作成します。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 org.springframework.ldap.core.DirContextOperations
authenticate(Authentication authentication)
ユーザーとして認証し、ディレクトリから追加のユーザー情報を取得します。protected void
handleBindException(java.lang.String userDn, java.lang.String username, java.lang.Throwable cause)
サブクラスが特定の DN とのバインドの試みによってスローされた例外をインスペクションできるようにします。クラス org.springframework.security.ldap.authentication.AbstractLdapAuthenticator から継承されたメソッド
afterPropertiesSet, getContextSource, getUserAttributes, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDnPatterns, setUserSearch
メソッドの詳細
authenticate
public org.springframework.ldap.core.DirContextOperations authenticate(Authentication authentication)
インターフェースからコピーされた説明:LdapAuthenticator
ユーザーとして認証し、ディレクトリから追加のユーザー情報を取得します。- 戻り値:
- 正常に認証されたユーザーの詳細。
handleBindException
protected void handleBindException(java.lang.String userDn, java.lang.String username, java.lang.Throwable cause)
サブクラスが特定の DN とのバインドの試みによってスローされた例外をインスペクションできるようにします。デフォルトの実装では、失敗をデバッグロガーに報告するだけです。