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.TlsBackend
for the system.New in version 2.28.
- get_certificate_type()[source]¶
- Returns:
the
GObject.GType
of self'sGio.TlsCertificate
implementation.- Return type:
Gets the
GObject.GType
of self'sGio.TlsCertificate
implementation.New in version 2.28.
- get_client_connection_type()[source]¶
- Returns:
the
GObject.GType
of self'sGio.TlsClientConnection
implementation.- Return type:
Gets the
GObject.GType
of self'sGio.TlsClientConnection
implementation.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.TlsDatabase
used to verify TLS connections.New in version 2.30.
- get_dtls_client_connection_type()[source]¶
- Returns:
the
GObject.GType
of self’sGio.DtlsClientConnection
implementation, orGObject.TYPE_INVALID
if this backend doesn’t support DTLS.- Return type:
Gets the
GObject.GType
of self’sGio.DtlsClientConnection
implementation.New in version 2.48.
- get_dtls_server_connection_type()[source]¶
- Returns:
the
GObject.GType
of self’sGio.DtlsServerConnection
implementation, orGObject.TYPE_INVALID
if this backend doesn’t support DTLS.- Return type:
Gets the
GObject.GType
of self’sGio.DtlsServerConnection
implementation.New in version 2.48.
- get_file_database_type()[source]¶
- Returns:
the
GObject.GType
of backend’sGio.TlsFileDatabase
implementation.- Return type:
Gets the
GObject.GType
of self'sGio.TlsFileDatabase
implementation.New in version 2.30.
- get_server_connection_type()[source]¶
- Returns:
the
GObject.GType
of self'sGio.TlsServerConnection
implementation.- Return type:
Gets the
GObject.GType
of self'sGio.TlsServerConnection
implementation.New in version 2.28.
- set_default_database(database)[source]¶
- Parameters:
database (
Gio.TlsDatabase
orNone
) – theGio.TlsDatabase
Set the default
Gio.TlsDatabase
used 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
None
default 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
False
for 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.TlsDatabase
used 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
False
for the defaultGio.TlsBackend
, it means no “real” TLS backend is available.New in version 2.28.