Class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
java.lang.Object
org.springframework.security.oauth2.client.R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
- Enclosing class:
- R2dbcReactiveOAuth2AuthorizedClientService
public static final class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
extends Object
A holder for
OAuth2AuthorizedClient data and End-User
Authentication (Resource Owner).-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2AuthorizedClientHolder(String clientRegistrationId, String principalName, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.- Parameters:
authorizedClient- the authorized clientprincipal- the End-UserAuthentication(Resource Owner)
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(String clientRegistrationId, String principalName, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.- Parameters:
clientRegistrationId- the client registration idprincipalName- the principal name of the End-User (Resource Owner)accessToken- the access tokenrefreshToken- the refresh token
-
-
Method Details
-
getClientRegistrationId
-
getPrincipalName
-
getAccessToken
-
getRefreshToken
-