Class JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
- java.lang.Object
-
- org.springframework.security.oauth2.client.JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
-
- Enclosing class:
- JdbcOAuth2AuthorizedClientService
public static final class JdbcOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder extends java.lang.Object
A holder for anOAuth2AuthorizedClient
and End-UserAuthentication
(Resource Owner).
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal)
Constructs anOAuth2AuthorizedClientHolder
using the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2AuthorizedClient
getAuthorizedClient()
Returns theOAuth2AuthorizedClient
.Authentication
getPrincipal()
Returns the End-UserAuthentication
(Resource Owner).
-
-
-
Constructor Detail
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, Authentication principal)
Constructs anOAuth2AuthorizedClientHolder
using the provided parameters.- Parameters:
authorizedClient
- the authorized clientprincipal
- the End-UserAuthentication
(Resource Owner)
-
-
Method Detail
-
getAuthorizedClient
public OAuth2AuthorizedClient getAuthorizedClient()
Returns theOAuth2AuthorizedClient
.- Returns:
- the
OAuth2AuthorizedClient
-
getPrincipal
public Authentication getPrincipal()
Returns the End-UserAuthentication
(Resource Owner).- Returns:
- the End-User
Authentication
(Resource Owner)
-
-