Class JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder

java.lang.Object
org.springframework.security.oauth2.client.JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
Enclosing class:
JdbcOAuth2AuthorizedClientService

public static final class JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder extends Object
A holder for an OAuth2AuthorizedClient and End-User Authentication (Resource Owner).
  • Constructor Details

    • OAuth2AuthorizedClientHolder

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

    • getAuthorizedClient

      public OAuth2AuthorizedClient getAuthorizedClient()
      Returns:
      the OAuth2AuthorizedClient
    • getPrincipal

      public org.springframework.security.core.Authentication getPrincipal()
      Returns the End-User Authentication (Resource Owner).
      Returns:
      the End-User Authentication (Resource Owner)