secret_store_lookup_sync


Description:


[ Version ( since = "3.18" ) ]
public bool secret_store_lookup_sync (string uid, out string out_secret, Cancellable? cancellable = null) throws Error

Looks up a secret for the uid.

Both the default and session keyrings are queried.

Note the boolean return value indicates whether the lookup operation itself completed successfully, not whether the secret was found. If no secret was found, the function will set out_secret to null, but still return true. If an error occurs, the function sets error and returns false.

Parameters:

uid

a unique identifier of the secret

out_secret

return location for the secret, or null

cancellable

optional Cancellable object, or null

Returns:

true on success, false on error


Namespace: E