get_secret_for_dbus_path_sync


Description:

public Value? get_secret_for_dbus_path_sync (string item_path, Cancellable? cancellable = null) throws Error

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 [classItem] proxy object, use use [method 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.

Parameters:

this

the secret service

item_path

the D-Bus path to item to retrieve secret for

cancellable

optional cancellation object

Returns:

the newly allocated secret value the item, which should be released with [methodValue.unref]




2022 vala-language.org