password_store_sync
Description:
public bool password_store_sync (Schema schema, string? collection, string label, string password, Cancellable? cancellable = null, ...) throws Error
Store a password in the secret service.
The variable argument list should contain pairs of a) The attribute name as a null-terminated string, followed by b) attribute value, either a
character string, an int number, or a gboolean value, as defined in the schema. The list of attributes should be terminated with a
null.
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.
This method may block indefinitely and should not be used in user interface threads.
Parameters:
| schema |
the schema for attributes |
| collection |
a collection alias, or D-Bus object path of the collection where to store the secret |
| label |
label for the secret |
| password |
the null-terminated password to store |
| cancellable |
optional cancellation object |
| ... |
the attribute keys and values, terminated with |
| error |
location to place an error on failure |
Returns:
|
whether the storage was successful or not |