Class AuthDomain.Builder<B extends AuthDomain.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
AuthDomainBasic.Builder, AuthDomainDigest.Builder
Enclosing class:
AuthDomain

public static class AuthDomain.Builder<B extends AuthDomain.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public AuthDomain build()
      Finish building the AuthDomain object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to AuthDomain.
      Overrides:
      build in class GObject.Builder<B extends AuthDomain.Builder<B>>
      Returns:
      a new instance of AuthDomain with the properties that were set in the Builder object.
    • setFilter

      public B setFilter(AuthDomainFilter filter)
      The AuthDomainFilter for the domain.
      Parameters:
      filter - the value for the filter property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFilterData

      public B setFilterData(MemorySegment filterData)
      Data to pass to the AuthDomainFilter.
      Parameters:
      filterData - the value for the filter-data property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setGenericAuthCallback

      public B setGenericAuthCallback(AuthDomainGenericAuthCallback genericAuthCallback)
      The AuthDomainGenericAuthCallback.
      Parameters:
      genericAuthCallback - the value for the generic-auth-callback property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setGenericAuthData

      public B setGenericAuthData(MemorySegment genericAuthData)
      The data to pass to the AuthDomainGenericAuthCallback.
      Parameters:
      genericAuthData - the value for the generic-auth-data property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setProxy

      public B setProxy(boolean proxy)
      Whether or not this is a proxy auth domain.
      Parameters:
      proxy - the value for the proxy property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setRealm

      public B setRealm(String realm)
      The realm of this auth domain.
      Parameters:
      realm - the value for the realm property
      Returns:
      the Builder instance is returned, to allow method chaining