クラス LdapPasswordComparisonAuthenticationManagerFactory
java.lang.ObjectSE
org.springframework.security.config.ldap.AbstractLdapAuthenticationManagerFactory<PasswordComparisonAuthenticator>
org.springframework.security.config.ldap.LdapPasswordComparisonAuthenticationManagerFactory
public class LdapPasswordComparisonAuthenticationManagerFactory
extends AbstractLdapAuthenticationManagerFactory<PasswordComparisonAuthenticator>
パスワード比較を使用して LDAP 認証を実行できる
AuthenticationManager を作成します。- 導入:
- 5.7
コンストラクター概要
コンストラクターコンストラクター説明LdapPasswordComparisonAuthenticationManagerFactory(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource, PasswordEncoder passwordEncoder) 方法の概要
修飾子と型メソッド説明protected PasswordComparisonAuthenticatorサブクラスがデフォルトのAbstractLdapAuthenticatorを提供できるようにします。voidsetPasswordAttribute(StringSE passwordAttribute) ユーザーパスワードを含むディレクトリ内の属性。voidsetPasswordEncoder(PasswordEncoder passwordEncoder) パスワード比較による認証時に使用するPasswordEncoderを指定します。
コンストラクターの詳細
LdapPasswordComparisonAuthenticationManagerFactory
public LdapPasswordComparisonAuthenticationManagerFactory(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource, PasswordEncoder passwordEncoder)
方法の詳細
setPasswordEncoder
パスワード比較による認証時に使用するPasswordEncoderを指定します。- パラメーター:
passwordEncoder- 使用するPasswordEncoder
setPasswordAttribute
ユーザーパスワードを含むディレクトリ内の属性。パスワード比較による認証時にのみ使用されます。デフォルトは "userPassword" です。- パラメーター:
passwordAttribute- ユーザーパスワードを含むディレクトリ内の属性
createDefaultLdapAuthenticator
クラスからコピーされた説明:AbstractLdapAuthenticationManagerFactoryサブクラスがデフォルトのAbstractLdapAuthenticatorを提供できるようにします。- 次で指定:
- クラス
AbstractLdapAuthenticationManagerFactory<PasswordComparisonAuthenticator>のcreateDefaultLdapAuthenticator - 戻り値:
- LDAP 認証用に構成される
AbstractLdapAuthenticator