Function

Secret-1Secretpassword_store_binary_syncSince 0.19.0

  • Store a password in the secret service.

    This is similar to password_storev_sync, but takes a Value as the argument instead of a null-terminated passwords.

    This method may block indefinitely and should not be used in user interface threads.

    Parameters

    • schema: Schema

      the schema for attributes

    • attributes: GLib.HashTable<string, string> | { [key: string]: any }

      the attribute keys and values

    • collection: string

      a collection alias, or D-Bus object path of the collection where to store the secret

    • label: string

      label for the secret

    • value: Secret.Value
    • Optionalcancellable: Gio.Cancellable

      optional cancellation object

    Returns boolean

    whether the storage was successful or not

    0.19.0