java.lang.Object
com.identisure.client.IdentisureClientBuilder
Fluent builder for
IdentisureClient.
Defaults to Environment.PRODUCTION and a freshly constructed
OkHttpClient unless overridden.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride the API base URL.build()Build the configuredIdentisureClient.environment(Environment env) Select a pre-configured environment.httpClient(okhttp3.OkHttpClient http) Inject a pre-configuredOkHttpClient.Timeout for each HTTP request, including reading the response body.Override the User-Agent header.
-
Constructor Details
-
IdentisureClientBuilder
-
-
Method Details
-
environment
Select a pre-configured environment. -
baseUrl
Override the API base URL. Takes precedence overenvironment(Environment). -
userAgent
Override the User-Agent header. -
timeout
Timeout for each HTTP request, including reading the response body. Must be positive. Default: 30 s. -
httpClient
Inject a pre-configuredOkHttpClient. -
build
Build the configuredIdentisureClient.
-