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 Details

    • OAuth2AuthorizedClientHolder

      public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal)
      Constructs an OAuth2AuthorizedClientHolder using the provided parameters.
      Parameters:
      authorizedClient - the authorized client
      principal - the End-User Authentication (Resource Owner)
    • OAuth2AuthorizedClientHolder

      public OAuth2AuthorizedClientHolder(String clientRegistrationId, String principalName, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken)
      Constructs an OAuth2AuthorizedClientHolder using the provided parameters.
      Parameters:
      clientRegistrationId - the client registration id
      principalName - the principal name of the End-User (Resource Owner)
      accessToken - the access token
      refreshToken - the refresh token
  • Method Details

    • getClientRegistrationId

      public String getClientRegistrationId()
    • getPrincipalName

      public String getPrincipalName()
    • getAccessToken

      public OAuth2AccessToken getAccessToken()
    • getRefreshToken

      public OAuth2RefreshToken getRefreshToken()