SDKs

Java

The avetrust-java SDK — Java 21 client, published to Maven Central.

Install

Maven Central — add the dependency:

<dependency>
  <groupId>net.avetrust</groupId>
  <artifactId>avetrust-java</artifactId>
  <version>0.1.0</version>
</dependency>

Initialize

import net.avetrust.*;
import java.util.*;

AveTrust av = new AveTrust("sk_test_…"); // sandbox inferred from the key

Create, read, send

VerificationSession v = av.verifications.create(Map.of(
    "checks", List.of("DOCUMENT", "LIVENESS", "FACE_MATCH"),
    "callbackUrl", "https://your-app.example/kyc/webhook"
));
// v.id(), v.token()

Map<String, Object> result = av.verifications.result(v.id());

av.verifications.sendLink(v.id(), "EMAIL", "client@example.com",
    "https://verify.avetrust.net/s/" + v.token());

Verify a webhook

WebhookEvent event = av.webhooks.constructEvent(rawBody, signature, secret);
// signature = the X-AveTrust-Signature header

Next steps

On this page