store_password


Description:

[ Version ( since = "3.12" ) ]
public async bool store_password (string password, bool permanently, Cancellable? cancellable) throws Error

Asynchronously stores a password for this.

This operation does not rely on the registry service and therefore works for any Source -- registered or "scratch".

If permanently is true, the password is stored in the default keyring. Otherwise the password is stored in the memory-only session keyring. If an error occurs, the function sets error and returns false.

When the operation is finished, callback will be called. You can then call store_password.end to get the result of the operation.

Parameters:

this

an Source

password

the password to store

permanently

store permanently or just for the session

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function