PhoneMultiFactorInfo

public classPhoneMultiFactorInfo extendsMultiFactorInfo


Represents the information for a phone second factor.

Summary

Public methods

@NullableString

Returns the user-given display name for this second factor.

long

Returns the enrollment timestamp for this second factor in seconds since epoch (UTC midnight on January 1, 1970).

@NonNullString

ReturnsFACTOR_ID, identifying this as a PhoneMultiFactorInfo.

@NonNullString

Returns the phone number associated with this second factor verification method.

@NonNullString

Returns the unique identifier for this second factor.

void
writeToParcel(Parcel dest, int flags)

Inherited Constants

Fromcom.google.firebase.auth.MultiFactorInfo
static finalString
FACTOR_ID_KEY = "factorIdKey"
Fromandroid.os.Parcelable
static final int
static final int

Inherited methods

Fromandroid.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<PhoneMultiFactorInfoCREATOR

Public fields

displayName

public final @NullableString displayName

enrollmentTimestamp

public final long enrollmentTimestamp

phoneNumber

public final String phoneNumber

uid

public final String uid

Public methods

getDisplayName

public @NullableString getDisplayName()

Returns the user-given display name for this second factor.

getEnrollmentTimestamp

public long getEnrollmentTimestamp()

Returns the enrollment timestamp for this second factor in seconds since epoch (UTC midnight on January 1, 1970).

getFactorId

public @NonNullString getFactorId()

ReturnsFACTOR_ID, identifying this as a PhoneMultiFactorInfo.

getPhoneNumber

public @NonNullString getPhoneNumber()

Returns the phone number associated with this second factor verification method.

getUid

public @NonNullString getUid()

Returns the unique identifier for this second factor.

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.