Class AuthNegotiate

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class AuthNegotiate extends Auth

HTTP-based GSS-Negotiate authentication, as defined by RFC 4559.

Sessions do not support this type by default; if you want to enable support for it, call Session.addFeatureByType(Type), passing SOUP_TYPE_AUTH_NEGOTIATE.

This auth type will only work if libsoup was compiled with GSSAPI support; you can check supported() to see if it was.

  • Constructor Details

    • AuthNegotiate

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

      public AuthNegotiate()
      Create a new AuthNegotiate.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the AuthNegotiate class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected AuthNegotiate asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Auth
      Returns:
      the instance as if it were its parent type
    • supported

      public static boolean supported()

      Indicates whether libsoup was built with GSSAPI support.

      If this is false, SOUP_TYPE_AUTH_NEGOTIATE will still be defined and can still be added to a Session, but libsoup will never attempt to actually use this auth type.

      Returns:
      true if supported otherwise false
    • builder

      public static AuthNegotiate.Builder<? extends AuthNegotiate.Builder> builder()
      A AuthNegotiate.Builder object constructs a AuthNegotiate with the specified properties. Use the various set...() methods to set properties, and finish construction with AuthNegotiate.Builder.build().
      Returns:
      the builder object