enhanced-diagnostics-java

Java library with batteries included for enhanced-diagnostics npm package

License

License

MIT
Categories

Categories

Java Languages
GroupId

GroupId

com.github.timo-reymann
ArtifactId

ArtifactId

enhanced-diagnostics-java
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

enhanced-diagnostics-java
Java library with batteries included for enhanced-diagnostics npm package
Project URL

Project URL

https://github.com/timo-reymann/enhanced-diagnostics-java
Source Code Management

Source Code Management

https://github.com/timo-reymann/enhanced-diagnostics-java/tree/master

Download enhanced-diagnostics-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.timo-reymann/enhanced-diagnostics-java/ -->
<dependency>
    <groupId>com.github.timo-reymann</groupId>
    <artifactId>enhanced-diagnostics-java</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.timo-reymann/enhanced-diagnostics-java/
implementation 'com.github.timo-reymann:enhanced-diagnostics-java:1.0.0'
// https://jarcasting.com/artifacts/com.github.timo-reymann/enhanced-diagnostics-java/
implementation ("com.github.timo-reymann:enhanced-diagnostics-java:1.0.0")
'com.github.timo-reymann:enhanced-diagnostics-java:jar:1.0.0'
<dependency org="com.github.timo-reymann" name="enhanced-diagnostics-java" rev="1.0.0">
  <artifact name="enhanced-diagnostics-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.timo-reymann', module='enhanced-diagnostics-java', version='1.0.0')
)
libraryDependencies += "com.github.timo-reymann" % "enhanced-diagnostics-java" % "1.0.0"
[com.github.timo-reymann/enhanced-diagnostics-java "1.0.0"]

Dependencies

compile (5)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.9.6
com.fasterxml.jackson.core : jackson-annotations jar 2.9.6
org.projectlombok : lombok jar 1.18.0
org.slf4j : slf4j-simple jar 1.7.25
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.9.6

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

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>

Versions

Version
1.0.0
0.0.2