Gio.TlsFileDatabase

g GObject.GInterface GObject.GInterface Gio.TlsFileDatabase Gio.TlsFileDatabase GObject.GInterface->Gio.TlsFileDatabase

Implementations:

None

Methods

class

new (anchors)

Virtual Methods

None

Properties

Name

Type

Flags

Short Description

anchors

str

r/w/c

Signals

None

Fields

None

Class Details

class Gio.TlsFileDatabase
Bases:

GObject.GInterface

Structure:

Gio.TlsFileDatabaseInterface

GTlsFileDatabase is implemented by [class`Gio`.TlsDatabase] objects which load their certificate information from a file. It is an interface which TLS library specific subtypes implement.

New in version 2.30.

classmethod new(anchors)[source]
Parameters:

anchors (str) – filename of anchor certificate authorities.

Raises:

GLib.Error

Returns:

the new Gio.TlsFileDatabase, or None on error

Return type:

Gio.TlsFileDatabase

Creates a new Gio.TlsFileDatabase which uses anchor certificate authorities in anchors to verify certificate chains.

The certificates in anchors must be PEM encoded.

New in version 2.30.

Property Details

Gio.TlsFileDatabase.props.anchors
Name:

anchors

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The path to a file containing PEM encoded certificate authority root anchors. The certificates in this file will be treated as root authorities for the purpose of verifying other certificates via the Gio.TlsDatabase.verify_chain() operation.

New in version 2.30.