Class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
- java.lang.Object
-
- org.springframework.security.oauth2.client.R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder
-
- Enclosing class:
- R2dbcReactiveOAuth2AuthorizedClientService
public static final class R2dbcReactiveOAuth2AuthorizedClientService.OAuth2AuthorizedClientHolder extends java.lang.ObjectA holder forOAuth2AuthorizedClientdata and End-UserAuthentication(Resource Owner).
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizedClientHolder(java.lang.String clientRegistrationId, java.lang.String principalName, org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, org.springframework.security.oauth2.core.OAuth2RefreshToken refreshToken)Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.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 org.springframework.security.oauth2.core.OAuth2AccessTokengetAccessToken()java.lang.StringgetClientRegistrationId()java.lang.StringgetPrincipalName()org.springframework.security.oauth2.core.OAuth2RefreshTokengetRefreshToken()
-
-
-
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)
-
OAuth2AuthorizedClientHolder
public OAuth2AuthorizedClientHolder(java.lang.String clientRegistrationId, java.lang.String principalName, org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, org.springframework.security.oauth2.core.OAuth2RefreshToken refreshToken)Constructs anOAuth2AuthorizedClientHolderusing the provided parameters.- Parameters:
clientRegistrationId- the client registration idprincipalName- the principal name of the End-User (Resource Owner)accessToken- the access tokenrefreshToken- the refresh token
-
-
Method Detail
-
getClientRegistrationId
public java.lang.String getClientRegistrationId()
-
getPrincipalName
public java.lang.String getPrincipalName()
-
getAccessToken
public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken()
-
getRefreshToken
public org.springframework.security.oauth2.core.OAuth2RefreshToken getRefreshToken()
-
-