talira

Create and verify JSON Web Tokens and JSON Web Keys on the JVM and Android

open sourceApache-2.0free

JJWT (Java JWT) aims to be the easiest library for creating and verifying JSON Web Tokens (JWTs) and JSON Web Keys (JWKs) on the JVM and Android. It's a pure Java implementation of the JOSE RFCs: JWT (RFC 7519), JWS signatures, JWE encryption, JWK keys and thumbprints, JWA algorithms, unencoded payloads and Edwards-curve algorithms. Some algorithms need Java 11 or 15, or a JCA provider such as Bouncy Castle.

Problems it solves

  • sign and verify JWTs in a Java service
  • issue access tokens from a Spring application
  • encrypt a JWT with JWE in Java

Features

  • create and parse JWTs
  • JWS signatures and JWE encryption
  • JSON Web Keys and thumbprints
  • JVM and Android

Alternatives

The same job

These do what JJWT does.

  1. Nimbus JOSE + JWT Java and Android library for JOSE and JSON Web Tokens, covering every standard JWS and JWE algorithm
  2. Spring Security Authentication and access control for Spring and Java applications

Compare JJWT with the top 3