Class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
- java.lang.Object
-
- org.springframework.security.oauth2.client.R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
-
- Enclosing class:
- R2dbcReactiveOAuth2AuthorizedClientService
public static final class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder extends java.lang.Object
A holder forOAuth2AuthorizedClient
data and End-UserAuthentication
(Resource Owner).
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizedClientHolder(java.lang.String clientRegistrationId, java.lang.String principalName, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken)
Constructs anOAuth2AuthorizedClientHolder
using the provided parameters.OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal)
Constructs anOAuth2AuthorizedClientHolder
using the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2AccessToken
getAccessToken()
java.lang.String
getClientRegistrationId()
java.lang.String
getPrincipalName()
OAuth2RefreshToken
getRefreshToken()
-
-
-
Constructor Detail
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal)
Constructs anOAuth2AuthorizedClientHolder
using the provided parameters.- Parameters:
authorizedClient
- the authorized clientprincipal
- the End-UserAuthentication
(Resource Owner)
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(java.lang.String clientRegistrationId, java.lang.String principalName, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken)
Constructs anOAuth2AuthorizedClientHolder
using 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 Detail
-
getClientRegistrationId
public java.lang.String getClientRegistrationId()
-
getPrincipalName
public java.lang.String getPrincipalName()
-
getAccessToken
public OAuth2AccessToken getAccessToken()
-
getRefreshToken
public OAuth2RefreshToken getRefreshToken()
-
-