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) | 
|---|
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: - Returns: - a - Camel.Certcorresponding to the pair of hostname and fingerprint, or- None, if no such certificate is stored in the self.- Return type: - Camel.Certor- 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.SListis referenced, thus unref it with- Camel.Cert.unref() when done with it, the same as free the list itself.- New in version 3.16. 
 - 
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: - Removes a certificate identified by the hostname and fingerprint. - New in version 3.6. 
 - 
set_default()¶
 - 
touch()¶
 - 
do_cert_load(istream) virtual¶
- Parameters: - istream ( - objector- None) –- Return type: - Camel.Cert
 - 
do_cert_save(cert, ostream) virtual¶
- Parameters: - cert (Camel.Cert) –
- ostream (objectorNone) –
 - Return type: 
- cert (
 
- 
classmethod