public class AccessToken
extends java.lang.Object
| Constructor and Description |
|---|
AccessToken(long expiresIn,
java.util.Collection<Scope> scopes,
java.lang.String token,
java.lang.String refreshToken,
java.lang.String tokenType) |
AccessToken(long expiresIn,
java.lang.String scope,
java.lang.String token,
java.lang.String refreshToken,
java.lang.String tokenType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getExpiresIn()
Gets the time the
AccessToken expires at. |
java.lang.String |
getRefreshToken()
Gets the refresh token used to update the
access_token. |
java.util.Collection<Scope> |
getScopes()
Gets the
Scopes the access token works for. |
java.lang.String |
getToken()
Gets the raw token used to make API requests
|
java.lang.String |
getTokenType()
Gets the type associated with
access_token. |
int |
hashCode() |
public AccessToken(long expiresIn,
java.util.Collection<Scope> scopes,
java.lang.String token,
java.lang.String refreshToken,
java.lang.String tokenType)
expiresIn - the time that the access token expires.scopes - the Scopes this access token works for.token - the Uber API access token.refreshToken - the Uber API refresh token.tokenType - the Uber API token type.public AccessToken(long expiresIn,
java.lang.String scope,
java.lang.String token,
java.lang.String refreshToken,
java.lang.String tokenType)
expiresIn - the time that the access token expires.scope - space delimited list of Scopes.token - the Uber API access token.refreshToken - the Uber API refresh token.tokenType - the Uber API token type.public long getExpiresIn()
AccessToken expires at.public java.util.Collection<Scope> getScopes()
Scopes the access token works for.public java.lang.String getToken()
public java.lang.String getRefreshToken()
access_token.public java.lang.String getTokenType()
access_token.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object