Service.getSecretForDbusPathSync

Get the secret value for a secret item stored in the service.

The item is represented by its D-Bus object path. If you already have a #SecretItem proxy object, use use secret_item_load_secret_sync() to more simply get its secret value.

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

Will return %NULL if the item is locked.

class Service
getSecretForDbusPathSync
(
string itemPath
,
Cancellable cancellable
)

Parameters

itemPath string

the D-Bus path to item to retrieve secret for

cancellable Cancellable

optional cancellation object

Return Value

Type: Value

the newly allocated secret value for the item, which should be released with secret_value_unref()

Throws

GException on failure.

Meta