Package veryfi

Class VeryfiClientFactory

java.lang.Object
veryfi.VeryfiClientFactory

public final class VeryfiClientFactory extends Object
Factory for creating instances of Client.
  • Constructor Details

    • VeryfiClientFactory

      private VeryfiClientFactory()
  • Method Details

    • createClient

      public static Client createClient(String clientId, String clientSecret, String username, String apiKey)
      Creates an instance of Client.
      Parameters:
      clientId - the String provided by Veryfi.
      clientSecret - the String provided by Veryfi.
      username - the String provided by Veryfi.
      apiKey - the String provided by Veryfi.
      Returns:
      the new instance with default api version (8).
    • createClient

      public static Client createClient(String clientId, String clientSecret, String username, String apiKey, int apiVersion)
      Creates an instance of Client.
      Parameters:
      clientId - the String provided by Veryfi.
      clientSecret - the String provided by Veryfi.
      username - the String provided by Veryfi.
      apiKey - the String provided by Veryfi.
      apiVersion - the {link int} api version to use Veryfi.
      Returns:
      the new instance with custom api version.