update_secrets


Description:

public bool update_secrets (string setting_name, HashTable<string,Value?> secrets) throws Error

Update the specified setting's secrets, given a hash table of secrets intended for that setting (deserialized from D-Bus for example).

Will also extract the given setting's secrets hash if given a hash of hashes, as would be returned from to_hash. If setting_name is null, expects a fully serialized Connection as returned by to_hash and will update all secrets from all settings contained in secrets.

Parameters:

this

the Connection

setting_name

the setting object name to which the secrets apply

secrets

a GenericSet mapping string:#GValue of setting property names and secrets of the given setting_name

Returns:

true if the secrets were successfully updated, false if the update failed (tried to update secrets for a setting that doesn't exist, etc)