Class SigningAlgorithmValidator

java.lang.Object
org.forgerock.openig.fapi.dcr.request.validator.SigningAlgorithmValidator
All Implemented Interfaces:
RegistrationRequestValidator

public class SigningAlgorithmValidator extends Object implements RegistrationRequestValidator
Validate that values for signing fields are a supported signing algorithm.

Some fields may be optional for certain types of request, therefore if a field in the registrationObjectSigningFieldNames collection is not found in the registration request then it is skipped rather than throwing an error. It is the job of the filter that implements the registration logic to reject requests with missing fields.

Financial-grade API Security Profile 1.0 - Part 2: Advanced section 8.6 states:

For JWS, both clients and authorization servers

  1. shall use PS256 or ES256 algorithms;
  2. should not use algorithms that use RSASSA-PKCS1-v1_5 (e.g. RS256); and
  3. shall not use none