From c0ffee6c9188b1536e62bd5843f0165939c1ea8d Mon Sep 17 00:00:00 2001 From: Thomas Richner Date: Fri, 18 Oct 2024 11:17:49 +0200 Subject: [PATCH] EPA-158: Improve coverage --- .../util/ExtendedJWKSetDeserializer.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/ehealthid/src/main/java/com/oviva/ehealthid/util/ExtendedJWKSetDeserializer.java b/ehealthid/src/main/java/com/oviva/ehealthid/util/ExtendedJWKSetDeserializer.java index 5899905..4668ee2 100644 --- a/ehealthid/src/main/java/com/oviva/ehealthid/util/ExtendedJWKSetDeserializer.java +++ b/ehealthid/src/main/java/com/oviva/ehealthid/util/ExtendedJWKSetDeserializer.java @@ -52,24 +52,4 @@ private long parseLongField(JsonParser jsonParser, TreeNode node, String fieldNa .getCodec() .readValue(node.get(fieldName).traverse(jsonParser.getCodec()), Long.class); } - - public static class JWKDeserializer extends StdDeserializer { - - public JWKDeserializer(Class vc) { - super(vc); - } - - @Override - public JWK deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) - throws IOException { - - Map map = - jsonParser.getCodec().readValue(jsonParser, new TypeReference>() {}); - try { - return JWK.parse(map); - } catch (ParseException e) { - throw new JsonParseException(jsonParser, "failed to parse JWK", e); - } - } - } }