metadata.setRequestObjectURIs(requestURIs);
oidcFields.remove("request_uris");
}
if (jsonObject.containsKey("request_object_signing_alg")) {
metadata.setRequestObjectJWSAlg(new JWSAlgorithm(
JSONObjectUtils.getString(jsonObject, "request_object_signing_alg")));
oidcFields.remove("request_object_signing_alg");
}
if (jsonObject.containsKey("request_object_encryption_alg")) {
metadata.setRequestObjectJWEAlg(new JWEAlgorithm(
JSONObjectUtils.getString(jsonObject, "request_object_encryption_alg")));
oidcFields.remove("request_object_encryption_alg");
}
if (jsonObject.containsKey("request_object_encryption_enc")) {
metadata.setRequestObjectJWEEnc(new EncryptionMethod(
JSONObjectUtils.getString(jsonObject, "request_object_encryption_enc")));
oidcFields.remove("request_object_encryption_enc");
}
if (jsonObject.containsKey("token_endpoint_auth_signing_alg")) {
metadata.setTokenEndpointAuthJWSAlg(new JWSAlgorithm(
JSONObjectUtils.getString(jsonObject, "token_endpoint_auth_signing_alg")));
oidcFields.remove("token_endpoint_auth_signing_alg");
}
if (jsonObject.containsKey("id_token_signed_response_alg")) {
metadata.setIDTokenJWSAlg(new JWSAlgorithm(
JSONObjectUtils.getString(jsonObject, "id_token_signed_response_alg")));
oidcFields.remove("id_token_signed_response_alg");
}
if (jsonObject.containsKey("id_token_encrypted_response_alg")) {
metadata.setIDTokenJWEAlg(new JWEAlgorithm(
JSONObjectUtils.getString(jsonObject, "id_token_encrypted_response_alg")));
oidcFields.remove("id_token_encrypted_response_alg");
}
if (jsonObject.containsKey("id_token_encrypted_response_enc")) {
metadata.setIDTokenJWEEnc(new EncryptionMethod(
JSONObjectUtils.getString(jsonObject, "id_token_encrypted_response_enc")));
oidcFields.remove("id_token_encrypted_response_enc");
}
if (jsonObject.containsKey("userinfo_signed_response_alg")) {
metadata.setUserInfoJWSAlg(new JWSAlgorithm(
JSONObjectUtils.getString(jsonObject, "userinfo_signed_response_alg")));
oidcFields.remove("userinfo_signed_response_alg");
}