Service.store

void store(secret.schema.Schema schema, string[string] attributes, string collection, string label, secret.value.Value value, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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.Service.get] will be called to get the default classService proxy.

If collection is not specified, then the default collection will be used. Use constCOLLECTION_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

schemathe schema to use to check attributes
attributesthe attribute keys and values
collectiona collection alias, or D-Bus object path of the collection where to store the secret
labellabel for the secret
valuethe secret value
cancellableoptional cancellation object
callbackcalled when the operation completes