public class Token extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Token.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
Token(String accessToken,
String tokenType,
long expiresIn) |
| Modifier and Type | Method and Description |
|---|---|
static Token.Builder |
builder() |
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token obtained from the OAuth server.
|
long |
getExpiresIn()
In how many seconds this token expires.
|
String |
getTokenType()
The type of the token, e.g., "Bearer"
|
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
Token.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"access_token","token_type","expires_in"}) protected Token(String accessToken, String tokenType, long expiresIn)
public static Token.Builder builder()
public Token.Builder toBuilder()
public String getAccessToken()
public String getTokenType()
public long getExpiresIn()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.