Gio.TlsInteractionClass

Fields

Name

Type

Access

Description

ask_password

object

r

ask for a password synchronously. If the implementation returns Gio.TlsInteractionResult.HANDLED, then the password argument should have been filled in by using Gio.TlsPassword.set_value() or a similar function.

ask_password_async

object

r

ask for a password asynchronously.

ask_password_finish

object

r

complete operation to ask for a password asynchronously. If the implementation returns Gio.TlsInteractionResult.HANDLED, then the password argument of the async method should have been filled in by using Gio.TlsPassword.set_value() or a similar function.

padding

[object]

r

parent_class

GObject.ObjectClass

r

request_certificate

object

r

ask for a certificate synchronously. If the implementation returns Gio.TlsInteractionResult.HANDLED, then the connection argument should have been filled in by using Gio.TlsConnection.set_certificate().

request_certificate_async

object

r

ask for a certificate asynchronously.

request_certificate_finish

object

r

complete operation to ask for a certificate asynchronously. If the implementation returns Gio.TlsInteractionResult.HANDLED, then the connection argument of the async method should have been filled in by using Gio.TlsConnection.set_certificate().

Methods

None

Details

class Gio.TlsInteractionClass

The class for Gio.TlsInteraction. Derived classes implement the various virtual interaction methods to handle TLS interactions.

Derived classes can choose to implement whichever interactions methods they’d like to support by overriding those virtual methods in their class initialization function. If a derived class implements an async method, it must also implement the corresponding finish method.

The synchronous interaction methods should implement to display modal dialogs, and the asynchronous methods to display modeless dialogs.

If the user cancels an interaction, then the result should be Gio.TlsInteractionResult.FAILED and the error should be set with a domain of %G_IO_ERROR and code of Gio.IOErrorEnum.CANCELLED.

New in version 2.30.