store_sync


Description:

public bool store_sync (Schema? schema, HashTable<string,string> attributes, string? collection, string label, Value value, Cancellable? cancellable = null) throws Error

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 collection is null, 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.

If this is null, then [funcService.get_sync] will be called to get the default [classService] proxy.

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

Parameters:

this

the secret service

schema

the schema for the 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

Returns:

whether the storage was successful or not