Service.lockDbusPathsSync

Lock items or collections in the secret service.

The items or collections are represented by their D-Bus object paths. If you already have #SecretItem and #SecretCollection proxy objects, use use secret_service_lock_sync() instead.

The secret service may not be able to lock items individually, and may lock an entire collection instead.

This method may block indefinitely and should not be used in user interface threads. The secret service may prompt the user. secret_service_prompt() will be used to handle any prompts that show up.

class Service
int
lockDbusPathsSync
(
string[] paths
,
Cancellable cancellable
,
out string[] locked
)

Parameters

paths string[]

the D-Bus object paths of the items or collections to lock

cancellable Cancellable

optional cancellation object

locked string[]

location to place array of D-Bus paths of items or collections that were locked

Return Value

Type: int

the number of items or collections that were locked

Throws

GException on failure.

Meta