VSCode-Logger API - v1.7.3
    Preparing search index...

    Class PasswordManager

    Manages password and passphrase secrets for devices.

    Index

    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<string | undefined>

      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<string | undefined>

      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>