@Introspected
public class TokenResponse
extends java.lang.Object
Constructor and Description |
---|
TokenResponse()
Instantiates Access Token Response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken() |
java.lang.Integer |
getExpiresIn() |
java.lang.String |
getRefreshToken() |
java.lang.String |
getScope() |
java.lang.String |
getTokenType() |
void |
setAccessToken(java.lang.String accessToken) |
void |
setExpiresIn(java.lang.Integer expiresIn) |
void |
setRefreshToken(java.lang.String refreshToken) |
void |
setScope(java.lang.String scope) |
void |
setTokenType(java.lang.String tokenType) |
@Nonnull public java.lang.String getAccessToken()
public void setAccessToken(@Nonnull java.lang.String accessToken)
accessToken
- The access token issued by the authorization server.@Nonnull public java.lang.String getTokenType()
public void setTokenType(@Nonnull java.lang.String tokenType)
tokenType
- The type of the token issued.@Nullable public java.lang.Integer getExpiresIn()
public void setExpiresIn(@Nullable java.lang.Integer expiresIn)
expiresIn
- The lifetime in seconds of the access token.@Nullable public java.lang.String getScope()
public void setScope(@Nullable java.lang.String scope)
scope
- Scope of the access token.@Nullable public java.lang.String getRefreshToken()
public void setRefreshToken(@Nullable java.lang.String refreshToken)
refreshToken
- The refresh token, which can be used to obtain new access tokens using the same authorization grant.