@Override
 public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model)
     throws ComponentValidationException {
   ConfigurationValidationHelper.check(model)
       .checkLong(Attributes.PRIORITY_PROPERTY, false)
       .checkBoolean(Attributes.ENABLED_PROPERTY, false)
       .checkBoolean(Attributes.ACTIVE_PROPERTY, false);
 }
  @Override
  public void validateConfiguration(KeycloakSession session, ComponentModel config)
      throws ComponentValidationException {
    ConfigurationValidationHelper.check(config)
        .checkBoolean(HOST_SENDING_REGISTRATION_REQUEST_MUST_MATCH_PROPERTY, true)
        .checkBoolean(CLIENT_URIS_MUST_MATCH_PROPERTY, true);

    TrustedHostClientRegistrationPolicy policy =
        new TrustedHostClientRegistrationPolicy(session, config);
    if (!policy.isHostMustMatch() && !policy.isClientUrisMustMatch()) {
      throw new ComponentValidationException(
          "At least one of hosts verification or client URIs validation must be enabled");
    }
  }