Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

timo-reymann/enhanced-diagnostics-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enhanced-diagnostics-java

Java library with batteries included for enhanced-diagnostics npm package

Dependencies (already included)

  • Jackson ObjectMapper: Parse json to java objects
  • SLF4J: Error logging

Usage

Step Code
Create public and private key You can do this using openssl cli or CryptoUtilitypackaged with the lib
Get private key into memory as string e. g. EncryptedReport encryptedReport = new EncryptedReport(encryptedChunks) encryptedChunks is the json array parsed to List<string>
Decrypt data and get report data Report decrypt = encryptedReport.decrypt(privateKey, objectMapper)

Thats it. Now you can process your report data.

Add to your dependencies

<dependency>
    <groupId>com.github.timo-reymann</groupId>
    <artifactId>enhanced-diagnostics-java</artifactId>
    <version>1.0.0</version>
</dependency>

About

Java library with batteries included for enhanced-diagnostics npm package

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages