Class AuthBasic

All Implemented Interfaces:
Proxy

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

HTTP "Basic" authentication.

Sessions support this by default; if you want to disable support for it, call Session.removeFeatureByType(Type), passing SOUP_TYPE_AUTH_BASIC.

  • Constructor Details

    • AuthBasic

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

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

    • getType

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

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

      protected AuthBasic 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
    • builder

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