クラス BindAuthenticator
java.lang.ObjectSE
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
 ユーザーとしてバインドするオーセンティケーター。
- フィールドのサマリー- クラス 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- (StringSE userDn, StringSE username, ThrowableSE cause) サブクラスが特定の DN とのバインドの試みによってスローされた例外をインスペクションできるようにします。- void- setAlsoHandleJavaxNamingBindExceptions- (boolean alsoHandleJavaxNamingBindExceptions) javax ベースのバインド例外も- #handleBindExceptionに委譲するかどうかを設定します (デフォルトでは Spring ベースのバインド例外のみが処理されます)- クラス org.springframework.security.ldap.authentication.AbstractLdapAuthenticator から継承されたメソッド- afterPropertiesSet, getContextSource, getUserAttributes, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDnPatterns, setUserSearch
- コンストラクターの詳細- BindAuthenticatorpublic BindAuthenticator- (org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource) 提供されている- BaseLdapPathContextSourceを使用して、初期化されたインスタンスを作成します。- パラメーター:
- contextSource- バインド操作が実行される BaseLdapPathContextSource インスタンス。
 
 
- メソッドの詳細- authenticatepublic org.springframework.ldap.core.DirContextOperations authenticate- (Authentication authentication) インターフェースからコピーされた説明:- LdapAuthenticatorユーザーとして認証し、ディレクトリから追加のユーザー情報を取得します。- パラメーター:
- authentication- 認証リクエスト
- 戻り値:
- 正常に認証されたユーザーの詳細。
 
- handleBindExceptionサブクラスが特定の DN とのバインドの試みによってスローされた例外をインスペクションできるようにします。デフォルトの実装では、失敗をデバッグロガーに報告するだけです。
- setAlsoHandleJavaxNamingBindExceptionspublic void setAlsoHandleJavaxNamingBindExceptions- (boolean alsoHandleJavaxNamingBindExceptions) javax ベースのバインド例外も- #handleBindExceptionに委譲するかどうかを設定します (デフォルトでは Spring ベースのバインド例外のみが処理されます)- 受動性の理由から、デフォルトは - falseですが、将来のリリースでは- trueに変更される可能性があります。- パラメーター:
- alsoHandleJavaxNamingBindExceptions- - javax ベースのバインド例外を #handleBindException に委譲するかどうか
- 導入:
- 6.4