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 #SecretService 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.

class Service
void
store
(,
HashTable attributes
,
string collection
,
string label
,,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

schema Schema

the schema to use to check attributes

attributes HashTable

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 Value

the secret value

cancellable Cancellable

optional cancellation object

callback GAsyncReadyCallback

called when the operation completes

userData void*

data to be passed to the callback

Meta