Class AuthAPI.Builder

java.lang.Object
com.auth0.client.auth.AuthAPI.Builder
Enclosing class:
AuthAPI

public static class AuthAPI.Builder extends Object
Builder for AuthAPI API client instances.
  • Constructor Details

  • Method Details

    • withClientSecret

      public AuthAPI.Builder withClientSecret(String clientSecret)
      Configure the client with a client secret.
      Parameters:
      clientSecret - the client secret of your application.
      Returns:
      the builder instance.
    • withClientAssertionSigner

      public AuthAPI.Builder withClientAssertionSigner(ClientAssertionSigner clientAssertionSigner)
      Configure the client with a client assertion signer.
      Parameters:
      clientAssertionSigner - the client assertion signer to create the signed client assertion.
      Returns:
      the builder instance.
    • withHttpClient

      public AuthAPI.Builder withHttpClient(Auth0HttpClient httpClient)
      Configure the client with an Auth0HttpClient.
      Parameters:
      httpClient - the HTTP client to use when making requests.
      Returns:
      the builder instance.
      See Also:
    • build

      public AuthAPI build()
      Builds an AuthAPI instance using this builder's configuration.
      Returns:
      the configured AuthAPI instance.