The library provides utilities for reading and creating JWTs used by the NATS server.
API Dependencies
group
artifact
version
io.nats.nkeys
core-jdk<17/21/25>
3.0.4
io.nats
jnats-json-jdk<17/21/25>
3.0.5
JDK Version
This project uses Java 8 Language Level api, but builds jars compiled with and targeted for Java 8, 17, 21 and 25.
It creates different artifacts for each. All have the same group id io.nats and the same version but have different artifact names.
Java Target Level
Artifact Id
Maven Central
17
jwt-utils-jdk17
21
jwt-utils-jdk21
25
jwt-utils-jdk25
Dependency Management
The NATS client is available in the Maven central repository,
and can be imported as a standard dependency in your build.gradle or pom.xml file,
The examples shown use the Jdk 8 version. To use other versions, change the artifact id.
Java JWT Utilities Library
The library provides utilities for reading and creating JWTs used by the NATS server.
API Dependencies
io.nats.nkeyscore-jdk<17/21/25>3.0.4io.natsjnats-json-jdk<17/21/25>3.0.5JDK Version
This project uses Java 8 Language Level api, but builds jars compiled with and targeted for Java 8, 17, 21 and 25. It creates different artifacts for each. All have the same group id
io.natsand the same version but have different artifact names.jwt-utils-jdk17jwt-utils-jdk21jwt-utils-jdk25Dependency Management
The NATS client is available in the Maven central repository, and can be imported as a standard dependency in your
build.gradleorpom.xmlfile, The examples shown use the Jdk 8 version. To use other versions, change the artifact id.Gradle
If you need the latest and greatest before Maven central updates, you can use:
If you need a snapshot version, you must add the url for the snapshots and change your dependency.
Maven
If you need the absolute latest, before it propagates to maven central, you can use the repository:
If you need a snapshot version, you must enable snapshots and change your dependency.
License
Unless otherwise noted, the NATS source files are distributed under the Apache Version 2.0 license found in the LICENSE file.