Skip to content

Commit

Permalink
EPA-158: Improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva committed Oct 18, 2024
1 parent de1e3b0 commit c0ffee6
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<JWK> {

public JWKDeserializer(Class<?> vc) {
super(vc);
}

@Override
public JWK deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
throws IOException {

Map<String, Object> map =
jsonParser.getCodec().readValue(jsonParser, new TypeReference<Map<String, Object>>() {});
try {
return JWK.parse(map);
} catch (ParseException e) {
throw new JsonParseException(jsonParser, "failed to parse JWK", e);
}
}
}
}

0 comments on commit c0ffee6

Please sign in to comment.