PhoneMultiFactorInfo

public class PhoneMultiFactorInfo extends MultiFactorInfo


Represents the information for a phone second factor.

Summary

Public fields

final @Nullable String
final long
final String
final String

Public methods

@Nullable String

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).

@NonNull String

Returns FACTOR_ID, identifying this as a .

@NonNull String

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

@NonNull String

Returns the unique identifier for this second factor.

void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From com.google.firebase.auth.MultiFactorInfo
static final String
FACTOR_ID_KEY = "factorIdKey"
From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int

Constants

CREATOR

public static final Parcelable.Creator<PhoneMultiFactorInfoCREATOR

Public fields

displayName

public final @Nullable String displayName

enrollmentTimestamp

public final long enrollmentTimestamp

phoneNumber

public final String phoneNumber

uid

public final String uid

Public methods

getDisplayName

public @Nullable String 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 @NonNull String getFactorId()

Returns FACTOR_ID, identifying this as a .

getPhoneNumber

public @NonNull String getPhoneNumber()

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

getUid

public @NonNull String getUid()

Returns the unique identifier for this second factor.

writeToParcel

public void writeToParcel(Parcel dest, int flags)