Class AccessToken (1.4.0)

public class AccessToken implements Serializable

Represents a temporary OAuth2 access token and its expiration information.

Inheritance

Object > AccessToken

Implements

Serializable

Constructors

AccessToken(String tokenValue, Date expirationTime)

public AccessToken(String tokenValue, Date expirationTime)
Parameters
Name Description
tokenValue String

String representation of the access token.

expirationTime Date

Time when access token will expire.

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getExpirationTime()

public Date getExpirationTime()

Time when access token will expire.

Returns
Type Description
Date

The expiration time as a Date.

getTokenValue()

public String getTokenValue()

String representation of the access token.

Returns
Type Description
String

The raw access token string value.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides