LockdownCoordinatorImpl

class LockdownCoordinatorImpl(serviceRepository: ServiceRepository, commandSender: CommandSender, passphraseStore: LockdownPassphraseStore, radioInterfaceService: RadioInterfaceService, connectionManager: Lazy<MeshConnectionManager>) : LockdownCoordinator(source)

Lockdown authentication state machine. Processes LockdownStatus messages from the firmware, drives the LockdownState exposed to the UI, and manages auto-replay of cached passphrases.

Threading: All public methods are called from the BLE/radio dispatcher (single-threaded). @Volatile fields ensure visibility if a coroutine resumes on a different thread, but compound read-modify sequences assume no concurrent callers.

Constructors

Link copied to clipboard
constructor(serviceRepository: ServiceRepository, commandSender: CommandSender, passphraseStore: LockdownPassphraseStore, radioInterfaceService: RadioInterfaceService, connectionManager: Lazy<MeshConnectionManager>)

Functions

Link copied to clipboard
open override fun handleLockdownStatus(status: LockdownStatus)
Link copied to clipboard
open override fun lockNow(): Boolean
Link copied to clipboard
open override fun onConfigComplete()
Link copied to clipboard
open override fun onConnect()
Link copied to clipboard
open override fun onDisconnect()
Link copied to clipboard
open override fun submitPassphrase(passphrase: String, boots: Int, hours: Int, maxSessionSeconds: Int, disable: Boolean): Boolean