Enums

Details

class Secret.BackendFlags(value)

Bases: GObject.GEnum

Flags which determine which parts of the Secret.Backend are initialized.

New in version 0.19.0.

NONE = 0

no flags for initializing the Secret.Backend

OPEN_SESSION = 2

establish a session for transfer of secrets while initializing the Secret.Backend

LOAD_COLLECTIONS = 4

load collections while initializing the Secret.Backend

class Secret.Error(value)

Bases: GObject.GEnum

Errors returned by the Secret Service.

None of the errors are appropriate for display to the user. It is up to the application to handle them appropriately.

classmethod get_quark()
Returns:

the quark

Return type:

int

Get the error quark.

PROTOCOL = 1

received an invalid data or message from the Secret Service

IS_LOCKED = 2

the item or collection is locked and the operation cannot be performed

NO_SUCH_OBJECT = 3

no such item or collection found in the Secret Service

ALREADY_EXISTS = 4

a relevant item or collection already exists

INVALID_FILE_FORMAT = 5

the file format is not valid

MISMATCHED_SCHEMA = 6

the xdg:schema attribute of the table does not match the schema name

NO_MATCHING_ATTRIBUTE = 7

attribute contained in table not found in corresponding schema

WRONG_TYPE = 8

attribute could not be parsed according to its type reported in the table’s schema

EMPTY_TABLE = 9

attribute list passed to Secret.attributes_validate has no elements to validate

class Secret.SchemaAttributeType(value)

Bases: GObject.GEnum

The type of an attribute in a [struct`SecretSchema`].

Attributes are stored as strings in the Secret Service, and the attribute types simply define standard ways to store integer and boolean values as strings.

STRING = 0

a utf-8 string attribute

INTEGER = 1

an integer attribute, stored as a decimal

BOOLEAN = 2

a boolean attribute, stored as ‘true’ or ‘false’

class Secret.SchemaType(value)

Bases: GObject.GEnum

Different types of schemas for storing secrets, intended for use with [func`get_schema`].

SECRET_SCHEMA_NOTE

A predefined schema for personal passwords stored by the user in the password manager. This schema has no attributes, and the items are not meant to be used automatically by applications.

When used to search for items using this schema, it will only match items that have the same schema. Items stored via libgnome-keyring with the GNOME_KEYRING_ITEM_NOTE item type will match.

SECRET_SCHEMA_COMPAT_NETWORK

A predefined schema that is compatible with items stored via the libgnome-keyring ‘network password’ functions. This is meant to be used by applications migrating from libgnome-keyring which stored their secrets as ‘network passwords’. It is not recommended that new code use this schema.

When used to search for items using this schema, it will only match items that have the same schema. Items stored via libgnome-keyring with the GNOME_KEYRING_ITEM_NETWORK_PASSWORD item type will match.

The following attributes exist in the schema:

### Attributes:

<tt>user</tt>: The user name (string).

<tt>domain</tt>: The login domain or realm (string).

<tt>object</tt>: The object or path (string).

<tt>protocol</tt>: The protocol (a string like ‘http’).

<tt>port</tt>: The network port (integer).

<tt>server</tt>: The hostname or server (string).

<tt>authtype</tt>: The authentication type (string).

New in version 0.18.6.

NOTE = 0

Personal passwords

COMPAT_NETWORK = 1

Network passwords from older libgnome-keyring storage