Package com.onfido
Class Onfido.Builder
- java.lang.Object
-
- com.onfido.Onfido.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Onfido.BuilderapiToken(String apiToken)Api token attribute.Onfidobuild()Builds the Onfido object instance.Onfido.BuilderclientInterceptor(okhttp3.Interceptor interceptor)Deprecated.UseclientInterceptors(List)instead.Onfido.BuilderclientInterceptors(List<okhttp3.Interceptor> interceptors)Interceptors attribute.Onfido.BuilderclientProxy(Proxy proxy)The proxy that will be used to configure the HttpClient withOnfido.BuilderclientReadTimeout(java.time.Duration readTimeout)The read timeout duration that will be used to configure the HttpClientOnfido.BuilderregionCA()Sets the object to use the Canada region base URL.Onfido.BuilderregionEU()Sets the object to use the EU region base URL.Onfido.BuilderregionUS()Sets the object to use the US region base URL.Onfido.BuildersslSocketFactory(SSLSocketFactory sslSocketFactory, X509TrustManager x509TrustManager)The ssl socket factory and the X509 trust manager that will be used to configure the HttpClientOnfido.BuilderunknownApiUrl(String url)Sets the object to use the specified URL for the api.
-
-
-
Method Detail
-
build
public Onfido build()
Builds the Onfido object instance.- Returns:
- the Onfido
-
apiToken
public Onfido.Builder apiToken(String apiToken)
Api token attribute.- Parameters:
apiToken- the api token- Returns:
- the builder
-
clientInterceptor
@Deprecated public Onfido.Builder clientInterceptor(okhttp3.Interceptor interceptor)
Deprecated.UseclientInterceptors(List)instead.Interceptor attribute.- Parameters:
interceptor- the HTTP interceptor- Returns:
- the builder
-
clientInterceptors
public Onfido.Builder clientInterceptors(List<okhttp3.Interceptor> interceptors)
Interceptors attribute.- Parameters:
interceptors- the HTTP interceptors that will be used to configure the HttpClient- Returns:
- the builder
-
clientReadTimeout
public Onfido.Builder clientReadTimeout(java.time.Duration readTimeout)
The read timeout duration that will be used to configure the HttpClient- Parameters:
readTimeout- the readTimeout- Returns:
- the builder
-
clientProxy
public Onfido.Builder clientProxy(Proxy proxy)
The proxy that will be used to configure the HttpClient with- Parameters:
proxy- the proxy- Returns:
- the proxy
-
regionEU
public Onfido.Builder regionEU()
Sets the object to use the EU region base URL.- Returns:
- the builder
-
regionUS
public Onfido.Builder regionUS()
Sets the object to use the US region base URL.- Returns:
- the builder
-
regionCA
public Onfido.Builder regionCA()
Sets the object to use the Canada region base URL.- Returns:
- the builder
-
unknownApiUrl
public Onfido.Builder unknownApiUrl(String url)
Sets the object to use the specified URL for the api. Used for testing.- Parameters:
url- the url- Returns:
- the builder
-
sslSocketFactory
public Onfido.Builder sslSocketFactory(SSLSocketFactory sslSocketFactory, X509TrustManager x509TrustManager)
The ssl socket factory and the X509 trust manager that will be used to configure the HttpClient- Parameters:
sslSocketFactory- the ssl socket factoryx509TrustManager- the X509 trust manager - a system one will be used on a null value- Returns:
- the builder
-
-