Skip to content

RFC 8785 JSON Canonicalization Scheme (JCS) specification in Java with Jakarta JSON

License

Notifications You must be signed in to change notification settings

filip26/titanium-jcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanium JCS

An implementation of the RFC 8785 JSON Canonicalization Scheme (JCS) specification in Java, utilizing Jakarta JSON Processing.

Java 8 CI Codacy Badge Codacy Badge Maven Central javadoc License

Formerly part of Titanium JSON-LD

Example

// The canonical version is written to a provided Writer.
JsonCanonicalizer.canonize(JsonValue, Writer);

Installation

Maven

<dependency>
    <groupId>com.apicatalog</groupId>
    <artifactId>titanium-jcs</artifactId>
    <version>1.0.0</version>
</dependency>

Ensure that the JSON-P provider is added to the classpath if it is not already present.

<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>jakarta.json</artifactId>
    <version>2.0.1</version>
</dependency>

Gradle

implementation("com.apicatalog:titanium-jcs:1.0.0")
implementation("org.glassfish:jakarta.json:2.0.1")

Contributing

All PR's welcome!

Building

Fork and clone the project repository.

> cd titanium-jcs
> mvn package

Resources