Secret.Service.prototype.lookup_sync
function lookup_sync(schema: Secret.Schema, attributes: {String: String}, cancellable: Gio.Cancellable): Secret.Value { // Gjs wrapper for secret_service_lookup_sync() }
Lookup a secret value in the secret service.
The attributes should be a set of key and value string pairs.
If service is NULL, then Secret.Service.get_sync will be called to get the default Secret.Service proxy.
This method may block indefinitely and should not be used in user interface threads.
- schema
the schema for the attributes
- attributes
the attribute keys and values
- cancellable
optional cancellation object
- Returns
a newly allocated Secret.Value, which should be released with Secret.Value.prototype.unref, or null if no secret found