Manages password and passphrase secrets for devices.

Constructors

Methods

  • Parameters

    • deviceId: string

    Returns Promise<void>

  • Retrieves a stored private key passphrase or prompts the user for one.

    Parameters

    • device: EmbeddedDevice

      The device to authenticate.

    • Optionaloptions: { onPrompt?: () => void }

      Optional prompt hooks for UI updates.

    Returns Promise<undefined | string>

    The passphrase, if available.

  • Retrieves a stored password or prompts the user for one.

    Parameters

    • device: EmbeddedDevice

      The device to authenticate.

    • Optionaloptions: { onPrompt?: () => void }

      Optional prompt hooks for UI updates.

    Returns Promise<undefined | string>

    The password, if available.

  • Stores a private key passphrase in secret storage for the device.

    Parameters

    • device: EmbeddedDevice

      The device to associate with the secret.

    • passphrase: string

      The passphrase to store.

    Returns Promise<void>

  • Stores a password in secret storage for the device.

    Parameters

    • device: EmbeddedDevice

      The device to associate with the secret.

    • password: string

      The password to store.

    Returns Promise<void>