Camel.CertDB

g Camel.CertDB Camel.CertDB GObject.Object GObject.Object GObject.Object->Camel.CertDB

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_default ()

class

new ()

clear ()

get_host (hostname, fingerprint)

list_certs ()

load ()

put (cert)

remove_host (hostname, fingerprint)

save ()

set_default ()

set_filename (filename)

touch ()

Virtual Methods

Inherited:

GObject.Object (7)

do_cert_load (istream)

do_cert_save (cert, ostream)

do_header_load (istream)

do_header_save (ostream)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Camel.CertDB(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Camel.CertDBClass

classmethod get_default()
Return type:

Camel.CertDB

FIXME Document me!

classmethod new()
Return type:

Camel.CertDB

clear()
get_host(hostname, fingerprint)
Parameters:
  • hostname (str) – a host name of a certificate

  • fingerprint (str) – a fingerprint of a certificate

Returns:

a Camel.Cert corresponding to the pair of hostname and fingerprint, or None, if no such certificate is stored in the self.

Return type:

Camel.Cert or None

New in version 3.6.

list_certs()
Returns:

Newly allocated list of referenced Camel.Cert-s, which are stored in the self.

Return type:

[Camel.Cert]

Gathers a list of known certificates. Each certificate in the returned GLib.SList is referenced, thus unref it with Camel.Cert.unref() when done with it, the same as free the list itself.

New in version 3.16.

load()
Return type:

int

put(cert)
Parameters:

cert (Camel.Cert) – a Camel.Cert

Puts a certificate to the database. In case there exists a certificate with the same hostname and fingerprint, then it is replaced. This adds its own reference on the cert.

New in version 3.6.

remove_host(hostname, fingerprint)
Parameters:
  • hostname (str) – a host name of a certificate

  • fingerprint (str) – a fingerprint of a certificate

Removes a certificate identified by the hostname and fingerprint.

New in version 3.6.

save()
Return type:

int

set_default()
set_filename(filename)
Parameters:

filename (str) –

touch()
do_cert_load(istream) virtual
Parameters:

istream (object or None) –

Return type:

Camel.Cert

do_cert_save(cert, ostream) virtual
Parameters:
Return type:

int

do_header_load(istream) virtual
Parameters:

istream (object or None) –

Return type:

int

do_header_save(ostream) virtual
Parameters:

ostream (object or None) –

Return type:

int