DeviceAuthenticationRotationStatement

class DeviceAuthenticationRotationStatement(val address: DeviceAddress, currentPublicKey: ByteArray, replacementPublicKey: ByteArray, val expectedAuthEpoch: Long, val timestamp: Instant, val nonce: RequestNonce)

The transition a routine rotation asks for: address's registered key currentPublicKey at authentication epoch expectedAuthEpoch is to be replaced by replacementPublicKey. timestamp (whole milliseconds) and nonce make each statement single-use.

Constructors

Link copied to clipboard
constructor(address: DeviceAddress, currentPublicKey: ByteArray, replacementPublicKey: ByteArray, expectedAuthEpoch: Long, timestamp: Instant, nonce: RequestNonce)

Properties

Link copied to clipboard
Link copied to clipboard

A copy of the current (authorizing) public key.

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

A copy of the replacement public key.

Link copied to clipboard

Functions

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