クラス DefaultSpringSecurityContextSource

java.lang.ObjectSE
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
org.springframework.security.ldap.DefaultSpringSecurityContextSource
実装済みのインターフェース一覧:
org.springframework.beans.factory.InitializingBeanorg.springframework.ldap.core.ContextSourceorg.springframework.ldap.core.support.BaseLdapPathContextSourceorg.springframework.ldap.core.support.BaseLdapPathSource
既知の直属サブクラス
KerberosLdapContextSourcePasswordPolicyAwareContextSource

public class DefaultSpringSecurityContextSource extends org.springframework.ldap.core.support.LdapContextSource
ContextSource implementation which uses Spring LDAP's LdapContextSource as a base class. Used internally by the Spring Security LDAP namespace configuration.

From Spring Security 3.0, Spring LDAP 1.3 is used and the ContextSource interface provides support for binding with a username and password. As a result, Spring LDAP ContextSource implementations such as LdapContextSource may be used directly with Spring Security.

Spring LDAP 1.3 doesn't have JVM-level LDAP connection pooling enabled by default. This class sets the pooled property to true, but customizes the DirContextAuthenticationStrategy used to disable pooling when the DN doesn't match the userDn property. This prevents pooling for calls to AbstractContextSource.getContext(String, String) to authenticate as specific users.

導入:
2.0
  • フィールド概要

    フィールド
    修飾子と型
    フィールド
    説明
    protected final org.apache.commons.logging.Log

    クラス org.springframework.ldap.core.support.AbstractContextSource から継承されたフィールド

    password, SUN_LDAP_POOLING_FLAG, userDn
  • コンストラクター概要

    コンストラクター
    コンストラクター
    説明
    指定された LDAP URL に接続するインスタンスを作成して初期化します。
    LDAP Spring Security Context Source の接続するインスタンスを作成して初期化します。
  • 方法の概要

    クラス org.springframework.ldap.core.support.LdapContextSource から継承されたメソッド

    getDirContextInstance

    クラス org.springframework.ldap.core.support.AbstractContextSource から継承されたメソッド

    afterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticatedEnv, getAuthenticationSource, getBaseLdapName, getBaseLdapPath, getBaseLdapPathAsString, getContext, 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
  • フィールドの詳細

    • logger

      protected final org.apache.commons.logging.Log logger
  • コンストラクターの詳細

    • DefaultSpringSecurityContextSource

      public DefaultSpringSecurityContextSource(StringSE providerUrl)
      指定された LDAP URL に接続するインスタンスを作成して初期化します。フェイルオーバーに複数のサーバーを使用する場合は、DefaultSpringSecurityContextSource(List, String) コンストラクターを使用してください。
      パラメーター:
      providerUrl - ldap://localhost:389/base_dn 形式の LDAP URL
    • DefaultSpringSecurityContextSource

      public DefaultSpringSecurityContextSource(ListSE<StringSE> urls, StringSE baseDn)
      LDAP Spring Security Context Source の接続するインスタンスを作成して初期化します。提供された LDAP サーバー URL のいずれかに接続します。
      パラメーター:
      urls - LDAP サーバーの URL である文字列値のリスト。ldap://ldap.company.com:389 がその例です。Spring Security がサーバーに接続できる場合、LDAPS URL(SSL で保護された)も使用できます。これらの URL にはベース DN を含めないでください。
      baseDn - 提供されるすべてのサーバーに共通のベース DN。
       dc=company,dc=com
       
      .