Class AccessToken (1.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass AccessTokenimplementsSerializableRepresents a temporary OAuth2 access token and its expiration information.
Implements
SerializableInherited Members
Constructors
AccessToken(String tokenValue, Date expirationTime)
publicAccessToken(StringtokenValue,DateexpirationTime)| Parameters | |
|---|---|
| Name | Description |
tokenValue |
String String representation of the access token. |
expirationTime |
Date Time when access token will expire. |
Methods
equals(Object obj)
publicbooleanequals(Objectobj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getExpirationTime()
publicDategetExpirationTime()Time when access token will expire.
| Returns | |
|---|---|
| Type | Description |
Date |
The expiration time as a Date. |
getTokenValue()
publicStringgetTokenValue()String representation of the access token.
| Returns | |
|---|---|
| Type | Description |
String |
The raw access token string value. |
hashCode()
publicinthashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
publicStringtoString()| Returns | |
|---|---|
| Type | Description |
String |
|