クラス PasswordComparisonAuthenticator
java.lang.ObjectSE
org.springframework.security.ldap.authentication.AbstractLdapAuthenticator
org.springframework.security.ldap.authentication.PasswordComparisonAuthenticator
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.MessageSourceAware
、LdapAuthenticator
ログインパスワードを、リモート LDAP の「比較」操作を使用してディレクトリに格納されている値と比較する
LdapAuthenticator
。 パスワードがダイジェスト形式でリポジトリに格納されている場合は、適切な PasswordEncoder
実装を提供する必要があります。デフォルトでは、パスワードは LdapShaPasswordEncoder
を使用してエンコードされます。salted-SHA(SSHA)パスワードが使用されている場合、比較操作は機能しません。これは、ディレクトリによって生成されるランダムなバイトシーケンスである salt 値を知ることができないためです。
フィールドサマリー
クラス org.springframework.security.ldap.authentication.AbstractLdapAuthenticator から継承されたフィールド
messages
コンストラクターのサマリー
コンストラクターコンストラクター説明PasswordComparisonAuthenticator
(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource) メソッドのサマリー
修飾子と型メソッド説明org.springframework.ldap.core.DirContextOperations
authenticate
(Authentication authentication) ユーザーとして認証し、ディレクトリから追加のユーザー情報を取得します。void
setPasswordAttributeName
(StringSE passwordAttribute) void
setPasswordEncoder
(PasswordEncoder passwordEncoder) void
setUsePasswordAttrCompare
(boolean usePasswordAttrCompare) クラス org.springframework.security.ldap.authentication.AbstractLdapAuthenticator から継承されたメソッド
afterPropertiesSet, getContextSource, getUserAttributes, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDnPatterns, setUserSearch
コンストラクターの詳細
PasswordComparisonAuthenticator
public PasswordComparisonAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
メソッドの詳細
authenticate
public org.springframework.ldap.core.DirContextOperations authenticate(Authentication authentication) インターフェースからコピーされた説明:LdapAuthenticator
ユーザーとして認証し、ディレクトリから追加のユーザー情報を取得します。- 戻り値:
- 正常に認証されたユーザーの詳細。
setPasswordAttributeName
setUsePasswordAttrCompare
public void setUsePasswordAttrCompare(boolean usePasswordAttrCompare) setPasswordEncoder