public class OAuth2TokenResponse extends BaseResponse
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the response code.
|
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)
public OAuth2TokenResponse()
public void validate() throws java.lang.IllegalArgumentException
BaseResponse
validate
in interface RESTMessage
validate
in class BaseResponse
java.lang.IllegalArgumentException
- if code value is negative.