GoogleOAuthAccessToken

public class GoogleOAuthAccessToken extends Object

This class was deprecated.
Use GoogleCredentials and associated classes.

Represents an OAuth access token, which can be used to access Firebase and other qualified Google APIs. Encapsulates both the token string, and its expiration time.

Public Constructor Summary

GoogleOAuthAccessToken(String accessToken, long expiryTime)
Create a new GoogleOAuthAccessToken instance

Public Method Summary

String
getAccessToken()
Returns the JWT access token.
long
getExpiryTime()
Returns the expiration time as a milliseconds since epoch timestamp.

Inherited Method Summary

Public Constructors

public GoogleOAuthAccessToken (String accessToken, long expiryTime)

Create a new GoogleOAuthAccessToken instance

Parameters
accessToken JWT access token string
expiryTime Time at which the token will expire (milliseconds since epoch)
Throws
IllegalArgumentException If the token is null or empty

Public Methods

public String getAccessToken ()

Returns the JWT access token.

public long getExpiryTime ()

Returns the expiration time as a milliseconds since epoch timestamp.