クラス 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 アサーションに基づく認証
ネストされたクラスの要約
ネストされたクラスクラス org.springframework.security.authentication.AbstractAuthenticationToken から継承されたネストクラス / インターフェース
AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>コンストラクターの概要
コンストラクター修飾子コンストラクター説明Saml2AssertionAuthentication(ObjectSE principal, Saml2ResponseAssertionAccessor assertion, CollectionSE<? extends GrantedAuthority> authorities, StringSE relyingPartyRegistrationId) protectedSaml2AssertionAuthentication(Saml2ResponseAssertionAccessor assertion, CollectionSE<? extends GrantedAuthority> authorities, StringSE relyingPartyRegistrationId) メソッドのサマリー
クラス org.springframework.security.saml2.provider.service.authentication.Saml2Authentication から継承されたメソッド
getPrincipal, getSaml2Responseクラス org.springframework.security.authentication.AbstractAuthenticationToken から継承されたメソッド
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSEインターフェース java.security.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