Available on Github:

For Maven Projects, you can add the dependency

<!-- data additions -->

Once you have added the dependency, you can instantiate the PrivataAudit class to the relevant part of your code:

// add Audit
PrivataAudit privataAudit = new PrivataAudit();

PrivataAudit can be instantiate with two optional arguments, you can specify sandbox option and/or an apiUrl .

Once you have an instance of the PrivataAudit, you need to initialize it with your credentials:

privataAudit.initialize(dbKey, sbSecret);

After initialization, you can start to send information to API. When a user accesses data on your application from your database, you can send it to API:


Details on the structure of the queries payload can be found here:

If you use Hibernate as your ORM, you can follow our guide for implementing our SDK here: