クラス InMemoryOAuth2AuthorizedClientService
java.lang.ObjectSE
org.springframework.security.oauth2.client.InMemoryOAuth2AuthorizedClientService
- 実装されたすべてのインターフェース:
OAuth2AuthorizedClientService
public final class InMemoryOAuth2AuthorizedClientService
extends ObjectSE
implements OAuth2AuthorizedClientService
コンストラクターのサマリー
コンストラクターコンストラクター説明InMemoryOAuth2AuthorizedClientService
(ClientRegistrationRepository clientRegistrationRepository) 指定されたパラメーターを使用してInMemoryOAuth2AuthorizedClientService
を構築します。InMemoryOAuth2AuthorizedClientService
(ClientRegistrationRepository clientRegistrationRepository, MapSE<OAuth2AuthorizedClientId, OAuth2AuthorizedClient> authorizedClients) 指定されたパラメーターを使用してInMemoryOAuth2AuthorizedClientService
を構築します。方法の概要
修飾子と型メソッド説明<T extends OAuth2AuthorizedClient>
TloadAuthorizedClient
(StringSE clientRegistrationId, StringSE principalName) void
removeAuthorizedClient
(StringSE clientRegistrationId, StringSE principalName) 指定されたクライアント登録識別子とエンドユーザーのPrincipal
名に関連付けられたOAuth2AuthorizedClient
を削除します。void
saveAuthorizedClient
(OAuth2AuthorizedClient authorizedClient, Authentication principal) 指定されたエンドユーザーAuthentication
(リソース所有者)に関連付けてOAuth2AuthorizedClient
を保存します。
コンストラクターの詳細
InMemoryOAuth2AuthorizedClientService
public InMemoryOAuth2AuthorizedClientService(ClientRegistrationRepository clientRegistrationRepository) 指定されたパラメーターを使用してInMemoryOAuth2AuthorizedClientService
を構築します。- パラメーター:
clientRegistrationRepository
- クライアント登録のリポジトリ
InMemoryOAuth2AuthorizedClientService
public InMemoryOAuth2AuthorizedClientService(ClientRegistrationRepository clientRegistrationRepository, MapSE<OAuth2AuthorizedClientId, OAuth2AuthorizedClient> authorizedClients) 指定されたパラメーターを使用してInMemoryOAuth2AuthorizedClientService
を構築します。- パラメーター:
clientRegistrationRepository
- クライアント登録のリポジトリauthorizedClients
-OAuth2AuthorizedClientId
によってキー設定された認可クライアントの初期Map
- 導入:
- 5.2
メソッドの詳細
loadAuthorizedClient
public <T extends OAuth2AuthorizedClient> T loadAuthorizedClient(StringSE clientRegistrationId, StringSE principalName) インターフェースからコピーされた説明:OAuth2AuthorizedClientService
- 次で指定:
- インターフェース
OAuth2AuthorizedClientService
のloadAuthorizedClient
- 型パラメーター:
T
- OAuth2AuthorizedClient の型- パラメーター:
clientRegistrationId
- クライアントの登録の識別子principalName
- エンドユーザーPrincipal
の名前 (リソース所有者)- 戻り値:
OAuth2AuthorizedClient
またはnull
が利用できない場合
saveAuthorizedClient
インターフェースからコピーされた説明:OAuth2AuthorizedClientService
指定されたエンドユーザーAuthentication
(リソース所有者)に関連付けてOAuth2AuthorizedClient
を保存します。- 次で指定:
- インターフェース
OAuth2AuthorizedClientService
のsaveAuthorizedClient
- パラメーター:
authorizedClient
- 認可されたクライアントprincipal
- エンドユーザーAuthentication
(リソース所有者)
removeAuthorizedClient
インターフェースからコピーされた説明:OAuth2AuthorizedClientService
指定されたクライアント登録識別子とエンドユーザーのPrincipal
名に関連付けられたOAuth2AuthorizedClient
を削除します。- 次で指定:
- インターフェース
OAuth2AuthorizedClientService
のremoveAuthorizedClient
- パラメーター:
clientRegistrationId
- クライアントの登録の識別子principalName
- エンドユーザーPrincipal
の名前 (リソース所有者)