Service


Object Hierarchy:

Secret.Service Secret.Service Secret.Service GLib.DBusProxy GLib.DBusProxy GLib.DBusProxy->Secret.Service GLib.Object GLib.Object GLib.Object->GLib.DBusProxy GLib.AsyncInitable GLib.AsyncInitable GLib.AsyncInitable->Secret.Service GLib.AsyncInitable->GLib.DBusProxy GLib.DBusInterface GLib.DBusInterface GLib.DBusInterface->Secret.Service GLib.DBusInterface->GLib.DBusProxy GLib.Initable GLib.Initable GLib.Initable->Secret.Service GLib.Initable->GLib.DBusProxy Secret.Backend Secret.Backend Secret.Backend->Secret.Service

Description:

[ CCode ( type_id = "secret_service_get_type ()" ) ]
public class Service : DBusProxy, AsyncInitable, DBusInterface, Initable, Backend

A proxy object representing the Secret Service.

A Service object represents the Secret Service implementation which runs as a D-Bus service.

Normally a single Service object can be shared between multiple callers. The [funcService.get] method is used to access this Service object. If a new independent Service object is required, use [funcService.open].

In order to securely transfer secrets to the Sercret Service, a session is established. This session can be established while initializing a Service object by passing the OPEN_SESSION flag to the [funcService.get] or [funcService.open] functions. In order to establish a session on an already existing Service, use the [methodService.ensure_session] function.

To search for items, use the [methodService.search] method.

Multiple collections can exist in the Secret Service, each of which contains secret items. In order to instantiate [classCollection ] objects which represent those collections while initializing a Service then pass the LOAD_COLLECTIONS flag to the [funcService.get] or [funcService.open] functions. In order to establish a session on an already existing Service, use the [methodService.load_collections] function. To access the list of collections use [methodService.get_collections ].

Certain actions on the Secret Service require user prompting to complete, such as creating a collection, or unlocking a collection. When such a prompt is necessary, then a [classPrompt] object is created by this library, and passed to the [method Service.prompt] method. In this way it is handled automatically.

In order to customize prompt handling, override the [vfuncService.prompt_async] and [vfuncService.prompt_finish ] virtual methods of the Service class.


Namespace: Secret
Package: libsecret-1

Content:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.DBusProxy
All known members inherited from class GLib.Object
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.DBusInterface
All known members inherited from interface GLib.Initable
All known members inherited from interface Secret.Backend



2022 vala-language.org