Registry / auth / jose4j

jose4j

JSON →
library0.9.6javamavenunverified

A robust and easy to use open source implementation of JSON Web Token (JWT) and the JOSE specification suite (JWS, JWE, and JWK) written in Java.

<dependency> <groupId>org.bitbucket.b_c</groupId> <artifactId>jose4j</artifactId> <version>0.9.6</version> </dependency>
INSTALL
IMPORT
SIG · JOSE4J
J
jose4j
authjavav0.9.6
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.

JwtClaims
org.jose4j.jwt.JwtClaims

Parses a JWT without signature verification using JwtConsumer.

import org.jose4j.jwt.JwtClaims; import org.jose4j.jwt.consumer.JwtConsumer; import org.jose4j.jwt.consumer.JwtConsumerBuilder; public class JwtExample { public static void main(String[] args) throws Exception { String jwt = "eyJhbGciOiJub25lIn0.eyJzdWIiOiIxMjM0NTY3ODkwIn0."; JwtConsumer jwtConsumer = new JwtConsumerBuilder() .setSkipAllValidators() .setDisableRequireSignature() .setSkipSignatureVerification() .build(); JwtClaims claims = jwtConsumer.processToClaims(jwt); System.out.println("Subject: " + claims.getSubject()); } }
Debug
Known issues
breakingVersion 0.9.6 may have known vulnerabilities; check for newer versions.
fix
Upgrade to the latest version (e.g., 0.9.7 or later) to address security issues.
affects: <0.9.7
Upgrade
Version history
0.9.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
jose4j — mvn dependency:get jose4j · libregistry