" C1u+mNr0HZDzTuIYEZoDJJKPTEjlbVUjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMM\n" +
" j4QssxsodyamEwCW/POuZ6lcg5Ktz885hZo+L7tdEy8W9ViH0Pd\"]}";
Map<String,Object> stringObjectMap = JsonUtil.parseJson(x5cFromJws);
List<String> x5c = JsonHelp.getStringArray(stringObjectMap, "x5c");
X509Util xu = new X509Util();
X509Certificate x509Certificate = xu.fromBase64Der(x5c.get(0));
PublicKey publicKey = x509Certificate.getPublicKey();
PublicJsonWebKey jwk = PublicJsonWebKey.Factory.newPublicJwk(publicKey);
List<X509Certificate> chain = new ArrayList<X509Certificate>();
for (String s : x5c)
{
chain.add(xu.fromBase64Der(s));
}
jwk.setCertificateChain(chain);
PublicJsonWebKey parsedJwk = PublicJsonWebKey.Factory.newPublicJwk(jwk.toJson());