JWEObject jweObject = JWEObject.parse(jweString);
assertEquals(JWEAlgorithm.RSA_OAEP_256, jweObject.getHeader().getAlgorithm());
assertEquals(EncryptionMethod.A128CBC_HS256, jweObject.getHeader().getEncryptionMethod());
JWEDecrypter decrypter = new RSADecrypter(jwk.toRSAPrivateKey());
// Get bouncycastle for the test
Provider provider = BouncyCastleProviderSingleton.getInstance();
decrypter.setKeyEncryptionProvider(provider);
decrypter.setContentEncryptionProvider(provider);