FirebasePhoneNumberVerificationToken

public class FirebasePhoneNumberVerificationToken extends Object

Represents a verified Firebase Phone Number Verification token.

Public Constructor Summary

FirebasePhoneNumberVerificationToken(Map<String, Object> claims)
Create an instance of FirebasePhoneNumberVerificationToken from a map of JWT claims.

Public Method Summary

List<String>
getAudience()
Returns the audience for which this token is intended.
Map<String, Object>
getClaims()
Returns the entire map of claims.
long
getExpirationTime()
Returns the expiration time in seconds since the Unix epoch.
long
getIssuedAt()
Returns the issued-at time in seconds since the Unix epoch.
String
getIssuer()
Returns the issuer identifier for the issuer of the response.
String
getPhoneNumber()
Returns the phone number of the user.

Inherited Method Summary

Public Constructors

public FirebasePhoneNumberVerificationToken (Map<String, Object> claims)

Create an instance of FirebasePhoneNumberVerificationToken from a map of JWT claims.

Parameters
claims A map of JWT claims.

Public Methods

public List<String> getAudience ()

Returns the audience for which this token is intended.

public Map<String, Object> getClaims ()

Returns the entire map of claims.

public long getExpirationTime ()

Returns the expiration time in seconds since the Unix epoch.

public long getIssuedAt ()

Returns the issued-at time in seconds since the Unix epoch.

public String getIssuer ()

Returns the issuer identifier for the issuer of the response.

public String getPhoneNumber ()

Returns the phone number of the user. This corresponds to the 'sub' claim in the JWT.