Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 955 Bytes

File metadata and controls

39 lines (25 loc) · 955 Bytes

Java reference

Prerequisites

sudo apt-get update -y
sudo apt-get install -y openjdk-17-jdk-headless maven

Setup & Build

Run from inside directory with pom.xml.

mvn clean compile

Running the sample

Run from inside directory with pom.xml.

mvn --quiet exec:java -Dexec.mainClass=io.dolby.streaming.selfsignjwt.Main

Additional Notes

Two sample implementations made with the two popular Java JWT signing libraries.

The other dependencies in sample are only used for helper work not easily achievable in base JDK.

  • com.google.code.gson - JSON deserialization of sample.json
  • com.fasterxml.jackson.core - Mapping strongly typed Class to Map. Used by both JWT libraries to add claims.