Class TlsInteraction.TlsInteractionClass

All Implemented Interfaces:
Proxy
Enclosing class:
TlsInteraction

public static class TlsInteraction.TlsInteractionClass extends GObject.ObjectClass

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.

Since:
2.30
  • Constructor Details

    • TlsInteractionClass

      public TlsInteractionClass(MemorySegment address)
      Create a TlsInteractionClass proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • overrideAskPassword

      public void overrideAskPassword(Arena arena, @Nullable Method method)
      Override virtual method ask_password.
      Parameters:
      method - the method to invoke
    • overrideAskPasswordAsync

      public void overrideAskPasswordAsync(Arena arena, @Nullable Method method)
      Override virtual method ask_password_async.
      Parameters:
      method - the method to invoke
    • overrideAskPasswordFinish

      public void overrideAskPasswordFinish(Arena arena, @Nullable Method method)
      Override virtual method ask_password_finish.
      Parameters:
      method - the method to invoke
    • overrideRequestCertificate

      public void overrideRequestCertificate(Arena arena, @Nullable Method method)
      Override virtual method request_certificate.
      Parameters:
      method - the method to invoke
    • overrideRequestCertificateAsync

      public void overrideRequestCertificateAsync(Arena arena, @Nullable Method method)
      Override virtual method request_certificate_async.
      Parameters:
      method - the method to invoke
    • overrideRequestCertificateFinish

      public void overrideRequestCertificateFinish(Arena arena, @Nullable Method method)
      Override virtual method request_certificate_finish.
      Parameters:
      method - the method to invoke