Package org.keycloak.validate.validators
Class EmailValidator
- java.lang.Object
-
- org.keycloak.validate.AbstractSimpleValidator
-
- org.keycloak.validate.AbstractStringValidator
-
- org.keycloak.validate.validators.EmailValidator
-
- All Implemented Interfaces:
ConfiguredProvider
,Provider
,ProviderFactory<Validator>
,SimpleValidator
,Validator
,ValidatorFactory
public class EmailValidator extends AbstractStringValidator implements ConfiguredProvider
Email format validation - accepts plain string and collection of strings, for basic behavior like null/blank values handling and collections support seeAbstractStringValidator
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
static EmailValidator
INSTANCE
static String
MESSAGE_INVALID_EMAIL
-
Fields inherited from class org.keycloak.validate.AbstractSimpleValidator
IGNORE_EMPTY_VALUE
-
-
Constructor Summary
Constructors Constructor Description EmailValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doValidate(String value, String inputHint, ValidationContext context, ValidatorConfig config)
List<ProviderConfigProperty>
getConfigProperties()
String
getHelpText()
String
getId()
-
Methods inherited from class org.keycloak.validate.AbstractStringValidator
doValidate, skipValidation
-
Methods inherited from class org.keycloak.validate.AbstractSimpleValidator
isIgnoreEmptyValuesConfigured, 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
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, validate
-
Methods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
INSTANCE
public static final EmailValidator INSTANCE
-
MESSAGE_INVALID_EMAIL
public static final String MESSAGE_INVALID_EMAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String 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
public String getHelpText()
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getConfigProperties
public List<ProviderConfigProperty> getConfigProperties()
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
-