Gio.TlsBackend¶
| Implementations: | |
|---|---|
| None | |
Methods¶
Virtual Methods¶
| do_get_default_database() | |
| do_supports_dtls() | |
| do_supports_tls() | 
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- 
class Gio.TlsBackend¶
- Bases: - GObject.GInterface- Structure: - Gio.TlsBackendInterface- TLS (Transport Layer Security, aka SSL) and DTLS backend. - New in version 2.28. - 
classmethod get_default()[source]¶
- Returns: - a - Gio.TlsBackend- Return type: - Gio.TlsBackend- Gets the default - Gio.TlsBackendfor the system.- New in version 2.28. 
 - 
get_certificate_type()[source]¶
- Returns: - the - GObject.GTypeof self’s- Gio.TlsCertificateimplementation.- Return type: - GObject.GType- Gets the - GObject.GTypeof self’s- Gio.TlsCertificateimplementation.- New in version 2.28. 
 - 
get_client_connection_type()[source]¶
- Returns: - the - GObject.GTypeof self’s- Gio.TlsClientConnectionimplementation.- Return type: - GObject.GType- Gets the - GObject.GTypeof self’s- Gio.TlsClientConnectionimplementation.- New in version 2.28. 
 - 
get_default_database()[source]¶
- Returns: - the default database, which should be unreffed when done. - Return type: - Gio.TlsDatabase- Gets the default - Gio.TlsDatabaseused to verify TLS connections.- New in version 2.30. 
 - 
get_dtls_client_connection_type()[source]¶
- Returns: - the - GObject.GTypeof self’s- Gio.DtlsClientConnectionimplementation, or- GObject.TYPE_INVALIDif this backend doesn’t support DTLS.- Return type: - GObject.GType- Gets the - GObject.GTypeof self’s- Gio.DtlsClientConnectionimplementation.- New in version 2.48. 
 - 
get_dtls_server_connection_type()[source]¶
- Returns: - the - GObject.GTypeof self’s- Gio.DtlsServerConnectionimplementation, or- GObject.TYPE_INVALIDif this backend doesn’t support DTLS.- Return type: - GObject.GType- Gets the - GObject.GTypeof self’s- Gio.DtlsServerConnectionimplementation.- New in version 2.48. 
 - 
get_file_database_type()[source]¶
- Returns: - the - GObject.GTypeof backend’s- Gio.TlsFileDatabaseimplementation.- Return type: - GObject.GType- Gets the - GObject.GTypeof self’s- Gio.TlsFileDatabaseimplementation.- New in version 2.30. 
 - 
get_server_connection_type()[source]¶
- Returns: - the - GObject.GTypeof self’s- Gio.TlsServerConnectionimplementation.- Return type: - GObject.GType- Gets the - GObject.GTypeof self’s- Gio.TlsServerConnectionimplementation.- New in version 2.28. 
 - 
set_default_database(database)[source]¶
- Parameters: - database ( - Gio.TlsDatabaseor- None) – the- Gio.TlsDatabase- Set the default - Gio.TlsDatabaseused to verify TLS connections- Any subsequent call to - Gio.TlsBackend.get_default_database() will return the database set in this call. Existing databases and connections are not modified.- Setting a - Nonedefault database will reset to using the system default database as if- Gio.TlsBackend.set_default_database() had never been called.- New in version 2.60. 
 - 
supports_dtls()[source]¶
- Returns: - whether DTLS is supported - Return type: - bool- Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa. - New in version 2.48. 
 - 
supports_tls()[source]¶
- Returns: - whether or not TLS is supported - Return type: - bool- Checks if TLS is supported; if this returns - Falsefor the default- Gio.TlsBackend, it means no “real” TLS backend is available.- New in version 2.28. 
 - 
do_get_default_database() virtual¶
- Returns: - the default database, which should be unreffed when done. - Return type: - Gio.TlsDatabase- Gets the default - Gio.TlsDatabaseused to verify TLS connections.- New in version 2.30. 
 - 
do_supports_dtls() virtual¶
- Returns: - whether DTLS is supported - Return type: - bool- Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa. - New in version 2.48. 
 - 
do_supports_tls() virtual¶
- Returns: - whether or not TLS is supported - Return type: - bool- Checks if TLS is supported; if this returns - Falsefor the default- Gio.TlsBackend, it means no “real” TLS backend is available.- New in version 2.28. 
 
- 
classmethod