public static final class JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
extends java.lang.Object
OAuth2AuthorizedClient and End-User Authentication (Resource Owner).| Constructor and Description |
|---|
OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient,
org.springframework.security.core.Authentication principal)
Constructs an
OAuth2AuthorizedClientHolder using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizedClient |
getAuthorizedClient()
Returns the
OAuth2AuthorizedClient. |
org.springframework.security.core.Authentication |
getPrincipal()
Returns the End-User
Authentication (Resource Owner). |
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal)
OAuth2AuthorizedClientHolder using the provided parameters.authorizedClient - the authorized clientprincipal - the End-User Authentication (Resource Owner)public OAuth2AuthorizedClient getAuthorizedClient()
OAuth2AuthorizedClient.OAuth2AuthorizedClientpublic org.springframework.security.core.Authentication getPrincipal()
Authentication (Resource Owner).Authentication (Resource Owner)