Class AuthDomainBasic.Builder<B extends AuthDomainBasic.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
AuthDomainBasic

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

      public B setAuthCallback(AuthDomainBasicAuthCallback authCallback)
      The AuthDomainBasicAuthCallback.
      Parameters:
      authCallback - the value for the auth-callback property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setAuthData

      public B setAuthData(MemorySegment authData)
      The data to pass to the AuthDomainBasicAuthCallback.
      Parameters:
      authData - the value for the auth-data property
      Returns:
      the Builder instance is returned, to allow method chaining