LockdownCoordinatorImpl

class LockdownCoordinatorImpl(serviceRepository: ServiceRepository, 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.

The UI and the session receiver serialize commands and replies so a fast firmware reply cannot arrive before the command's pending state is installed.

Constructors

Link copied to clipboard
constructor(serviceRepository: ServiceRepository, 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 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