Secret.Service.prototype.store
function store(schema: Secret.Schema, attributes: {String: String}, collection: String, label: String, value: Secret.Value, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for secret_service_store() }
Store a secret value 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 service is NULL, then Secret.Service.get will be called to get the default Secret.Service proxy.
If collection is not specified, then the default collection will be used. Use #SECRET_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.
- schema
the schema to use to check attributes
- attributes
the attribute keys and values
- collection
a collection alias, or D-Bus object path of the collection where to store the secret
- label
label for the secret
- value
the secret value
- cancellable
optional cancellation object
- callback
called when the operation completes