### Question:
JWK { public String getAlgorithm() { return algorithm; }  String getKeyId(); void setKeyId(String keyId); String getKeyType(); void setKeyType(String keyType); String getAlgorithm(); void setAlgorithm(String algorithm); String getPublicKeyUse(); void setPublicKeyUse(String publicKeyUse); @JsonAnyGetter Map<String, Object> getOtherClaims(); @JsonAnySetter void setOtherClaims(String name, Object value); static final String KEY_ID; static final String KEY_TYPE; static final String ALGORITHM; static final String PUBLIC_KEY_USE; }### Answer:
@Test public void parse() { String jwkJson = "{" + " \"kty\": \"RSA\"," + " \"alg\": \"RS256\"," + " \"use\": \"sig\"," + " \"kid\": \"3121adaa80ace09f89d80899d4a5dc4ce33d0747\"," + " \"n\": \"soFDjoZ5mQ8XAA7reQAFg90inKAHk0DXMTizo4JuOsgzUbhcplIeZ7ks83hsEjm8mP8lUVaHMPMAHEIp3gu6Xxsg-s73ofx1dtt_Fo7aj8j383MFQGl8-FvixTVobNeGeC0XBBQjN8lEl-lIwOa4ZoERNAShplTej0ntDp7TQm0=\"," + " \"e\": \"AQAB\"" + " }"; PublicKey key = JWKParser.create().parse(jwkJson).toPublicKey(); assertEquals("RSA", key.getAlgorithm()); assertEquals("X.509", key.getFormat()); }