SessionPasskey

data class SessionPasskey(val bytes: ByteString, val expiresAtEpochMs: Long)(source)

Persisted session passkey.

Wraps the raw passkey bytes returned by AdminMessage.session_passkey together with an absolute expiry timestamp (epoch milliseconds, UTC). Implementations of DeviceStorage persist this so the engine can restore the passkey on the next connect, removing the need to re-run get_owner_request for every session.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(bytes: ByteString, expiresAtEpochMs: Long)

Properties

Link copied to clipboard
val bytes: ByteString

raw session passkey bytes

Link copied to clipboard

absolute expiry time in epoch milliseconds (UTC); a DeviceStorage.loadSessionPasskey implementation must return null once the wall-clock has advanced past this value.