Class OAuth2AccessTokenResponse
java.lang.Object
org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse
A representation of an OAuth 2.0 Access Token Response.
- Since:
- 5.0
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns theAccess Token
.Returns the additional parameters returned in the response.Returns theRefresh Token
.withResponse
(OAuth2AccessTokenResponse response) Returns a newOAuth2AccessTokenResponse.Builder
, initialized with the provided response.Returns a newOAuth2AccessTokenResponse.Builder
, initialized with the provided access token value.
-
Method Details
-
getAccessToken
Returns theAccess Token
.- Returns:
- the
OAuth2AccessToken
-
getRefreshToken
Returns theRefresh Token
.- Returns:
- the
OAuth2RefreshToken
- Since:
- 5.1
-
getAdditionalParameters
Returns the additional parameters returned in the response.- Returns:
- a
Map
of the additional parameters returned in the response, may be empty.
-
withToken
Returns a newOAuth2AccessTokenResponse.Builder
, initialized with the provided access token value.- Parameters:
tokenValue
- the value of the access token- Returns:
- the
OAuth2AccessTokenResponse.Builder
-
withResponse
Returns a newOAuth2AccessTokenResponse.Builder
, initialized with the provided response.- Parameters:
response
- the response to initialize the builder with- Returns:
- the
OAuth2AccessTokenResponse.Builder
-