Class PingOneEnvironmentValidator

    • Constructor Detail

      • PingOneEnvironmentValidator

        public PingOneEnvironmentValidator()
    • Method Detail

      • validate

        public void validate​(Field field)
                      throws ValidationException
        Checks if the environment specified in the field exists within the PingOne connection. The respective IDs are extracted from the field value and a request to obtain the environment lists is made to the configured connection.
        Specified by:
        validate in interface FieldValidator
        Parameters:
        field - the field (name and value) to validate.
        Throws:
        ValidationException - if the configured connection or environment does not exist, the gateway credential is invalid, or the PingOne API request fails
      • isExternalValidator

        public boolean isExternalValidator()
        Description copied from interface: FieldValidator
        This method should be overridden if the validator implementation relies on an external resource to perform validation. External validators are skipped if the X-BypassExternalValidation header is set to true in the Admin API request. Defaults to false.
        Specified by:
        isExternalValidator in interface FieldValidator
        Returns:
        if this validator relies on an external resource