Top "Jose4j" questions

The jose4j library is an open source (Apache 2.0) implementation of JWT and the JOSE specification suite.

Parser exception in JWT when encryption and signing is enabled

I'm new to JWT, learning through standalone code to understand JWT API's. Below code sign and encrypt JWT token from …

java json jwt jose4j
How to make HMAC_SHA256 key from secret string to use it with JWT in jose4j?

I want to produce JWTs and sign them with HMAC_SHA256. For that task I must use jose4j. I …

java encryption jwt jose4j
How do I decode a JWT token using an RSA public key in PEM format?

My Java application is receiving a JWT. I have the public key in PEM format: -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0…

java oauth-2.0 jwt x509 jose4j
How to decrypt JWE(Json Web Encryption) data using private key in java

I have a private key similar to below e.g. -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDGBRdsiDqKPGyH gOpzxmSU2EQkm+zYZLvlPlwkwyfFWLndFLZ3saxJS+…

java encryption nimbus jose4j jwe
How can I get Claims from a JWT?

I need to extract claims from a JWT. It seems that this should be a no-brainer. It was signed, from …

java jwt jose4j
Verification key for jose4j JwtConsumer

I am using jose4j to validate and process a JWT. The JWT looks like the following and it passes …

java jwt jose4j