Package com.idanalyzer
Class IDAnalyzerClient
java.lang.Object
com.idanalyzer.IDAnalyzerClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AccountAccount information service.final AMLAML / PEP / sanctions screening service.final BiometricBiometric face & liveness verification service.final ContractContract generation & template management service.final DocupassDocuPass remote verification & e-signature link management service.final ProfileApiServer-side KYC profile management service.final ScannerDocument scanning & ID verification service.final TransactionTransaction history, decisions, vault assets and export service.final WebhookWebhook delivery log management service. -
Constructor Summary
ConstructorsConstructorDescriptionIDAnalyzerClient(String apiKey) Creates a client; region is read fromIDANALYZER_REGION(default "us").IDAnalyzerClient(String apiKey, String region) Creates a client for an explicit region. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringparseInput(String input, boolean allowCache) Accepts a file path, base64 string, URL, or (when allowCache) a "ref:" cache reference, and returns the value to send to the API.setBaseUrl(String baseUrl) Override the API base URL entirely (e.g.
-
Field Details
-
scanner
Document scanning & ID verification service. -
biometric
Biometric face & liveness verification service. -
aml
AML / PEP / sanctions screening service. -
contract
Contract generation & template management service. -
transaction
Transaction history, decisions, vault assets and export service. -
docupass
DocuPass remote verification & e-signature link management service. -
profile
Server-side KYC profile management service. -
webhook
Webhook delivery log management service. -
account
Account information service.
-
-
Constructor Details
-
IDAnalyzerClient
Creates a client; region is read fromIDANALYZER_REGION(default "us").- Parameters:
apiKey- API key; falls back to theIDANALYZER_KEYenvironment variable.- Throws:
InvalidArgumentException- if no API key is supplied or resolvable from the environment.
-
IDAnalyzerClient
Creates a client for an explicit region.- Parameters:
apiKey- API key; falls back to theIDANALYZER_KEYenvironment variable.region- "us" or "eu"; if null, falls back toIDANALYZER_REGION(default "us").- Throws:
InvalidArgumentException- if no API key is supplied or resolvable, or the region is not "us"/"eu".
-
-
Method Details
-
setBaseUrl
Override the API base URL entirely (e.g. for an on-premise ID Fort host).- Parameters:
baseUrl- the base URL to use for all requests; a trailing slash is stripped.- Returns:
- this client, for chaining.
-
parseInput
Accepts a file path, base64 string, URL, or (when allowCache) a "ref:" cache reference, and returns the value to send to the API.- Parameters:
input- a local file path, a base64-encoded image, an http(s) URL, or a "ref:" cache reference.allowCache- whether a "ref:" cache reference is accepted and passed through unchanged.- Returns:
- the value to send to the API: the URL/reference as-is, or the base64 encoding of a local file.
- Throws:
InvalidArgumentException- if a local file cannot be read, or the input is neither a readable file, a URL, a cache reference, nor a long-enough base64 string.
-