クラス SpringSecurityAuthenticationSource

java.lang.ObjectSE
org.springframework.security.ldap.authentication.SpringSecurityAuthenticationSource
実装されたすべてのインターフェース:
org.springframework.ldap.core.AuthenticationSource

public class SpringSecurityAuthenticationSource extends ObjectSE implements org.springframework.ldap.core.AuthenticationSource
Spring SecuritySecurityContextHolder に格納されている認証情報を取得する AuthenticationSource。

これは Spring LDAP の AcegiAuthenticationSource のコピーであり、Spring Security 2.0 で使用するために更新されています。

導入:
2.0
  • コンストラクターの詳細

    • SpringSecurityAuthenticationSource

      public SpringSecurityAuthenticationSource()
  • メソッドの詳細

    • getPrincipal

      public StringSE getPrincipal()
      ログインしたユーザーのプリンシパル(この場合は識別名)を取得します。
      次で指定:
      インターフェース org.springframework.ldap.core.AuthenticationSourcegetPrincipal 
      戻り値:
      ログインしたユーザーの識別名。
    • getCredentials

      public StringSE getCredentials()
      次で指定:
      インターフェース org.springframework.ldap.core.AuthenticationSourcegetCredentials 
      関連事項:
      • AuthenticationSource.getCredentials()
    • setSecurityContextHolderStrategy

      public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy securityContextHolderStrategy)
      使用する SecurityContextHolderStrategy を設定します。デフォルトのアクションは、SecurityContextHolder に格納されている SecurityContextHolderStrategy を使用することです。
      導入:
      5.8