TotpMultiFactorInfo

public classTotpMultiFactorInfo extendsMultiFactorInfo


Represents the information for a TOTP (time-based one-time password) 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 TotpMultiFactorInfo.

@NonNullString

Returns the unique identifier for this second factor.

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

Public fields

displayName

public final @NullableString displayName

enrollmentTimestamp

public final long enrollmentTimestamp

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

getUid

public @NonNullString getUid()

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.