@Introspected
public class TokenResponse
extends java.lang.Object
Constructor and Description |
---|
TokenResponse()
Instantiates Access Token Response.
|
TokenResponse(java.lang.String accessToken,
java.lang.String tokenType)
Instantiates Access Token Response.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAccessToken() |
java.lang.Integer |
getExpiresIn() |
java.util.Optional<java.util.Date> |
getExpiresInDate() |
java.lang.String |
getRefreshToken() |
java.lang.String |
getScope() |
java.lang.String |
getTokenType() |
int |
hashCode() |
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) |
public TokenResponse()
public TokenResponse(@NonNull java.lang.String accessToken, @NonNull java.lang.String tokenType)
accessToken
- Access token issued by the authorization server.tokenType
- The type of the token issued.@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.@NonNull public java.util.Optional<java.util.Date> getExpiresInDate()
expiresIn
received by the authorization server.@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.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object