クラス PasswordComparisonAuthenticator
- java.lang.Object
-
- 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
public final class PasswordComparisonAuthenticator extends AbstractLdapAuthenticator
ログインパスワードを、リモート 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(java.lang.String passwordAttribute)
void
setPasswordEncoder(PasswordEncoder passwordEncoder)
void
setUsePasswordAttrCompare(boolean usePasswordAttrCompare)
クラス 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
ユーザーとして認証し、ディレクトリから追加のユーザー情報を取得します。- 戻り値:
- 正常に認証されたユーザーの詳細。
setPasswordAttributeName
public void setPasswordAttributeName(java.lang.String passwordAttribute)
setUsePasswordAttrCompare
public void setUsePasswordAttrCompare(boolean usePasswordAttrCompare)
setPasswordEncoder
public void setPasswordEncoder(PasswordEncoder passwordEncoder)