The "A128CBC-HS256" encryption method is not supported by the JWE encrypter

Issue #190 resolved
Former user created an issue

Hi Vladimir, I am using 4.23 version of the nimbus jose but getting below error while using JWE:

JWEObject jweObject = new JWEObject(new JWEHeader.Builder(JWEAlgorithm.A128KW, EncryptionMethod.A128CBC_HS256).contentType("JWT").build(), new Payload(signedJWT));

**The "A128KW" algorithm is not supported by the JWE encrypter: Supported algorithms: [dir] (com.nimbusds.jose.JOSEException) com.nimbusds.jose.JWEObject:319 (null)

The "A128CBC-HS256" encryption method is not supported by the JWE encrypter: Supported methods: [A128GCM] (com.nimbusds.jose.JOSEException) com.nimbusds.jose.JWEObject:325 (null) **

Can you please help?

Comments (2)

  1. Log in to comment