I am able to create JWE as per https://bitbucket.org/b_c/jose4j/wiki/JWT%20Examples. Problem: Unable to create JWE (EC type as mentioned below) using json web key.
Requirement: Create & Verify below type of JWE
"typ": "JWT",
"alg": "ECDH-ES+A256KW",
"enc": "A128CBC-HS256",
I want to avoid EcJwkGenerator.generateJwk(EllipticCurves.P256);
EllipticCurveJsonWebKey senderJwk = EcJwkGenerator.generateJwk(EllipticCurves.P256);
Can I create EllipticCurveJsonWebKey from the json web key?
Here is the json web key:
{
"kty":"EC",
"d":"648B3L4cIM8oMDPshuo3jeV5nd8XjMp3bVDjMQgXqhE",
"use":"enc",
"crv":"P-256",
"x":"w_UdBacxbKLLMbdvFaHWRK-O-GdnaBkRPtPaCQWcV44",
"y":"tHYH0m2uHIFNotcTJxwDLyykUtVHHd8XSXlFwyxJXNQ"
}