クラス PasswordPolicyAwareContextSource
java.lang.ObjectSE
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
org.springframework.security.ldap.DefaultSpringSecurityContextSource
org.springframework.security.ldap.ppolicy.PasswordPolicyAwareContextSource
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
、org.springframework.ldap.core.ContextSource
、org.springframework.ldap.core.support.BaseLdapPathContextSource
、org.springframework.ldap.core.support.BaseLdapPathSource
DefaultSpringSecurityContextSource の拡張バージョン。
PasswordPolicyControl
を使用して、ディレクトリに格納されているユーザーアカウントデータを利用するためのサポートを追加します。特定のユーザー名 (userDn ではない) プロパティでバインドする場合、例外が発生した場合でも、最初に userDn として接続し、次にユーザーとして再接続して、レスポンスで送信されたパスワードポリシーコントロールを取得します。
- 導入:
- 3.0
フィールドのサマリー
クラス org.springframework.security.ldap.DefaultSpringSecurityContextSource から継承されたフィールド
logger
クラス org.springframework.ldap.core.support.AbstractContextSource から継承されたフィールド
password, SUN_LDAP_POOLING_FLAG, userDn
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected HashtableSE
getAuthenticatedEnv
(StringSE principal, StringSE credentials) getContext
(StringSE principal, StringSE credentials) クラス org.springframework.ldap.core.support.LdapContextSource から継承されたメソッド
getDirContextInstance
クラス org.springframework.ldap.core.support.AbstractContextSource から継承されたメソッド
afterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticationSource, getBaseLdapName, getBaseLdapPath, getBaseLdapPathAsString, getContextFactory, getDirObjectFactory, getPassword, getReadOnlyContext, getReadWriteContext, getUrls, getUserDn, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setAuthenticationStrategy, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setReferral, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn
コンストラクターの詳細
PasswordPolicyAwareContextSource
メソッドの詳細
getContext
public DirContextSE getContext(StringSE principal, StringSE credentials) throws PasswordPolicyException - 次で指定:
- インターフェース
org.springframework.ldap.core.ContextSource
のgetContext
- オーバーライド:
- クラス
org.springframework.ldap.core.support.AbstractContextSource
のgetContext
- 例外:
PasswordPolicyException
getAuthenticatedEnv
- オーバーライド:
- クラス
org.springframework.ldap.core.support.AbstractContextSource
のgetAuthenticatedEnv