Package org.keycloak.validate.validators
Class IsoDateValidator
java.lang.Object
org.keycloak.validate.AbstractSimpleValidator
org.keycloak.validate.AbstractStringValidator
org.keycloak.validate.validators.IsoDateValidator
- All Implemented Interfaces:
ConfiguredProvider
,Provider
,ProviderFactory<Validator>
,SimpleValidator
,Validator
,ValidatorFactory
A date validator that only takes into account the format associated with the current locale.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final IsoDateValidator
static final String
Fields inherited from class org.keycloak.validate.AbstractSimpleValidator
IGNORE_EMPTY_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doValidate
(String value, String inputHint, ValidationContext context, ValidatorConfig config) getId()
protected boolean
Default implementation only looks forAbstractSimpleValidator.IGNORE_EMPTY_VALUE
configuration option.Methods inherited from class org.keycloak.validate.AbstractStringValidator
doValidate, skipValidation
Methods inherited from class org.keycloak.validate.AbstractSimpleValidator
validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
Methods inherited from interface org.keycloak.validate.SimpleValidator
close, create, init, postInit
Methods inherited from interface org.keycloak.validate.Validator
validate, validate, validate, validate, validate
Methods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
Field Details
-
MESSAGE_INVALID_DATE
- See Also:
-
INSTANCE
-
ID
- See Also:
-
-
Constructor Details
-
IsoDateValidator
public IsoDateValidator()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<Validator>
-
doValidate
protected void doValidate(String value, String inputHint, ValidationContext context, ValidatorConfig config) - Specified by:
doValidate
in classAbstractStringValidator
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
isIgnoreEmptyValuesConfigured
Description copied from class:AbstractSimpleValidator
Default implementation only looks forAbstractSimpleValidator.IGNORE_EMPTY_VALUE
configuration option.- Overrides:
isIgnoreEmptyValuesConfigured
in classAbstractSimpleValidator
- Parameters:
config
- to get option from- Returns:
-