store_password_sync


Description:

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

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.

Parameters:

this

an Source

password

the password to store

permanently

store permanently or just for the session

cancellable

optional Cancellable object, or null

Returns:

true on success, false on error




2022 vala-language.org