Parse EllipticCurveJsonWebKey from string
Issue #88
closed
EllipticCurveJsonWebKey receiverJwk= EcJwkGenerator.generateJwk(EllipticCurves.P384,"BC", new SecureRandom());
String KeyFromServer= Base64.toBase64String(receiverJwk.getPublicKey().getEncoded());
assume the key is generated from server side and it is encoded to string..
and again we want key parese from string for validating Token in java application.
then how to parse EllipticCurveJsonWebKey from string
Comments (3)
-
repo owner -
repo owner see also http://stackoverflow.com/questions/36308611/get-ellipticcurvejsonwebkey-from-json-in-jose4j maybe for similar info
-
repo owner - changed status to closed
- Log in to comment
JWK is a nice format for this kind of thing. Serilize the JWK object to JSON and read that in on the other side. Something like: