Service.getSecretForDbusPath

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_get_secret() to more simply get its secret value.

This function returns immediately and completes asynchronously.

class Service
void
getSecretForDbusPath
(
string itemPath
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

itemPath string

the D-Bus path to item to retrieve secret for

cancellable Cancellable

optional cancellation object

callback GAsyncReadyCallback

called when the operation completes

userData void*

data to pass to the callback

Meta