Pending

class Pending(val resetId: RecoveryKeyResetId, val requestedBy: DeviceAddress, val requestedAt: Instant, val eligibleAt: Instant, val recoveryKeyEpoch: Long, recoveryPublicKey: ByteArray) : RecoveryKeyResetStatus

A reset resetId requested by requestedBy at the server time requestedAt is pending. It can be completed from eligibleAt on (server time; nothing happens automatically then) and cancelled until it is completed. It replaces the recovery key recoveryPublicKey (32 bytes, public data) at recoveryKeyEpoch; that key stays authoritative, including for last-device recovery, until completion.

Constructors

Link copied to clipboard
constructor(resetId: RecoveryKeyResetId, requestedBy: DeviceAddress, requestedAt: Instant, eligibleAt: Instant, recoveryKeyEpoch: Long, recoveryPublicKey: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A copy of the recovery public key the reset replaces.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The user this reset belongs to.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

true if the server would accept a completion at now (by the server's clock).

Link copied to clipboard
open override fun toString(): String