クラス BearerTokenAuthentication.Builder< B は BearerTokenAuthentication.Builder を継承します。<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) このトークンを使用してください。
コンストラクターの詳細
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