クラス R2dbcReactiveOAuth2AuthorizedClientService
java.lang.ObjectSE
org.springframework.security.oauth2.client.R2dbcReactiveOAuth2AuthorizedClientService
- 実装されているすべてのインターフェース:
ReactiveOAuth2AuthorizedClientService
public class R2dbcReactiveOAuth2AuthorizedClientService
extends ObjectSE
implements ReactiveOAuth2AuthorizedClientService
OAuth2AuthorizedClient の永続性のために DatabaseClient を使用する ReactiveOAuth2AuthorizedClientService の R2DBC 実装。 注意 : この ReactiveOAuth2AuthorizedClientService は、"classpath:org/springframework/security/oauth2/client/oauth2-client-schema.sql" で説明されているテーブル定義に依存しているため、データベーススキーマで定義する必要があります。
- 導入:
- 5.5
- 関連事項:
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static final classOAuth2AuthorizedClientデータおよびエンドユーザーAuthentication(リソース所有者)のホルダー。static classR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderをStringSE およびParameterのMapにマップするデフォルトのFunction。static class現在のio.r2dbc.spi.RowをR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderにマップするデフォルトのBiFunctionSE。フィールドのサマリー
フィールド修飾子と型フィールド説明protected FunctionSE<R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder,MapSE<StringSE, org.springframework.r2dbc.core.Parameter>> protected BiFunctionSE<io.r2dbc.spi.Row,io.r2dbc.spi.RowMetadata, R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder> protected final ReactiveClientRegistrationRepositoryprotected final org.springframework.r2dbc.core.DatabaseClientコンストラクターの概要
コンストラクターコンストラクター説明R2dbcReactiveOAuth2AuthorizedClientService(org.springframework.r2dbc.core.DatabaseClient databaseClient, ReactiveClientRegistrationRepository clientRegistrationRepository) 指定されたパラメーターを使用してR2dbcReactiveOAuth2AuthorizedClientServiceを構築します。メソッドのサマリー
修飾子と型メソッド説明<T extends OAuth2AuthorizedClient>
reactor.core.publisher.Mono<T>loadAuthorizedClient(StringSE clientRegistrationId, StringSE principalName) reactor.core.publisher.Mono<VoidSE>removeAuthorizedClient(StringSE clientRegistrationId, StringSE principalName) 指定されたクライアント登録識別子とエンドユーザーのPrincipal名に関連付けられたOAuth2AuthorizedClientを削除します。reactor.core.publisher.Mono<VoidSE>saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal) 指定されたエンドユーザーAuthentication(リソース所有者)に関連付けてOAuth2AuthorizedClientを保存します。final voidsetAuthorizedClientParametersMapper(FunctionSE<R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder, MapSE<StringSE, org.springframework.r2dbc.core.Parameter>> authorizedClientParametersMapper) R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderをStringSE およびParameterのMapにマッピングするために使用されるFunctionを設定します。final voidsetAuthorizedClientRowMapper(BiFunctionSE<io.r2dbc.spi.Row, io.r2dbc.spi.RowMetadata, R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder> authorizedClientRowMapper) 現在のio.r2dbc.spi.RowをR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderにマッピングするために使用されるBiFunctionSE を設定します。
フィールドの詳細
databaseClient
protected final org.springframework.r2dbc.core.DatabaseClient databaseClientclientRegistrationRepository
authorizedClientParametersMapper
protected FunctionSE<R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder,MapSE<StringSE, authorizedClientParametersMapperorg.springframework.r2dbc.core.Parameter>> authorizedClientRowMapper
protected BiFunctionSE<io.r2dbc.spi.Row,io.r2dbc.spi.RowMetadata, authorizedClientRowMapperR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder>
コンストラクターの詳細
R2dbcReactiveOAuth2AuthorizedClientService
public R2dbcReactiveOAuth2AuthorizedClientService(org.springframework.r2dbc.core.DatabaseClient databaseClient, ReactiveClientRegistrationRepository clientRegistrationRepository) 指定されたパラメーターを使用してR2dbcReactiveOAuth2AuthorizedClientServiceを構築します。- パラメーター:
databaseClient- データベースクライアントclientRegistrationRepository- クライアント登録のリポジトリ
メソッドの詳細
loadAuthorizedClient
public <T extends OAuth2AuthorizedClient> reactor.core.publisher.Mono<T> loadAuthorizedClient(StringSE clientRegistrationId, StringSE principalName) インターフェースからコピーされた説明:ReactiveOAuth2AuthorizedClientService- 次で指定:
- インターフェース
ReactiveOAuth2AuthorizedClientServiceのloadAuthorizedClient - 型パラメーター:
T- OAuth2AuthorizedClient の型- パラメーター:
clientRegistrationId- クライアントの登録の識別子principalName- エンドユーザーPrincipalの名前 (リソース所有者)- 戻り値:
OAuth2AuthorizedClientまたはnullが利用できない場合
saveAuthorizedClient
public reactor.core.publisher.Mono<VoidSE> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal) インターフェースからコピーされた説明:ReactiveOAuth2AuthorizedClientService指定されたエンドユーザーAuthentication(リソース所有者)に関連付けてOAuth2AuthorizedClientを保存します。- 次で指定:
- インターフェース
ReactiveOAuth2AuthorizedClientServiceのsaveAuthorizedClient - パラメーター:
authorizedClient- 認可されたクライアントprincipal- エンドユーザーAuthentication(リソース所有者)
removeAuthorizedClient
public reactor.core.publisher.Mono<VoidSE> removeAuthorizedClient(StringSE clientRegistrationId, StringSE principalName) インターフェースからコピーされた説明:ReactiveOAuth2AuthorizedClientService指定されたクライアント登録識別子とエンドユーザーのPrincipal名に関連付けられたOAuth2AuthorizedClientを削除します。- 次で指定:
- インターフェース
ReactiveOAuth2AuthorizedClientServiceのremoveAuthorizedClient - パラメーター:
clientRegistrationId- クライアントの登録の識別子principalName- エンドユーザーPrincipalの名前 (リソース所有者)
setAuthorizedClientParametersMapper
public final void setAuthorizedClientParametersMapper(FunctionSE<R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder, MapSE<StringSE, org.springframework.r2dbc.core.Parameter>> authorizedClientParametersMapper) R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderをStringSE およびParameterのMapにマッピングするために使用されるFunctionを設定します。デフォルトはR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientParametersMapperです。- パラメーター:
authorizedClientParametersMapper-R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderをStringSE およびParameterのMapにマッピングするために使用されるFunction
setAuthorizedClientRowMapper
public final void setAuthorizedClientRowMapper(BiFunctionSE<io.r2dbc.spi.Row, io.r2dbc.spi.RowMetadata, R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder> authorizedClientRowMapper) 現在のio.r2dbc.spi.RowをR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderにマッピングするために使用されるBiFunctionSE を設定します。デフォルトはR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientRowMapperです。- パラメーター:
authorizedClientRowMapper- 現在のio.r2dbc.spi.RowをR2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolderにマッピングするために使用されるBiFunctionSE