Secret.Backend

g GObject.GInterface GObject.GInterface Secret.Backend Secret.Backend GObject.GInterface->Secret.Backend

Implementations:

Secret.Service

Methods

class

get (flags, cancellable, callback, *user_data)

class

get_finish (result)

Virtual Methods

do_clear (schema, attributes, cancellable, callback, *user_data)

do_clear_finish (result)

do_ensure_for_flags (flags, cancellable, callback, *user_data)

do_ensure_for_flags_finish (result)

do_lookup (schema, attributes, cancellable, callback, *user_data)

do_lookup_finish (result)

do_search (schema, attributes, flags, cancellable, callback, *user_data)

do_store (schema, attributes, collection, label, value, cancellable, callback, *user_data)

do_store_finish (result)

Properties

Name

Type

Flags

Short Description

flags

Secret.ServiceFlags

r/w/co

Service flags

Signals

None

Fields

None

Class Details

class Secret.Backend
Bases:

GObject.GInterface

Structure:

Secret.BackendInterface

Secret.Backend represents a backend implementation of password storage.

New in version 0.19.0.

classmethod get(flags, cancellable, callback, *user_data)
Parameters:

Get a Secret.Backend instance.

If such a backend already exists, then the same backend is returned.

If flags contains any flags of which parts of the secret backend to ensure are initialized, then those will be initialized before completing.

This method will return immediately and complete asynchronously.

New in version 0.19.0.

classmethod get_finish(result)
Parameters:

result (Gio.AsyncResult) – the asynchronous result passed to the callback

Raises:

GLib.Error

Returns:

a new reference to a Secret.Backend proxy, which should be released with [method`GObject`.Object.unref].

Return type:

Secret.Backend

Complete an asynchronous operation to get a Secret.Backend.

New in version 0.19.0.

do_clear(schema, attributes, cancellable, callback, *user_data) virtual
Parameters:
do_clear_finish(result) virtual
Parameters:

result (Gio.AsyncResult) –

Return type:

bool

do_ensure_for_flags(flags, cancellable, callback, *user_data) virtual
Parameters:
do_ensure_for_flags_finish(result) virtual
Parameters:

result (Gio.AsyncResult) –

Return type:

bool

do_lookup(schema, attributes, cancellable, callback, *user_data) virtual
Parameters:
do_lookup_finish(result) virtual
Parameters:

result (Gio.AsyncResult) –

Return type:

Secret.Value

Parameters:
do_store(schema, attributes, collection, label, value, cancellable, callback, *user_data) virtual
Parameters:
do_store_finish(result) virtual
Parameters:

result (Gio.AsyncResult) –

Return type:

bool

Property Details

Secret.Backend.props.flags
Name:

flags

Type:

Secret.ServiceFlags

Default Value:

Secret.ServiceFlags.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A set of flags describing which parts of the secret backend have been initialized.

New in version 0.19.0.