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 Summary
ConstructorDescriptionOAuth2AuthorizedClientHolder
(OAuth2AuthorizedClient authorizedClient, Authentication principal) Constructs anOAuth2AuthorizedClientHolder
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns theOAuth2AuthorizedClient
.Returns the End-UserAuthentication
(Resource Owner).
-
Constructor Details
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal) Constructs anOAuth2AuthorizedClientHolder
using the provided parameters.- Parameters:
authorizedClient
- the authorized clientprincipal
- the End-UserAuthentication
(Resource Owner)
-
-
Method Details
-
getAuthorizedClient
Returns theOAuth2AuthorizedClient
.- Returns:
- the
OAuth2AuthorizedClient
-
getPrincipal
Returns the End-UserAuthentication
(Resource Owner).- Returns:
- the End-User
Authentication
(Resource Owner)
-