クラス OAuth2AuthenticationToken.Builder <B extends OAuth2AuthenticationToken.Builder<B>></b>
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>
org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken.Builder<B>
- 実装されているすべてのインターフェース:
Authentication.Builder<B>
- 含まれているクラス:
- OAuth2AuthenticationToken
public static class OAuth2AuthenticationToken.Builder<B extends OAuth2AuthenticationToken.Builder<B>>
extends AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>
OAuth2AuthenticationToken インスタンスのビルダー - 導入:
- 7.0
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明authorizedClientRegistrationId(StringSE authorizedClientRegistrationId) このClientRegistrationregistrationIdを使用してください。build()Authenticationインスタンスを構築するこの原則を使用してください。クラス org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder から継承されたメソッド
authenticated, authorities, detailsクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.security.core.Authentication.Builder から継承されたメソッド
credentials
コンストラクターの詳細
Builder
メソッドの詳細
principal
インターフェースからコピーされた説明:Authentication.Builderこの原則を使用してください。多くの場合、プリンシパルは強く型付けされていることに注意してください。実装では型チェックを行うことも選択できますが、必ずしもあらゆるオブジェクトをプリンシパルとして許可するとは限りません。
実装では、この
principalを既存のAuthenticationインスタンスの任意のプリンシパルと組み合わせて使用することもできます。- パラメーター:
principal- 使用するプリンシパル- 戻り値:
- 追加構成のための
Authentication.Builder - 関連事項:
authorizedClientRegistrationId
このClientRegistrationregistrationIdを使用してください。- パラメーター:
authorizedClientRegistrationId- 使用する登録 ID- 戻り値:
- さらなる構成のための
OAuth2AuthenticationToken.Builder - 関連事項:
build
インターフェースからコピーされた説明:Authentication.BuilderAuthenticationインスタンスを構築する- 戻り値:
Authenticationインスタンス