クラス PasswordPolicyAwareContextSource
- java.lang.Object
-
- 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
public class PasswordPolicyAwareContextSource extends DefaultSpringSecurityContextSource
DefaultSpringSecurityContextSource の拡張バージョン。PasswordPolicyControlを使用して、ディレクトリに格納されているユーザーアカウントデータを利用するためのサポートを追加します。特定のユーザー名 (userDn ではない) プロパティでバインドする場合、例外が発生した場合でも、最初に userDn として接続し、次にユーザーとして再接続して、レスポンスで送信されたパスワードポリシーコントロールを取得します。
- 導入:
- 3.0
フィールド概要
クラス org.springframework.security.ldap.DefaultSpringSecurityContextSource から継承されたフィールド
logger
コンストラクター概要
コンストラクター コンストラクター 説明 PasswordPolicyAwareContextSource(java.lang.String providerUrl)
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 protected java.util.HashtablegetAuthenticatedEnv(java.lang.String principal, java.lang.String credentials)javax.naming.directory.DirContextgetContext(java.lang.String principal, java.lang.String credentials)クラス 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
メソッドの詳細
getContext
public javax.naming.directory.DirContext getContext(java.lang.String principal, java.lang.String credentials) throws PasswordPolicyException- 次で指定:
- インターフェース
org.springframework.ldap.core.ContextSource内のgetContext - オーバーライド:
- クラス
org.springframework.ldap.core.support.AbstractContextSourceのgetContext - 例外:
PasswordPolicyException
getAuthenticatedEnv
protected java.util.Hashtable getAuthenticatedEnv(java.lang.String principal, java.lang.String credentials)- オーバーライド:
- クラス
org.springframework.ldap.core.support.AbstractContextSourceのgetAuthenticatedEnv