Function

Secret-1Secretpassword_store

  • Store a password in the secret service.

    The attributes should be a set of key and value string pairs.

    If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.

    If collection is null, then the default collection will be used. Use COLLECTION_SESSION to store the password in the session collection, which doesn't get stored across login sessions.

    This method will return immediately and complete asynchronously.

    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

    • password: string

      the null-terminated password to store

    • Optionalcancellable: Gio.Cancellable

      optional cancellation object

    Returns Promise<boolean>

  • Store a password in the secret service.

    The attributes should be a set of key and value string pairs.

    If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.

    If collection is null, then the default collection will be used. Use COLLECTION_SESSION to store the password in the session collection, which doesn't get stored across login sessions.

    This method will return immediately and complete asynchronously.

    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

    • password: string

      the null-terminated password to store

    • cancellable: Gio.Cancellable

      optional cancellation object

    • callback: AsyncReadyCallback<Schema>

      called when the operation completes

    Returns void

  • Store a password in the secret service.

    The attributes should be a set of key and value string pairs.

    If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.

    If collection is null, then the default collection will be used. Use COLLECTION_SESSION to store the password in the session collection, which doesn't get stored across login sessions.

    This method will return immediately and complete asynchronously.

    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

    • password: string

      the null-terminated password to store

    • Optionalcancellable: Gio.Cancellable

      optional cancellation object

    • Optionalcallback: AsyncReadyCallback<Schema>

      called when the operation completes

    Returns void | Promise<boolean>