Registry / auth / jjwt-api

jjwt-api

JSON →
library0.13.0javamavenunverified

Provides the API for creating and verifying JSON Web Tokens (JWT) on the JVM and Android.

<dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.13.0</version> </dependency>
INSTALL
IMPORT
SIG · JJWT-API
J
jjwt-api
authjavav0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Jwts
io.jsonwebtoken.Jwts

Creates a signed JWT with a subject claim using JJWT.

import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.security.Keys; import java.security.Key; public class Example { public static void main(String[] args) { Key key = Keys.secretKeyFor(SignatureAlgorithm.HS256); String jws = Jwts.builder().setSubject("user123").signWith(key).compact(); System.out.println("JWT: " + jws); } }
Debug
Known issues
breakingJJWT 0.12.x introduced breaking changes in the API (e.g., Jwts.builder() now requires explicit key).
fix
Update code to use Keys.secretKeyFor() or Keys.pairFor() and pass the key to signWith().
affects: >=0.12.0
Upgrade
Version history
0.13.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
jjwt-api — mvn dependency:get jjwt-api · libregistry