クラス Saml2Authentication
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.saml2.provider.service.authentication.Saml2Authentication
- 実装済みのインターフェース一覧:
SerializableSE, PrincipalSE, Authentication, CredentialsContainer
- 既知の直属サブクラス
Saml2AssertionAuthentication
認証された SAML 2.0
Authentication を表す AbstractAuthenticationToken の実装。Authentication は、有効な SAML アサーションデータを Spring Security 認証オブジェクトに関連付けます。完全なアサーションは、ストリング形式のオブジェクト getSaml2Response() に含まれています。
- 導入:
- 5.2
- 関連事項:
ネストされたクラスの概要
クラス AbstractAuthenticationToken から継承されたネストクラス / インターフェース
AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>コンストラクター概要
コンストラクターコンストラクター説明Saml2Authentication(ObjectSE principal, StringSE saml2Response, CollectionSE<? extends GrantedAuthority> authorities) Saml2Authentication(AuthenticatedPrincipal principal, StringSE saml2Response, CollectionSE<? extends GrantedAuthority> authorities) 提供されたパラメーターを使用してSaml2Authenticationを作成します方法の概要
修飾子と型メソッド説明プリンシパルが正しいことを証明する資格情報。認証されるプリンシパルの ID。SAML レスポンスオブジェクトを、デコードされた XML として返します。クラス AbstractAuthenticationToken から継承されたメソッド
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringインターフェース Authentication から継承されたメソッド
toBuilderインターフェース PrincipalSE から継承されたメソッド
impliesSE
コンストラクターの詳細
Saml2Authentication
public Saml2Authentication(AuthenticatedPrincipal principal, StringSE saml2Response, CollectionSE<? extends GrantedAuthority> authorities) 提供されたパラメーターを使用してSaml2Authenticationを作成します- パラメーター:
principal- ログインしたユーザーsaml2Response- ユーザーの認証に使用される SAML 2.0 レスポンスauthorities- ログインしたユーザーの権限
Saml2Authentication
public Saml2Authentication(ObjectSE principal, StringSE saml2Response, CollectionSE<? extends GrantedAuthority> authorities)
方法の詳細
getPrincipal
インターフェースからコピーされた説明:Authentication認証されるプリンシパルの ID。ユーザー名とパスワードを使用した認証リクエストの場合、これはユーザー名になります。呼び出し元は、認証リクエストのプリンシパルを設定することが期待されています。多くの場合、 AuthenticationManager 実装は、アプリケーションが使用するプリンシパルとして、より豊富な情報を含む Authentication を返します。認証プロバイダーの多くは、
UserDetailsオブジェクトをプリンシパルとして作成します。- 戻り値:
- 認証される
Principalまたは認証後の認証されたプリンシパル。
getSaml2Response
getCredentials
インターフェースからコピーされた説明:Authenticationプリンシパルが正しいことを証明する資格情報。これは通常パスワードですが、AuthenticationManagerに関連するものであれば何でもかまいません。呼び出し元は資格情報を入力する必要があります。- 戻り値:
Principalの身元を証明する資格情報