We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb7413 commit d9c6d90Copy full SHA for d9c6d90
src/main/java/com/danubetech/keyformats/jose/JWK.java
@@ -1,7 +1,10 @@
1
package com.danubetech.keyformats.jose;
2
3
+import com.fasterxml.jackson.databind.ObjectMapper;
4
import org.apache.commons.codec.binary.Base64;
5
6
+import java.util.Map;
7
+
8
public class JWK {
9
private String kid;
10
private String use;
@@ -14,6 +17,12 @@ public class JWK {
14
17
public JWK() {
15
18
}
16
19
20
+ private static final ObjectMapper objectMapper = new ObjectMapper();
21
22
+ public static JWK parse(Map<String, Object> json) {
23
+ return objectMapper.convertValue(json, JWK.class);
24
+ }
25
26
public String getKid() {
27
return kid;
28
0 commit comments