Package org.keycloak.validate.validators
Class NotEmptyValidator
java.lang.Object
org.keycloak.validate.validators.NotEmptyValidator
- All Implemented Interfaces:
Provider
,ProviderFactory<Validator>
,SimpleValidator
,Validator
,ValidatorFactory
Check that input value is not empty. It means it is not null for all data types. For String it also have to be
non-empty string (no trim() performed). For
Collection
and Map
it also means it is not empty.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final NotEmptyValidator
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
validate
(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Validates the giveninput
with an additionalinputHint
andconfig
.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.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
-
INSTANCE
-
ID
- See Also:
-
MESSAGE_ERROR_EMPTY
- See Also:
-
-
Constructor Details
-
NotEmptyValidator
public NotEmptyValidator()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<Validator>
-
validate
public ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Description copied from interface:Validator
Validates the giveninput
with an additionalinputHint
andconfig
.
-