クラス AbstractLdapAuthenticator

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

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

    • 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 StringSE[] getUserAttributes()
    • getUserDns

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

      protected LdapUserSearch getUserSearch()
    • setMessageSource

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

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

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

      public void setUserSearch(LdapUserSearch userSearch)