public class

GoogleOAuthAccessToken

extends Object
java.lang.Object
   ↳ com.google.firebase.auth.GoogleOAuthAccessToken

Class Overview

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.

Summary

Public Constructors
GoogleOAuthAccessToken(String accessToken, long expiryTime)
Create a new GoogleOAuthAccessToken instance
Public Methods
String getAccessToken()
Returns the JWT access token.
long getExpiryTime()
Returns the expiration time as a milliseconds since epoch timestamp.
[Expand]
Inherited Methods
From class java.lang.Object

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.