public class OAuth2StateHolder extends Object implements OAuth2AccessToken
| Constructor and Description |
|---|
OAuth2StateHolder() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Gets the authorisation token that was received from the OAuth provider
|
Optional<Integer> |
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(Integer 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
|
void |
setScope(String scope) |
public Optional<String> getScope()
OAuth2AccessTokengetScope in interface OAuth2AccessTokenpublic void setScope(String scope)
public Optional<String> getRefreshToken()
OAuth2AccessTokengetRefreshToken in interface OAuth2AccessTokenpublic void setRefreshToken(String refreshToken)
OAuth2AccessTokensetRefreshToken in interface OAuth2AccessTokenpublic Optional<Integer> getExpiresIn()
OAuth2AccessTokengetExpiresIn in interface OAuth2AccessTokenpublic void setExpiresIn(Integer expiresIn)
OAuth2AccessTokensetExpiresIn in interface OAuth2AccessTokenpublic String getAccessToken()
OAuth2AccessTokengetAccessToken in interface OAuth2AccessTokenpublic void setAccessToken(String token)
OAuth2AccessTokensetAccessToken in interface OAuth2AccessTokenpublic Instant getTimeSet()
OAuth2AccessTokengetTimeSet in interface OAuth2AccessTokenCopyright © 2019. All rights reserved.