Skip to content

SDK for Java Applications to send data to Privata.ai API

License

Notifications You must be signed in to change notification settings

Privata-ai/privata-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java SDK for Privata.ai API

This SDK can be used in Java Applications to send audit data to the privata.ai API

Registering your Application

In order to register your application, you must create an account on privata.ai. When your account has been created, you can register your Application and select the sensitive data within your Database.

During this process, you will receive a Database Key and Database Secret which is used to authenticate and identify your Application and Database to our API.

You can store your DbKey and DbSecret as environmental variables in your java project. These are private credentials and must not be shared or made public.

Installation

Follow the instructions here: https://github.com/Privata-ai/privata-java-sdk/packages/156404

Test

For test purpose use the firebaseApiKeyLocal when instantiating FirebaseAuth.

Usage

To record a auditable transaction, you first instantiate the PrivataAudit Object using the URL of the API, the dbKey and dbSecret that you received during the On-Boarding process.

You can instantiate the object like this:

// add Privata Audit
privataAudit = new PrivataAudit(boolean sandbox, String apiUrl);
// OR
privataAudit = new PrivataAudit(boolean sandbox);
// OR
privataAudit = new PrivataAudit(String apiUrl);
// OR
privataAudit = new PrivataAudit();

Then initialize the app:

privataAudit.initialize(String dbKey, String dbSecret);

Then you send queries to api:

privataAudit.sendQueries(JsonArray queries);

When sending queries, the Tables and Columns that have been flagged as containing Personal Data during the On-boarding phase will be retrieved.

Note: Privata.ai saves table and column names in camelCase format.

About

SDK for Java Applications to send data to Privata.ai API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages