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.ObjectA holder for anOAuth2AuthorizedClientand End-UserAuthentication(Resource Owner).
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal)Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2AuthorizedClientgetAuthorizedClient()Returns theOAuth2AuthorizedClient.org.springframework.security.core.AuthenticationgetPrincipal()Returns the End-UserAuthentication(Resource Owner).
-
-
-
Constructor Detail
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(OAuth2AuthorizedClient authorizedClient, org.springframework.security.core.Authentication principal)
Constructs anOAuth2AuthorizedClientHolderusing 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 org.springframework.security.core.Authentication getPrincipal()
Returns the End-UserAuthentication(Resource Owner).- Returns:
- the End-User
Authentication(Resource Owner)
-
-