We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bebad64 commit ed47e1dCopy full SHA for ed47e1d
1 file changed
src/main/java/org/oidc/msg/RegistrationRequest.java
@@ -6,6 +6,8 @@
6
import java.util.Map;
7
8
public class RegistrationRequest extends AbstractMessage {
9
+
10
+ public static final String DEFAULT_ENC_VALUE = "A128CBC-HS256";
11
12
{ // Set parameter requirements for message.
13
paramVerDefs.put("redirect_uris", ParameterVerification.REQUIRED_LIST_OF_STRINGS.getValue());
@@ -92,7 +94,7 @@ public boolean verify() throws InvalidClaimException {
92
94
String encParam = prefix + "_enc";
93
95
if (getClaims().containsKey(algParam)) {
96
if (!getClaims().containsKey(encParam)) {
- addClaim(encParam, "A128CBC-HS256");
97
+ addClaim(encParam, DEFAULT_ENC_VALUE);
98
}
99
100
if (getClaims().containsKey(encParam) && !getClaims().containsKey(algParam)) {
0 commit comments