RotationReplacement

class RotationReplacement(val expected: DeviceRegistrationState, replacementPublicKey: ByteArray, val rotationId: DeviceAuthenticationRotationId, val nonce: RequestNonce, val timestamp: Instant, val pruneBefore: Instant, val installedAt: Instant)

A verified routine rotation for DeviceRegistrationRepository.replaceForRotation: replace the key of expected with replacementPublicKey. expected is the state the signatures were verified against; the replacement only happens if it is still current. timestamp is the statement'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(expected: DeviceRegistrationState, replacementPublicKey: ByteArray, rotationId: DeviceAuthenticationRotationId, 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