public class OAuth2RefreshTokenGrantRequest extends AbstractOAuth2AuthorizationGrantRequest
refresh token
credential granted to the client
.AbstractOAuth2AuthorizationGrantRequest
,
OAuth2RefreshToken
,
Section 6
Refreshing an Access TokenConstructor and Description |
---|
OAuth2RefreshTokenGrantRequest(ClientRegistration clientRegistration,
OAuth2AccessToken accessToken,
OAuth2RefreshToken refreshToken)
Constructs an
OAuth2RefreshTokenGrantRequest using the provided parameters. |
OAuth2RefreshTokenGrantRequest(ClientRegistration clientRegistration,
OAuth2AccessToken accessToken,
OAuth2RefreshToken refreshToken,
java.util.Set<java.lang.String> scopes)
Constructs an
OAuth2RefreshTokenGrantRequest using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
OAuth2AccessToken |
getAccessToken()
Returns the
access token credential granted. |
ClientRegistration |
getClientRegistration()
Returns the authorized client's
registration . |
OAuth2RefreshToken |
getRefreshToken()
Returns the
refresh token credential granted. |
java.util.Set<java.lang.String> |
getScopes()
Returns the scope(s) to request.
|
getGrantType
public OAuth2RefreshTokenGrantRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken)
OAuth2RefreshTokenGrantRequest
using the provided parameters.clientRegistration
- the authorized client's registrationaccessToken
- the access token credential grantedrefreshToken
- the refresh token credential grantedpublic OAuth2RefreshTokenGrantRequest(ClientRegistration clientRegistration, OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToken, java.util.Set<java.lang.String> scopes)
OAuth2RefreshTokenGrantRequest
using the provided parameters.clientRegistration
- the authorized client's registrationaccessToken
- the access token credential grantedrefreshToken
- the refresh token credential grantedscopes
- the scopes to requestpublic ClientRegistration getClientRegistration()
registration
.ClientRegistration
public OAuth2AccessToken getAccessToken()
access token
credential granted.OAuth2AccessToken
public OAuth2RefreshToken getRefreshToken()
refresh token
credential granted.OAuth2RefreshToken
public java.util.Set<java.lang.String> getScopes()