password_lookup_sync


Description:


public string password_lookup_sync (Schema schema, Cancellable? cancellable = null, ...) throws Error

Lookup a password in the secret service.

The variable argument list should contain pairs of a) The attribute name as a null-terminated string, followed by b) attribute value, either a character string, an int number, or a gboolean value, as defined in the password schema. The list of attributes should be terminated with a null.

If no secret is found then null is returned.

This method may block indefinitely and should not be used in user interface threads.

Parameters:

schema

the schema for the attributes

cancellable

optional cancellation object

...

the attribute keys and values, terminated with null

error

location to place an error on failure

Returns:

a new password string which should be freed with [funcpassword_free] or may be freed with [funcGLib.free] when done


Namespace: Secret
Package: libsecret-1