RecoveryReplacement

class RecoveryReplacement(val expectedTarget: DeviceRegistrationState, val expectedAuthorizer: DeviceRegistrationState, replacementPublicKey: ByteArray, val recoveryId: DeviceRecoveryId, val nonce: RequestNonce, val timestamp: Instant, val pruneBefore: Instant, val installedAt: Instant)

A verified recovery for DeviceRegistrationRepository.replaceForRecovery: replace expectedTarget's key with replacementPublicKey, authorized by expectedAuthorizer. Both expected states are what the signatures were verified against; the replacement only happens if they are still current. timestamp is the request's (client-supplied) time, used for the nonce; installedAt is the server time stored as the new key's installation time.

Constructors

Link copied to clipboard
constructor(expectedTarget: DeviceRegistrationState, expectedAuthorizer: DeviceRegistrationState, replacementPublicKey: ByteArray, recoveryId: DeviceRecoveryId, nonce: RequestNonce, timestamp: Instant, pruneBefore: Instant, installedAt: Instant)

Properties

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

A copy of the replacement key.

Link copied to clipboard
Link copied to clipboard

Functions

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