GTlsInteractionClass

The class for #GTlsInteraction. 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.types.TlsInteractionResult.Failed and the error should be set with a domain of G_IO_ERROR and code of gio.types.IOErrorEnum.Cancelled.

Members

Variables

askPassword
GTlsInteractionResult function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GError** _err) askPassword;

ask for a password synchronously. If the implementation returns gio.types.TlsInteractionResult.Handled, then the password argument should have been filled in by using gio.tls_password.TlsPassword.setValue or a similar function.

askPasswordAsync
void function(GTlsInteraction* interaction, GTlsPassword* password, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) askPasswordAsync;

ask for a password asynchronously.

askPasswordFinish
GTlsInteractionResult function(GTlsInteraction* interaction, GAsyncResult* result, GError** _err) askPasswordFinish;

complete operation to ask for a password asynchronously. If the implementation returns gio.types.TlsInteractionResult.Handled, then the password argument of the async method should have been filled in by using gio.tls_password.TlsPassword.setValue or a similar function.

padding
void*[21] padding;
parentClass
GObjectClass parentClass;
requestCertificate
GTlsInteractionResult function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GError** _err) requestCertificate;

ask for a certificate synchronously. If the implementation returns gio.types.TlsInteractionResult.Handled, then the connection argument should have been filled in by using gio.tls_connection.TlsConnection.setCertificate.

requestCertificateAsync
void function(GTlsInteraction* interaction, GTlsConnection* connection, GTlsCertificateRequestFlags flags, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) requestCertificateAsync;

ask for a certificate asynchronously.

requestCertificateFinish
GTlsInteractionResult function(GTlsInteraction* interaction, GAsyncResult* result, GError** _err) requestCertificateFinish;

complete operation to ask for a certificate asynchronously. If the implementation returns gio.types.TlsInteractionResult.Handled, then the connection argument of the async method should have been filled in by using gio.tls_connection.TlsConnection.setCertificate.