public class OAuth2Token extends AuthToken implements Parcelable
| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<OAuth2Token> |
CREATOR |
static String |
TOKEN_TYPE_BEARER |
| Constructor and Description |
|---|
OAuth2Token(String tokenType,
String accessToken) |
OAuth2Token(String tokenType,
String accessToken,
long createdAt) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getAccessToken() |
String |
getTokenType() |
int |
hashCode() |
boolean |
isExpired()
Determines whether a token is known to have expired.
|
void |
writeToParcel(Parcel out,
int flags) |
public static final String TOKEN_TYPE_BEARER
public static final Parcelable.Creator<OAuth2Token> CREATOR
public OAuth2Token(String tokenType,
String accessToken)
public OAuth2Token(String tokenType,
String accessToken,
long createdAt)
public String getTokenType()
public String getAccessToken()
public boolean isExpired()
AuthTokenpublic int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel out,
int flags)
writeToParcel in interface Parcelablepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object