クラス 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
を提供できるようにします。void
setPasswordAttribute
(StringSE passwordAttribute) ユーザーパスワードを含むディレクトリ内の属性。void
setPasswordEncoder
(PasswordEncoder passwordEncoder) パスワード比較による認証時に使用するPasswordEncoder
を指定します。クラス org.springframework.security.config.ldap.AbstractLdapAuthenticationManagerFactory から継承されたメソッド
createAuthenticationManager, getContextSource, setAuthoritiesMapper, setContextSource, setLdapAuthoritiesPopulator, setUserDetailsContextMapper, setUserDnPatterns, setUserSearchBase, setUserSearchFilter
コンストラクターの詳細
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