クラス AbstractLdapAuthenticator

  • 実装されたすべてのインターフェース:
    org.springframework.beans.factory.Awareorg.springframework.beans.factory.InitializingBeanorg.springframework.context.MessageSourceAwareLdapAuthenticator
    既知の直属サブクラス
    BindAuthenticatorPasswordComparisonAuthenticator

    public abstract class AbstractLdapAuthenticator
    extends java.lang.Object
    implements LdapAuthenticator, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
    オーセンティケーター実装の基本クラス。
    • フィールドサマリー

      フィールド  
      修飾子と型 フィールド 説明
      protected org.springframework.context.support.MessageSourceAccessormessages
    • コンストラクターのサマリー

      コンストラクター  
      コンストラクター 説明
      AbstractLdapAuthenticator​(org.springframework.ldap.core.ContextSource contextSource)
      提供された ContextSource で初期化されたインスタンスを作成します。
    • フィールドの詳細

      • messages

        protected org.springframework.context.support.MessageSourceAccessor messages
    • コンストラクターの詳細

      • AbstractLdapAuthenticator

        public AbstractLdapAuthenticator​(org.springframework.ldap.core.ContextSource contextSource)
        提供された ContextSource で初期化されたインスタンスを作成します。
        パラメーター:
        contextSource -
    • メソッドの詳細

      • afterPropertiesSet

        public void afterPropertiesSet()
        次で指定:
        インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
      • getContextSource

        protected org.springframework.ldap.core.ContextSource getContextSource()
      • getUserAttributes

        public java.lang.String[] getUserAttributes()
      • getUserDns

        protected java.util.List<java.lang.String> getUserDns​(java.lang.String username)
        ユーザーの可能な DN のリストを作成し、 userDnPatterns プロパティから作成します。
        パラメーター:
        username - ユーザーのログイン名
        戻り値:
        一致する可能性のある DN のリスト。 userDnPatterns が設定されていない場合は空です。
      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
        次で指定:
        インターフェース org.springframework.context.MessageSourceAwaresetMessageSource 
      • setUserAttributes

        public void setUserAttributes​(java.lang.String[] userAttributes)
        ディレクトリから取得されるユーザー属性を設定します。
        パラメーター:
        userAttributes -
      • setUserDnPatterns

        public void setUserDnPatterns​(java.lang.String[] dnPattern)
        ユーザーに DN を提供するために使用されるパターンを設定します。パターンは、ルート DN に関連する名前にする必要があります。パターン引数 {0} にはユーザー名が含まれます。"cn={0},ou=people" がその例です。
        パラメーター:
        dnPattern - ユーザー名を DN に変換するときに試行されるパターンの配列。
      • setUserSearch

        public void setUserSearch​(LdapUserSearch userSearch)