MultiFactorInfo

abstract classMultiFactorInfo :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

constString!
FACTOR_ID_KEY = "factorIdKey"

Public constructors

Public functions

abstractString?

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

abstractLong

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

abstractString

Returns the factor id of this second factor.

abstractString

Returns the unique identifier for this second factor.

Inherited functions

Fromandroid.os.Parcelable
abstractInt
abstractUnit
writeToParcel(p: Parcel!, p1: Int)

Constants

FACTOR_ID_KEY

const val FACTOR_ID_KEY = "factorIdKey": String!

Public constructors

MultiFactorInfo

MultiFactorInfo()

Public functions

getDisplayName

abstract fun getDisplayName(): String?

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

getEnrollmentTimestamp

abstract fun getEnrollmentTimestamp(): Long

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

getFactorId

abstract fun getFactorId(): String

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

abstract fun getUid(): String

Returns the unique identifier for this second factor.

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.