| java.lang.Object | |
| ↳ | com.google.firebase.auth.GoogleOAuthAccessToken |
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 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
| |||||||||||
Create a new GoogleOAuthAccessToken instance
| accessToken | JWT access token string |
|---|---|
| expiryTime | Time at which the token will expire (milliseconds since epoch) |
| IllegalArgumentException | If the token is null or empty |
|---|
Returns the JWT access token.
Returns the expiration time as a milliseconds since epoch timestamp.