[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/MultiFactorInfo [Back]  [Original]

MultiFactorInfo  |  Firebase SDKs for Android Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

MultiFactorInfo

public abstract class MultiFactorInfo implements Parcelable

Known direct subclasses
PhoneMultiFactorInfo

Represents the information for a phone second factor.

TotpMultiFactorInfo

Represents the information for a TOTP (time-based one-time password) second factor.


Represents a single second factor meant for the user. See direct subclasses for type-specific information.

Summary

Constants

static final String
FACTOR_ID_KEY = "factorIdKey"

Public constructors

Public methods

abstract @Nullable String

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

abstract long

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

abstract @NonNull String

Returns the factor id of this second factor.

abstract @NonNull String

Returns the unique identifier for this second factor.

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
abstract void
writeToParcel(Parcel p, int p1)

Constants

FACTOR_ID_KEY

public static final String FACTOR_ID_KEY = "factorIdKey"

Public constructors

MultiFactorInfo

public MultiFactorInfo()

Public methods

getDisplayName

public abstract @Nullable String getDisplayName()

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

getEnrollmentTimestamp

public abstract long getEnrollmentTimestamp()

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

getFactorId

public abstract @NonNull String getFactorId()

Returns the factor id of this second factor. You can match this with a generator factor id (e.g. FACTOR_ID) to determine to which direct subclass this can be cast.

getUid

public abstract @NonNull String getUid()

Returns the unique identifier for this second factor.

Send feedback

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

Last updated 2026-05-08 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-08 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page