LockdownState

sealed class LockdownState(source)

Lockdown session state for the connected device.

None means the current connection has no concrete runtime lockdown state. This is expected for pre-2.8 firmware, which does not implement the runtime lockdown handshake, and for newer builds that do not include runtime lockdown support. allowsConfigWrites summarizes only whether lockdown state withholds normal admin configuration writes; managed-device and other client policy remain separate.

Inheritors

Types

Link copied to clipboard

A manual or automatic passphrase command was admitted to the active transport and is waiting for the firmware's next lockdown status.

Link copied to clipboard
data object Disabled : LockdownState

Lockdown-capable firmware explicitly reported that lockdown is disabled.

Link copied to clipboard
data class Locked(val lockReason: String = "") : LockdownState

Device is locked or this client is not yet authorized.

Link copied to clipboard

Lock Now ACK received — client should disconnect immediately, no dialog.

Link copied to clipboard
Link copied to clipboard
data object None : LockdownState
Link copied to clipboard
data class UnlockBackoff(val backoffSeconds: Int) : LockdownState

Too many attempts — must wait backoffSeconds before retrying.

Link copied to clipboard
data object Unlocked : LockdownState
Link copied to clipboard

Wrong passphrase — retry immediately.

Properties

Link copied to clipboard

True when the current lockdown state does not withhold normal configuration writes.