Uses of Class
org.keycloak.validate.ValidatorConfig
Package
Description
-
Uses of ValidatorConfig in org.keycloak.organization.validator
Modifier and TypeMethodDescriptionprotected void
OrganizationMemberValidator.doValidate
(Object value, String inputHint, ValidationContext context, ValidatorConfig config) protected boolean
OrganizationMemberValidator.skipValidation
(Object value, ValidatorConfig config) -
Uses of ValidatorConfig in org.keycloak.userprofile
ModifierConstructorDescriptionAttributeValidatorMetadata
(String validatorId, ValidatorConfig validatorConfig) -
Uses of ValidatorConfig in org.keycloak.userprofile.validator
Modifier and TypeMethodDescriptionstatic ValidatorConfig
BlankAttributeValidator.createConfig
(String errorMessage, boolean failOnNull) Create config for this validator to get customized error messageModifier and TypeMethodDescriptionprotected void
PersonNameProhibitedCharactersValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
UsernameProhibitedCharactersValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected String
UsernameIDNHomographValidator.getErrorMessageKey
(String inputHint, ValidatorConfig config) AttributeRequiredByMetadataValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) BlankAttributeValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) BrokeringFederatedUsernameHasValueValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) DuplicateEmailValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) DuplicateUsernameValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) EmailExistsAsUsernameValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) ImmutableAttributeValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) MultiValueValidator.validate
(Object value, String inputHint, ValidationContext context, ValidatorConfig config) ReadOnlyAttributeUnchangedValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) RegistrationEmailAsUsernameEmailValueValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) RegistrationEmailAsUsernameUsernameValueValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) RegistrationUsernameExistsValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) UsernameHasValueValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) UsernameIDNHomographValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) UsernameMutationValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) MultiValueValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) -
Uses of ValidatorConfig in org.keycloak.validate
Modifier and TypeFieldDescriptionstatic final ValidatorConfig
ValidatorConfig.EMPTY
An emptyValidatorConfig
.Modifier and TypeMethodDescriptionValidatorConfig.ValidatorConfigBuilder.build()
static ValidatorConfig
ValidatorConfig.configFromMap
(Map<String, Object> map) Static helper to create aValidatorConfig
from the givenmap
.Modifier and TypeMethodDescriptionValidatorConfig.ValidatorConfigBuilder.config
(ValidatorConfig values) Add all configurations from other configprotected abstract void
AbstractSimpleValidator.doValidate
(Object value, String inputHint, ValidationContext context, ValidatorConfig config) Validate type, format, range of the value etc.protected void
AbstractStringValidator.doValidate
(Object value, String inputHint, ValidationContext context, ValidatorConfig config) protected abstract void
AbstractStringValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) static boolean
ValidatorConfig.isEmpty
(ValidatorConfig config) protected boolean
AbstractSimpleValidator.isIgnoreEmptyValuesConfigured
(ValidatorConfig config) Default implementation only looks forAbstractSimpleValidator.IGNORE_EMPTY_VALUE
configuration option.protected abstract boolean
AbstractSimpleValidator.skipValidation
(Object value, ValidatorConfig config) Decide if validation of individual value should be skipped or not.protected boolean
AbstractStringValidator.skipValidation
(Object value, ValidatorConfig config) AbstractSimpleValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Validator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Validates the giveninput
with an additionalinputHint
andconfig
.default ValidationContext
Validator.validate
(Object input, String inputHint, ValidatorConfig config) Validates the giveninput
with an additionalinputHint
.default ValidationResult
ValidatorFactory.validateConfig
(KeycloakSession session, ValidatorConfig config) Validates the given validation config.Validators.validateConfig
(String id, ValidatorConfig config) static ValidationResult
Validators.validateConfig
(KeycloakSession session, String id, ValidatorConfig config) -
Uses of ValidatorConfig in org.keycloak.validate.validators
Modifier and TypeMethodDescriptionprotected abstract Number
AbstractNumberValidator.convert
(Object value, ValidatorConfig config) Convert input value to instance of Number supported by this validator.protected Number
DoubleValidator.convert
(Object value, ValidatorConfig config) protected Number
IntegerValidator.convert
(Object value, ValidatorConfig config) protected void
AbstractNumberValidator.doValidate
(Object value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
EmailValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
IsoDateValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
LengthValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
LocalDateValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
OptionsValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
PatternValidator.doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) protected void
UriValidator.doValidate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) protected abstract Number
AbstractNumberValidator.getMinMaxConfig
(ValidatorConfig config, String key) Get config value for min and max validation bound as a Number supported by this validatorprotected Number
DoubleValidator.getMinMaxConfig
(ValidatorConfig config, String key) protected Number
IntegerValidator.getMinMaxConfig
(ValidatorConfig config, String key) protected boolean
IsoDateValidator.isIgnoreEmptyValuesConfigured
(ValidatorConfig config) protected boolean
LocalDateValidator.isIgnoreEmptyValuesConfigured
(ValidatorConfig config) protected String
LengthValidator.selectErrorMessage
(ValidatorConfig config) Select error message depending on the allowed length interval bound configuration.protected String
AbstractNumberValidator.selectRangeErrorMessage
(ValidatorConfig config) Select error message depending on the allowed range interval bound configuration.protected boolean
AbstractNumberValidator.skipValidation
(Object value, ValidatorConfig config) protected boolean
UriValidator.skipValidation
(Object value, ValidatorConfig config) NotBlankValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) NotEmptyValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) ValidatorConfigValidator.validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) AbstractNumberValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) EmailValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) LengthValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) LocalDateValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) OptionsValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) PatternValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) protected boolean
NotBlankValidator.validateStringValue
(String value, String inputHint, ValidationContext context, ValidatorConfig config) ModifierConstructorDescriptionDoubleValidator
(ValidatorConfig config) IntegerValidator
(ValidatorConfig config)