Package com.yoti.api.client
Class YotiClient
java.lang.Object
com.yoti.api.client.YotiClient
Entry point to interact with the Yoti Connect API.
It can be safely cached and shared even by multiple threads.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic YotiClient.Builderbuilder()Creates a newYotiClient.Builderto assist with the creation of the YotiClientcreateShareUrl(DynamicScenario dynamicScenario) Initiate a sharing process based on a dynamic scenario and policygetActivityDetails(String encryptedYotiToken) Get the activity details for a token.performAmlCheck(AmlProfile amlProfile) Request an AML check for the given profile.
-
Method Details
-
builder
Creates a newYotiClient.Builderto assist with the creation of the YotiClient- Returns:
- the new builder
-
getActivityDetails
Get the activity details for a token. Amongst others contains the user profile with the user's attributes you have selected in your application configuration on Yoti Portal. Note: encrypted tokens should only be used once. You should not invoke this method multiple times with the same token.- Parameters:
encryptedYotiToken- encrypted Yoti token (can be only decrypted with your application's private key). Note that this token must only be used once.- Returns:
- an
ActivityDetailsinstance holding the user's attributes - Throws:
ProfileException- aggregate exception signalling issues during the call
-
performAmlCheck
Request an AML check for the given profile.- Parameters:
amlProfile- Details of the profile to search for when performing the AML check- Returns:
- an
AmlProfilewith the results of the check - Throws:
AmlException- aggregate exception signalling issues during the call
-