Package org.gnome.gio
Class TlsInteraction.TlsInteractionClass
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeClass
org.gnome.gobject.GObject.ObjectClass
org.gnome.gio.TlsInteraction.TlsInteractionClass
- All Implemented Interfaces:
Proxy
- Enclosing class:
TlsInteraction
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
TlsInteractionResult.FAILED
and the error should be set with a domain of
G_IO_ERROR
and code of IOErrorEnum.CANCELLED
.
-
Constructor Summary
ConstructorDescriptionAllocate a new TlsInteractionClass.TlsInteractionClass
(Arena arena) Allocate a new TlsInteractionClass.TlsInteractionClass
(MemorySegment address) Create a TlsInteractionClass proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideAskPassword
(Arena arena, Method method) Override virtual methodask_password
.void
overrideAskPasswordAsync
(Arena arena, Method method) Override virtual methodask_password_async
.void
overrideAskPasswordFinish
(Arena arena, Method method) Override virtual methodask_password_finish
.void
overrideRequestCertificate
(Arena arena, Method method) Override virtual methodrequest_certificate
.void
overrideRequestCertificateAsync
(Arena arena, Method method) Override virtual methodrequest_certificate_async
.void
overrideRequestCertificateFinish
(Arena arena, Method method) Override virtual methodrequest_certificate_finish
.Methods inherited from class org.gnome.gobject.GObject.ObjectClass
findProperty, installProperties, installProperty, listProperties, overrideConstructed, overrideConstructor, overrideDispatchPropertiesChanged, overrideDispose, overrideFinalize, overrideGetProperty, overrideNotify, overrideProperty, overrideSetProperty, readFlags, readNConstructProperties, readNPspecs, readPdummy, readPspecs, writeFlags, writeNConstructProperties, writeNPspecs, writePdummy, writePspecs
Methods inherited from class org.gnome.gobject.TypeClass
addPrivate, adjustPrivateOffset, getInstancePrivateOffset, getPrivate, peek, peekParent, peekStatic, readGType, ref, unref, unrefUncached, writeGType
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TlsInteractionClass
Create a TlsInteractionClass proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
TlsInteractionClass
Allocate a new TlsInteractionClass.- Parameters:
arena
- to control the memory allocation scope
-
TlsInteractionClass
public TlsInteractionClass()Allocate a new TlsInteractionClass. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideAskPassword
-
overrideAskPasswordAsync
-
overrideAskPasswordFinish
-
overrideRequestCertificate
-
overrideRequestCertificateAsync
-
overrideRequestCertificateFinish
-