Gio.TlsFileDatabase¶
| Implementations: | |
|---|---|
| None | |
Virtual Methods¶
None
Properties¶
| Name | Type | Flags | Short Description |
|---|---|---|---|
anchors |
str |
r/w/c | The certificate authority anchor file |
Signals¶
None
Fields¶
None
Class Details¶
-
class
Gio.TlsFileDatabase¶ Bases: GObject.GInterfaceStructure: Gio.TlsFileDatabaseInterfaceGio.TlsFileDatabaseis implemented byGio.TlsDatabaseobjects 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.ErrorReturns: the new Gio.TlsFileDatabase, orNoneon errorReturn type: Gio.TlsFileDatabaseCreates a new
Gio.TlsFileDatabasewhich uses anchor certificate authorities in anchors to verify certificate chains.The certificates in anchors must be PEM encoded.
New in version 2.30.
-
classmethod
Property Details¶
-
Gio.TlsFileDatabase.props.anchors¶ Name: anchorsType: strDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCTThe 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.