VerifiedPhoneNumberTokenResult

class VerifiedPhoneNumberTokenResult : Parcelable


Result object that contains a Firebase Phone Number Verification (FPNV) Token.

Summary

Public constructors

Public functions

final Int
Map<StringAny>

Returns the entire payload claims of the token.

Long

Returns the expiration timestamp of the token in seconds since the epoch.

Long

Returns the issued-at timestamp of the token in seconds since the epoch.

String

Returns the nonce of the token.

String

Returns the phone number associated with the token.

String

Returns the Firebase Phone Number Verification (FPNV) token.

open Unit
writeToParcel(dest: Parcel, flags: Int)

Writes the object's data to a Parcel.

Inherited functions

From android.os.Parcelable
open Int

Public constructors

VerifiedPhoneNumberTokenResult

VerifiedPhoneNumberTokenResult(token: String)

Public functions

describeContents

final fun describeContents(): Int

getClaims

fun getClaims(): Map<StringAny>

Returns the entire payload claims of the token. Returns an empty map if no claims are present.

Returns
Map<StringAny>

The claims as a Map of String to Any.

getExpirationTimestamp

fun getExpirationTimestamp(): Long

Returns the expiration timestamp of the token in seconds since the epoch.

Returns
Long

The expiration timestamp as a Long.

getIssuedAtTimestamp

fun getIssuedAtTimestamp(): Long

Returns the issued-at timestamp of the token in seconds since the epoch.

Returns
Long

The issued-at timestamp as a Long.

getNonce

fun getNonce(): String

Returns the nonce of the token.

If a nonce was provided during the FirebasePhoneNumberVerification.getDigitalCredentialPayload invocation, then that nonce will be returned. Otherwise, the nonce will be a random UUID.

Returns
String

The nonce as a String.

getPhoneNumber

fun getPhoneNumber(): String

Returns the phone number associated with the token.

Returns
String

The phone number as a String.

getToken

fun getToken(): String

Returns the Firebase Phone Number Verification (FPNV) token.

Returns
String

The FPNV token as a String.

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Writes the object's data to a Parcel.

Parameters
dest: Parcel

The Parcel in which the object should be written.

flags: Int

Additional flags about how the object should be written.