クラス 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.ldap.core.support.AbstractContextSource から継承されたフィールド

        password, SUN_LDAP_POOLING_FLAG, userDn
    • コンストラクターのサマリー

      コンストラクター  
      コンストラクター 説明
      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.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.Object から継承されたメソッド

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

      • PasswordPolicyAwareContextSource

        public PasswordPolicyAwareContextSource​(java.lang.String providerUrl)
    • メソッドの詳細

      • getContext

        public javax.naming.directory.DirContext getContext​(java.lang.String principal,
                                                            java.lang.String credentials)
                                                     throws PasswordPolicyException
        次で指定:
        インターフェース org.springframework.ldap.core.ContextSourcegetContext 
        オーバーライド:
        クラス org.springframework.ldap.core.support.AbstractContextSourcegetContext 
        例外:
        PasswordPolicyException
      • getAuthenticatedEnv

        protected java.util.Hashtable getAuthenticatedEnv​(java.lang.String principal,
                                                          java.lang.String credentials)
        オーバーライド:
        クラス org.springframework.ldap.core.support.AbstractContextSourcegetAuthenticatedEnv