TlsInteraction.askPasswordAsync

Run asynchronous interaction to ask the user for a password. In general, gio.tls_interaction.TlsInteraction.invokeAskPassword should be used instead of this function.

Derived subclasses usually implement a password prompt, although they may also choose to provide a password from elsewhere. The password value will be filled in and then callback will be called. Alternatively the user may abort this password request, which will usually abort the TLS connection.

If the interaction is cancelled by the cancellation object, or by the user then gio.types.TlsInteractionResult.Failed will be returned with an error that contains a gio.types.IOErrorEnum.Cancelled error code. Certain implementations may not support immediate cancellation.

Certain implementations may not support immediate cancellation.

Parameters

password gio.tls_password.TlsPassword

a #GTlsPassword object

cancellable gio.cancellable.Cancellable

an optional #GCancellable cancellation object

callback gio.types.AsyncReadyCallback

will be called when the interaction completes