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, org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, org.springframework.security.oauth2.core.OAuth2RefreshToken refreshToken) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.OAuth2AccessTokenorg.springframework.security.oauth2.core.OAuth2RefreshToken
-
Constructor Details
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal) Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.- Parameters:
authorizedClient- the authorized clientprincipal- the End-UserAuthentication(Resource Owner)
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(String clientRegistrationId, String principalName, org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, org.springframework.security.oauth2.core.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
public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken() -
getRefreshToken
public org.springframework.security.oauth2.core.OAuth2RefreshToken getRefreshToken()
-