TOTP

public final class TOTP

The entity carrying information of the computed TOTP code.

Constructors

Link copied to clipboard
public TOTP TOTP(String passcode, Integer validityPeriodDurationSeconds, Date validityPeriodStart)

Properties

Link copied to clipboard
private final String passcode

A 6-digit TOTP number.

Link copied to clipboard
private final Long remainingSeconds

A dynamic value (depending on a moment of call) that returns how many seconds left until this TOTP becomes invalid.

Link copied to clipboard

Represents a duration in seconds of the validity period. Expect TOTP to be valid until validityPeriodStart + validityPeriodDurationSeconds.

Link copied to clipboard
private final Date validityPeriodStart

Represents a point in time when this TOTP starts to be valid.

Functions

Link copied to clipboard
public final String getPasscode()

A 6-digit TOTP number.

Link copied to clipboard
public final Long getRemainingSeconds()
Link copied to clipboard

Represents a duration in seconds of the validity period. Expect TOTP to be valid until validityPeriodStart + validityPeriodDurationSeconds.

Link copied to clipboard

Represents a point in time when this TOTP starts to be valid.