pub fn password_lookup_sync(
schema: Option<&Schema>,
attributes: HashMap<&str, &str>,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Option<GString>, Error>
Expand description
Lookup a password in the secret service.
The @attributes should be a set of key and value string pairs.
If no secret is found then None
is returned.
This method may block indefinitely and should not be used in user interface threads.
§schema
the schema for attributes
§attributes
the attribute keys and values
§cancellable
optional cancellation object
§Returns
a new password string which should be freed with
password_free()
or may be freed with free()
when done