クラス Saml2AssertionAuthentication
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.saml2.provider.service.authentication.Saml2Authentication
org.springframework.security.saml2.provider.service.authentication.Saml2AssertionAuthentication
- 実装済みのインターフェース一覧:
SerializableSE, PrincipalSE, Authentication, CredentialsContainer
SAML 2.0 アサーションに基づく認証
- 導入:
- 7.0
- 関連事項:
ネストされたクラスの概要
ネストされたクラスクラス AbstractAuthenticationToken から継承されたネストクラス / インターフェース
AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>コンストラクター概要
コンストラクター修飾子コンストラクター説明Saml2AssertionAuthentication(ObjectSE principal, Saml2ResponseAssertionAccessor assertion, CollectionSE<? extends GrantedAuthority> authorities, StringSE relyingPartyRegistrationId) protectedSaml2AssertionAuthentication(Saml2ResponseAssertionAccessor assertion, CollectionSE<? extends GrantedAuthority> authorities, StringSE relyingPartyRegistrationId) 方法の概要
クラス Saml2Authentication から継承されたメソッド
getPrincipal, getSaml2Responseクラス AbstractAuthenticationToken から継承されたメソッド
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringインターフェース PrincipalSE から継承されたメソッド
impliesSE
コンストラクターの詳細
Saml2AssertionAuthentication
public Saml2AssertionAuthentication(Saml2ResponseAssertionAccessor assertion, CollectionSE<? extends GrantedAuthority> authorities, StringSE relyingPartyRegistrationId) Saml2AssertionAuthentication
public Saml2AssertionAuthentication(ObjectSE principal, Saml2ResponseAssertionAccessor assertion, CollectionSE<? extends GrantedAuthority> authorities, StringSE relyingPartyRegistrationId) Saml2AssertionAuthentication
方法の詳細
getCredentials
インターフェースからコピーされた説明:Authenticationプリンシパルが正しいことを証明する資格情報。これは通常パスワードですが、AuthenticationManagerに関連するものであれば何でもかまいません。呼び出し元は資格情報を入力する必要があります。- 次で指定:
- インターフェース
Authentication内のgetCredentials - オーバーライド:
- クラス
Saml2AuthenticationのgetCredentials - 戻り値:
Principalの身元を証明する資格情報
getRelyingPartyRegistrationId
toBuilder
インターフェースからコピーされた説明:Authenticationこのインスタンスに基づいてAuthentication.Builderを返します。デフォルトでは、SimpleAuthenticationを構築するビルダーを返します。default方式ではありますが、すべてのAuthentication実装でこれを実装する必要があります。これは、Authentication.Builder.build()が呼び出された際にAuthentication型が保持されることを保証するためです。これは、認証実装にカスタムフィールドが含まれている場合に特に重要です。アプリケーションは
Authenticationインターフェースにコード化することが推奨されており、カスタム情報は多くの場合Authentication.getPrincipal()値に含まれているため、これは厳密には必要ではありません。- 戻り値:
- このインスタンスに基づいて新しい
Authenticationを構築するためのAuthentication.Builder