Class OAuth2RefreshTokenGrantRequest
java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
org.springframework.security.oauth2.client.endpoint.OAuth2RefreshTokenGrantRequest
An OAuth 2.0 Refresh Token Grant request that holds the
refresh token
credential granted to the client
.-
Constructor Summary
ConstructorDescriptionOAuth2RefreshTokenGrantRequest
(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken) Constructs anOAuth2RefreshTokenGrantRequest
using the provided parameters.OAuth2RefreshTokenGrantRequest
(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken, Set<String> scopes) Constructs anOAuth2RefreshTokenGrantRequest
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns theaccess token
credential granted.Returns therefresh token
credential granted.Returns the scope(s) to request.Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
getClientRegistration, getGrantType
-
Constructor Details
-
OAuth2RefreshTokenGrantRequest
public OAuth2RefreshTokenGrantRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken) Constructs anOAuth2RefreshTokenGrantRequest
using the provided parameters.- Parameters:
clientRegistration
- the authorized client's registrationaccessToken
- the access token credential grantedrefreshToken
- the refresh token credential granted
-
OAuth2RefreshTokenGrantRequest
public OAuth2RefreshTokenGrantRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken, Set<String> scopes) Constructs anOAuth2RefreshTokenGrantRequest
using the provided parameters.- Parameters:
clientRegistration
- the authorized client's registrationaccessToken
- the access token credential grantedrefreshToken
- the refresh token credential grantedscopes
- the scopes to request
-
-
Method Details
-
getAccessToken
Returns theaccess token
credential granted.- Returns:
- the
OAuth2AccessToken
-
getRefreshToken
Returns therefresh token
credential granted.- Returns:
- the
OAuth2RefreshToken
-
getScopes
Returns the scope(s) to request.- Returns:
- the scope(s) to request
-