/** * Parses the optional key operations. * * @param o The JSON object to parse. Must not be {@code null}. * * @return The key operations, {@code null} if not specified. * * @throws ParseException If parsing failed. */ static Set<KeyOperation> parseKeyOperations(final JSONObject o) throws ParseException { if(o.containsKey("key_ops")) { return KeyOperation.parse(JSONObjectUtils.getStringList(o, "key_ops")); } else { return null; } }
header = header.contentType(JSONObjectUtils.getString(jsonObject, name)); } else if("crit".equals(name)) { header = header.criticalParams(new HashSet<>(JSONObjectUtils.getStringList(jsonObject, name))); } else { header = header.customParam(name, jsonObject.get(name));
builder.audience(singleAud); } else if (audValue instanceof List) { builder.audience(JSONObjectUtils.getStringList(json, AUDIENCE_CLAIM)); } else if (audValue == null) { builder.audience((String)null);
header = header.contentType(JSONObjectUtils.getString(jsonObject, name)); } else if("crit".equals(name)) { header = header.criticalParams(new HashSet<>(JSONObjectUtils.getStringList(jsonObject, name))); } else if("jku".equals(name)) { header = header.jwkURL(JSONObjectUtils.getURI(jsonObject, name));
header = header.contentType(JSONObjectUtils.getString(jsonObject, name)); } else if("crit".equals(name)) { header = header.criticalParams(new HashSet<>(JSONObjectUtils.getStringList(jsonObject, name))); } else if("jku".equals(name)) { header = header.jwkURL(JSONObjectUtils.getURI(jsonObject, name));