Package com.auth0.client.auth
Class AuthAPI.Builder
java.lang.Object
com.auth0.client.auth.AuthAPI.Builder
- Enclosing class:
- AuthAPI
Builder for
AuthAPI API client instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds anAuthAPIinstance using this builder's configuration.withClientAssertionSigner(ClientAssertionSigner clientAssertionSigner) Configure the client with a client assertion signer.withClientSecret(String clientSecret) Configure the client with a client secret.withHttpClient(Auth0HttpClient httpClient) Configure the client with anAuth0HttpClient.
-
Constructor Details
-
Builder
-
-
Method Details
-
withClientSecret
Configure the client with a client secret.- Parameters:
clientSecret- the client secret of your application.- Returns:
- the builder instance.
-
withClientAssertionSigner
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
Configure the client with anAuth0HttpClient.- Parameters:
httpClient- the HTTP client to use when making requests.- Returns:
- the builder instance.
- See Also:
-
build
Builds anAuthAPIinstance using this builder's configuration.- Returns:
- the configured
AuthAPIinstance.
-