RecoveryKeyResetCompletionTransition

class RecoveryKeyResetCompletionTransition(val userId: UserId, val resetId: RecoveryKeyResetId, expectedPublicKey: ByteArray, val expectedEpoch: Long, val requestedAt: Instant, val eligibleAt: Instant, newPublicKey: ByteArray, val expectedCompleter: DeviceRegistrationState, val completionId: RecoveryKeyResetCompletionId, val now: Instant)

A verified reset completion for LastDeviceRecoveryRepository.completeRecoveryKeyReset: the pending reset resetId of userId's key expectedPublicKey at expectedEpoch (requested at requestedAt, eligible from eligibleAt) is completed with newPublicKey by expectedCompleter (the registration the ServerAuth request was verified with). now is the server time, compared with the eligibility time and stored as installation time.

Constructors

Link copied to clipboard
constructor(userId: UserId, resetId: RecoveryKeyResetId, expectedPublicKey: ByteArray, expectedEpoch: Long, requestedAt: Instant, eligibleAt: Instant, newPublicKey: ByteArray, expectedCompleter: DeviceRegistrationState, completionId: RecoveryKeyResetCompletionId, now: Instant)

Properties

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

A copy of the key the reset replaces.

Link copied to clipboard

A copy of the new key.

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

Functions

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