Service.lookupSync

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 #SecretService proxy.

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

class Service
lookupSync
(,
HashTable attributes
,
Cancellable cancellable
)

Parameters

schema Schema

the schema for the attributes

attributes HashTable

the attribute keys and values

cancellable Cancellable

optional cancellation object

Return Value

Type: Value

a newly allocated #SecretValue, which should be released with secret_value_unref(), or %NULL if no secret found

Throws

GException on failure.

Meta