Class AbstractSimpleValidator

java.lang.Object
org.keycloak.validate.AbstractSimpleValidator
All Implemented Interfaces:
Provider, ProviderFactory<Validator>, SimpleValidator, Validator, ValidatorFactory
Direct Known Subclasses:
AbstractNumberValidator, AbstractStringValidator, OrganizationMemberValidator, UriValidator

public abstract class AbstractSimpleValidator extends Object implements SimpleValidator
Base class for arbitrary value type validators. Functionality covered in this base class:
  • accepts supported type, collection of supported type.
  • behavior around null and empty values is controlled by IGNORE_EMPTY_VALUE configuration option which is boolean. Error should be produced for them by default, but they should be ignored if that option is true. Logic must be implemented in skipValidation(Object, ValidatorConfig).
Author:
Vlastimil Elias <velias@redhat.com>