public class OAuthTokenResponse extends java.lang.Object implements RESTResponse
Modifier and Type | Class and Description |
---|---|
static class |
OAuthTokenResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static OAuthTokenResponse.Builder |
builder() |
java.lang.Integer |
expiresInSeconds() |
java.lang.String |
issuedTokenType() |
java.util.List<java.lang.String> |
scopes() |
java.lang.String |
token() |
java.lang.String |
tokenType() |
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public void validate()
RESTMessage
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate
in interface RESTMessage
public java.lang.String token()
public java.lang.String issuedTokenType()
public java.lang.String tokenType()
public java.lang.Integer expiresInSeconds()
public java.util.List<java.lang.String> scopes()
public static OAuthTokenResponse.Builder builder()