public static boolean validateRegistrationProfile(RegistrationProfile registrationProfile) { boolean status = true; if (registrationProfile.getGrantType() == null) { status = false; log.warn( "Required parameter 'grant-type' is missing for initiating Dynamic-Client " + "registration for webapp : " + registrationProfile.getClientName()); } if (registrationProfile.getTokenScope() == null) { status = false; log.warn( "Required parameter 'token-scope' is missing for initiating Dynamic-Client " + "registration for webapp : " + registrationProfile.getClientName()); } return status; }