Gio.TlsBackend¶
- Implementations:
None
Methods¶
class |
|
|
|
|
Virtual Methods¶
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gio.TlsBackend¶
- Bases:
- Structure:
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.
New in version 2.28.
- classmethod get_default()[source]¶
- Returns:
a
Gio.TlsBackend, which will be a dummy object if no TLS backend is available- Return type:
Gets the default
Gio.TlsBackendfor the system.New in version 2.28.
- get_certificate_type()[source]¶
- Returns:
the
GObject.GTypeof self'sGio.TlsCertificateimplementation.- Return type:
Gets the
GObject.GTypeof self'sGio.TlsCertificateimplementation.New in version 2.28.
- get_client_connection_type()[source]¶
- Returns:
the
GObject.GTypeof self'sGio.TlsClientConnectionimplementation.- Return type:
Gets the
GObject.GTypeof self'sGio.TlsClientConnectionimplementation.New in version 2.28.
- get_default_database()[source]¶
- Returns:
the default database, which should be unreffed when done.
- Return type:
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’sGio.DtlsClientConnectionimplementation, orGObject.TYPE_INVALIDif this backend doesn’t support DTLS.- Return type:
Gets the
GObject.GTypeof self’sGio.DtlsClientConnectionimplementation.New in version 2.48.
- get_dtls_server_connection_type()[source]¶
- Returns:
the
GObject.GTypeof self’sGio.DtlsServerConnectionimplementation, orGObject.TYPE_INVALIDif this backend doesn’t support DTLS.- Return type:
Gets the
GObject.GTypeof self’sGio.DtlsServerConnectionimplementation.New in version 2.48.
- get_file_database_type()[source]¶
- Returns:
the
GObject.GTypeof backend’sGio.TlsFileDatabaseimplementation.- Return type:
Gets the
GObject.GTypeof self'sGio.TlsFileDatabaseimplementation.New in version 2.30.
- get_server_connection_type()[source]¶
- Returns:
the
GObject.GTypeof self'sGio.TlsServerConnectionimplementation.- Return type:
Gets the
GObject.GTypeof self'sGio.TlsServerConnectionimplementation.New in version 2.28.
- set_default_database(database)[source]¶
- Parameters:
database (
Gio.TlsDatabaseorNone) – theGio.TlsDatabase
Set the default
Gio.TlsDatabaseused to verify TLS connectionsAny 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 ifGio.TlsBackend.set_default_database() had never been called.New in version 2.60.
- supports_dtls()[source]¶
- Returns:
whether DTLS is supported
- Return type:
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:
Checks if TLS is supported; if this returns
Falsefor the defaultGio.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:
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:
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:
Checks if TLS is supported; if this returns
Falsefor the defaultGio.TlsBackend, it means no “real” TLS backend is available.New in version 2.28.