クラス 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) voidremoveAuthorizedClient(StringSE clientRegistrationId, StringSE principalName) 指定されたクライアント登録識別子とエンドユーザーのPrincipal名に関連付けられたOAuth2AuthorizedClientを削除します。voidsaveAuthorizedClient(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の名前 (リソース所有者)