VerifiedPhoneNumberTokenResult

public final class VerifiedPhoneNumberTokenResult implements Parcelable


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

Summary

Public constructors

Public methods

final int
final @NonNull Map<@NonNull String, @NonNull Object>

Returns the entire payload claims of the token.

final long

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

final long

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

final @NonNull String

Returns the nonce of the token.

final @NonNull String

Returns the phone number associated with the token.

final @NonNull String

Returns the Firebase Phone Number Verification (FPNV) token.

void
writeToParcel(@NonNull Parcel dest, int flags)

Writes the object's data to a Parcel.

Inherited methods

From android.os.Parcelable
int

Public constructors

VerifiedPhoneNumberTokenResult

public VerifiedPhoneNumberTokenResult(@NonNull String token)

Public methods

describeContents

public final int describeContents()

getClaims

public final @NonNull Map<@NonNull String, @NonNull ObjectgetClaims()

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

Returns
@NonNull Map<@NonNull String, @NonNull Object>

The claims as a Map of String to Any.

getExpirationTimestamp

public final long getExpirationTimestamp()

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

Returns
long

The expiration timestamp as a Long.

getIssuedAtTimestamp

public final long getIssuedAtTimestamp()

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

Returns
long

The issued-at timestamp as a Long.

getNonce

public final @NonNull String getNonce()

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
@NonNull String

The nonce as a String.

getPhoneNumber

public final @NonNull String getPhoneNumber()

Returns the phone number associated with the token.

Returns
@NonNull String

The phone number as a String.

getToken

public final @NonNull String getToken()

Returns the Firebase Phone Number Verification (FPNV) token.

Returns
@NonNull String

The FPNV token as a String.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)

Writes the object's data to a Parcel.

Parameters
@NonNull Parcel dest

The Parcel in which the object should be written.

int flags

Additional flags about how the object should be written.