Package com.jumio.sdk.kyx
Class JumioClient
java.lang.Object
com.jumio.sdk.kyx.JumioClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
static interface
static interface
static interface
static interface
-
Constructor Summary
ConstructorsConstructorDescriptionJumioClient
(DataCenter dataCenter, BiFunction<org.springframework.http.client.ClientHttpRequestFactory, com.fasterxml.jackson.databind.ObjectMapper, org.springframework.web.client.RestTemplate> restTemplateFactory, org.springframework.http.client.ClientHttpRequestFactory restTemplateClientFactory, Function<org.springframework.web.client.RestTemplate, ApiAuthenticator> apiAuthenticatorProvider, String userAgent) -
Method Summary
Modifier and TypeMethodDescriptionaddNewWorkflowToExistingAccount
(FluentBuilderWorkflow<T> fluentBuilderWorkflow, UUID accountId) static JumioClient.BuilderStep1
builder()
void
Can be called optionally called to fetch the authentication credentials.com.fasterxml.jackson.databind.ObjectMapper
org.springframework.web.client.RestTemplate
initiateNewAccount
(FluentBuilderWorkflow<T> fluentBuilderWorkflow) static JumioClient
retrieveData
(CallbackRequestBody callbackRequestBody) retrieveData
(UUID accountId, UUID workflowExecutionId)
-
Constructor Details
-
JumioClient
public JumioClient(DataCenter dataCenter, BiFunction<org.springframework.http.client.ClientHttpRequestFactory, com.fasterxml.jackson.databind.ObjectMapper, org.springframework.web.client.RestTemplate> restTemplateFactory, org.springframework.http.client.ClientHttpRequestFactory restTemplateClientFactory, Function<org.springframework.web.client.RestTemplate, ApiAuthenticator> apiAuthenticatorProvider, String userAgent)
-
-
Method Details
-
builder
-
mockClient
-
getDataCenter
-
getSystemStatus
-
ensureAuthenticated
public void ensureAuthenticated()Can be called optionally called to fetch the authentication credentials. With oauth2 this will result in a network call (if not cached already). With base authentication network call will not be made. This method is implicitly called before every -
getApiAuthenticator
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
initiateNewAccount
public <T> FluentBuilderContainer.CustomerReferenceBuilderStep<T> initiateNewAccount(FluentBuilderWorkflow<T> fluentBuilderWorkflow) -
addNewWorkflowToExistingAccount
public <T> FluentBuilderContainer.CustomerReferenceBuilderStep<T> addNewWorkflowToExistingAccount(FluentBuilderWorkflow<T> fluentBuilderWorkflow, UUID accountId) -
getUserAgent
- Returns:
- the user agent to be used with calls
-
getAccountApi
-
getApiWorkflowExecutionsApi
-
getApiPartsApi
-
getRetrievalApi
-
getStatusApi
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate() -
retrieveData
-
retrieveData
-