public interface OAuth2AccessToken extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Gets the authorisation token that was received from the OAuth provider
|
Optional<Long> |
getExpiresIn()
Return the time that the access token is granted for, if it is set to
expire
|
Optional<String> |
getRefreshToken()
Returns the refresh token that can be used to get a new access token
|
Optional<String> |
getScope()
Gets the scope that the user has been given permission for your application to use with the OAuth provider
|
Instant |
getTimeSet()
Gets the time that the access token was last set
|
void |
setAccessToken(String token)
Sets the access token that is to be used to verify the user with the OAuth provider once they are logged in.
|
void |
setExpiresIn(Long expiresIn)
Sets the time that the access token is granted for
|
void |
setRefreshToken(String refreshToken)
Sets the refresh token that can be used to renew the access token
|
String getAccessToken()
void setAccessToken(String token)
token
- Optional<String> getScope()
Optional<String> getRefreshToken()
void setRefreshToken(String refreshToken)
refreshToken
- Optional<Long> getExpiresIn()
void setExpiresIn(Long expiresIn)
expiresIn
- Instant getTimeSet()
Copyright © 2020. All rights reserved.