Theia API Documentation v1.77.0
    Preparing search index...

    Interface SecretStorage

    Represents a storage utility for secrets, information that is sensitive.

    interface SecretStorage {
        onDidChange: Event<SecretStorageChangeEvent>;
        delete(key: string): Thenable<void>;
        get(key: string): Thenable<string | undefined>;
        keys(): Thenable<string[]>;
        store(key: string, value: string): Thenable<void>;
    }

    Implemented by

    Index

    Fires when a secret is stored or deleted.

    • Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key.

      Parameters

      • key: string

        The key the secret was stored under.

      Returns Thenable<string | undefined>

      The stored value or undefined.