Package com.onfido
Class Onfido.Builder
- java.lang.Object
-
- com.onfido.Onfido.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Onfido.BuilderapiToken(String apiToken)Api token attribute.Onfidobuild()Builds the Onfido object instance.Onfido.BuilderclientInterceptor(okhttp3.Interceptor interceptor)Interceptor attribute.Onfido.BuilderregionCA()Sets the object to use the Canada region base URL.Onfido.BuilderregionUS()Sets the object to use the US region base URL.Onfido.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
public Onfido.Builder clientInterceptor(okhttp3.Interceptor interceptor)
Interceptor attribute.- Parameters:
interceptor- the HTTP interceptor- 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
-
-