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.GInterfaceStructure: Gio.TlsBackendInterfaceTLS (Transport Layer Security, aka SSL) and DTLS backend.
New in version 2.28.
-
classmethod
get_default()[source]¶ Returns: a Gio.TlsBackendReturn type: Gio.TlsBackendGets the default
Gio.TlsBackendfor the system.New in version 2.28.
-
get_certificate_type()[source]¶ Returns: the GObject.GTypeof self’sGio.TlsCertificateimplementation.Return type: GObject.GTypeGets 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: GObject.GTypeGets 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: Gio.TlsDatabaseGets 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: GObject.GTypeGets 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: GObject.GTypeGets 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: GObject.GTypeGets 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: GObject.GTypeGets the
GObject.GTypeof self’sGio.TlsServerConnectionimplementation.New in version 2.28.
-
set_default_database(database)[source]¶ Parameters: database ( Gio.TlsDatabaseorNone) – theGio.TlsDatabaseSet 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: boolChecks 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: boolChecks 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: Gio.TlsDatabaseGets the default
Gio.TlsDatabaseused to verify TLS connections.New in version 2.30.
-
do_supports_dtls() virtual¶ Returns: whether DTLS is supported Return type: boolChecks 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: boolChecks if TLS is supported; if this returns
Falsefor the defaultGio.TlsBackend, it means no “real” TLS backend is available.New in version 2.28.
-
classmethod