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