クラス BearerTokenAuthentication.Builder <B extends BearerTokenAuthentication.Builder<B>></b>
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>
org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<OAuth2AccessToken,B>
org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication.Builder<B>
- 実装されているすべてのインターフェース:
Authentication.Builder<B>
- 含まれているクラス:
- BearerTokenAuthentication
public static class BearerTokenAuthentication.Builder<B extends BearerTokenAuthentication.Builder<B>>
extends AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<OAuth2AccessToken,B>
コンクリート
Authentication 型を保存するビルダー - 導入:
- 7.0
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明build()Authenticationインスタンスを構築するcredentials(@Nullable ObjectSE token) token(OAuth2AccessToken)のシノニムこの原則を使用してください。token(OAuth2AccessToken token) このトークンを使用してください。クラス org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder から継承されたメソッド
authenticated, authorities, details
コンストラクターの詳細
Builder
メソッドの詳細
principal
このプリンシパルを使用します。型はOAuth2AuthenticatedPrincipalである必要があります- 次で指定:
- インターフェース
Authentication.Builder<B extends BearerTokenAuthentication.Builder<B>>のprincipal - オーバーライド:
- クラス
AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<OAuth2AccessToken,のB extends BearerTokenAuthentication.Builder<B>> principal - パラメーター:
principal- 使用するプリンシパル- 戻り値:
- さらなる構成のための
BearerTokenAuthentication.Builder - 関連事項:
credentials
token(OAuth2AccessToken)のシノニム- 次で指定:
- インターフェース
Authentication.Builder<B extends BearerTokenAuthentication.Builder<B>>のcredentials - オーバーライド:
- クラス
AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<OAuth2AccessToken,のB extends BearerTokenAuthentication.Builder<B>> credentials - パラメーター:
token- 使用するトークン- 戻り値:
- さらなる構成のための
BearerTokenAuthentication.Builder - 関連事項:
token
このトークンを使用します。OAuth2AccessToken.getTokenType()をOAuth2AccessToken.TokenType.BEARERとして持つ必要があります。- オーバーライド:
- クラス
AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<OAuth2AccessToken,のB extends BearerTokenAuthentication.Builder<B>> token - パラメーター:
token- 使用するトークン- 戻り値:
- さらなる構成のための
BearerTokenAuthentication.Builder
build
Authenticationインスタンスを構築する- 戻り値:
Authenticationインスタンス