クラス 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.InitializingBeanorg.springframework.ldap.core.ContextSourceorg.springframework.ldap.core.support.BaseLdapPathContextSourceorg.springframework.ldap.core.support.BaseLdapPathSource

public class PasswordPolicyAwareContextSource extends DefaultSpringSecurityContextSource
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

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • PasswordPolicyAwareContextSource

      public PasswordPolicyAwareContextSource(StringSE providerUrl)
  • メソッドの詳細

    • getContext

      public DirContextSE getContext(StringSE principal, StringSE credentials) throws PasswordPolicyException
      次で指定:
      インターフェース org.springframework.ldap.core.ContextSourcegetContext 
      オーバーライド:
      クラス org.springframework.ldap.core.support.AbstractContextSourcegetContext 
      例外:
      PasswordPolicyException
    • getAuthenticatedEnv

      protected HashtableSE getAuthenticatedEnv(StringSE principal, StringSE credentials)
      オーバーライド:
      クラス org.springframework.ldap.core.support.AbstractContextSourcegetAuthenticatedEnv