Gio.TlsBackend

g GObject.GInterface GObject.GInterface Gio.TlsBackend Gio.TlsBackend GObject.GInterface->Gio.TlsBackend

Implementations:

None

Methods

class

get_default ()

get_certificate_type ()

get_client_connection_type ()

get_default_database ()

get_dtls_client_connection_type ()

get_dtls_server_connection_type ()

get_file_database_type ()

get_server_connection_type ()

set_default_database (database)

supports_dtls ()

supports_tls ()

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. 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:

Gio.TlsBackend

Gets the default Gio.TlsBackend for the system.

New in version 2.28.

get_certificate_type()[source]
Returns:

the GObject.GType of self's Gio.TlsCertificate implementation.

Return type:

GObject.GType

Gets the GObject.GType of self's Gio.TlsCertificate implementation.

New in version 2.28.

get_client_connection_type()[source]
Returns:

the GObject.GType of self's Gio.TlsClientConnection implementation.

Return type:

GObject.GType

Gets the GObject.GType of self's Gio.TlsClientConnection implementation.

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.TlsDatabase used to verify TLS connections.

New in version 2.30.

get_dtls_client_connection_type()[source]
Returns:

the GObject.GType of self’s Gio.DtlsClientConnection implementation, or GObject.TYPE_INVALID if this backend doesn’t support DTLS.

Return type:

GObject.GType

Gets the GObject.GType of self’s Gio.DtlsClientConnection implementation.

New in version 2.48.

get_dtls_server_connection_type()[source]
Returns:

the GObject.GType of self’s Gio.DtlsServerConnection implementation, or GObject.TYPE_INVALID if this backend doesn’t support DTLS.

Return type:

GObject.GType

Gets the GObject.GType of self’s Gio.DtlsServerConnection implementation.

New in version 2.48.

get_file_database_type()[source]
Returns:

the GObject.GType of backend’s Gio.TlsFileDatabase implementation.

Return type:

GObject.GType

Gets the GObject.GType of self's Gio.TlsFileDatabase implementation.

New in version 2.30.

get_server_connection_type()[source]
Returns:

the GObject.GType of self's Gio.TlsServerConnection implementation.

Return type:

GObject.GType

Gets the GObject.GType of self's Gio.TlsServerConnection implementation.

New in version 2.28.

set_default_database(database)[source]
Parameters:

database (Gio.TlsDatabase or None) – the Gio.TlsDatabase

Set the default Gio.TlsDatabase used 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 None default 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 False for 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.TlsDatabase used 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 False for the default Gio.TlsBackend, it means no “real” TLS backend is available.

New in version 2.28.