Package com.onfido

Class Onfido.Builder

  • Enclosing class:
    Onfido

    public static final class Onfido.Builder
    extends Object
    The Builder for the Onfido object.
    • Field Detail

      • apiToken

        public String apiToken
        The Api token.
      • apiUrl

        public String apiUrl
        The Api url.
    • 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
      • 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