public class OAuth2TokenResponse extends BaseResponse
Constructor and Description |
---|
OAuth2TokenResponse()
Creates a new OAuth2TokenResponse.
|
OAuth2TokenResponse(java.lang.String accessToken,
java.lang.String issuedTokenType,
java.lang.String tokenType,
java.lang.Integer expiresIn,
java.lang.String scope,
java.lang.String refreshToken)
Creates a new OAuth2TokenResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the response.
|
public OAuth2TokenResponse(java.lang.String accessToken, java.lang.String issuedTokenType, java.lang.String tokenType, java.lang.Integer expiresIn, java.lang.String scope, java.lang.String refreshToken)
accessToken
- The access token.issuedTokenType
- The issued token type.tokenType
- The token type.expiresIn
- The expiration time of the token in seconds.scope
- The scope of the token.refreshToken
- The refresh token.public OAuth2TokenResponse()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
validate
in class BaseResponse
java.lang.IllegalArgumentException
- If the response is invalid, this exception is thrown.