TlsBackend#
Added in version 2.28.
- class TlsBackend(*args, **kwargs)#
TLS (Transport Layer Security, aka SSL) and DTLS backend. This is an internal type used to coordinate the different classes implemented by a TLS backend.
Methods#
- class TlsBackend
- get_certificate_type() GType#
Gets the
Typeofbackend'sTlsCertificateimplementation.Added in version 2.28.
- get_client_connection_type() GType#
Gets the
Typeofbackend'sTlsClientConnectionimplementation.Added in version 2.28.
- classmethod get_default() TlsBackend#
Gets the default
TlsBackendfor the system.Added in version 2.28.
- get_default_database() TlsDatabase#
Gets the default
TlsDatabaseused to verify TLS connections.Added in version 2.30.
- get_dtls_client_connection_type() GType#
Gets the
Typeofbackend’sDtlsClientConnectionimplementation.Added in version 2.48.
- get_dtls_server_connection_type() GType#
Gets the
Typeofbackend’sGDtlsServerConnectionimplementation.Added in version 2.48.
- get_file_database_type() GType#
Gets the
Typeofbackend'sGTlsFileDatabaseimplementation.Added in version 2.30.
- get_server_connection_type() GType#
Gets the
Typeofbackend'sGTlsServerConnectionimplementation.Added in version 2.28.
- set_default_database(database: TlsDatabase | None = None) None#
Set the default
TlsDatabaseused to verify TLS connectionsAny subsequent call to
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 ifset_default_database()had never been called.Added in version 2.60.
- Parameters:
database – the
TlsDatabase
- supports_dtls() bool#
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
Added in version 2.48.
- supports_tls() bool#
Checks if TLS is supported; if this returns
Falsefor the defaultTlsBackend, it means no “real” TLS backend is available.Added in version 2.28.
Virtual Methods#
- class TlsBackend
- do_get_default_database() TlsDatabase#
Gets the default
TlsDatabaseused to verify TLS connections.Added in version 2.30.
- do_supports_dtls() bool#
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
Added in version 2.48.
- do_supports_tls() bool#
Checks if TLS is supported; if this returns
Falsefor the defaultTlsBackend, it means no “real” TLS backend is available.Added in version 2.28.