Package org.keycloak.validate.validators
Class ValidatorConfigValidator
java.lang.Object
org.keycloak.validate.validators.ValidatorConfigValidator
- All Implemented Interfaces:
Provider
,ProviderFactory<Validator>
,SimpleValidator
,Validator
,ValidatorFactory
Validate that input value is
ValidatorConfig
and it is correct for validator (inputHint
must be
ID of the validator config is for) by
Validators.validateConfig(org.keycloak.models.KeycloakSession, String, ValidatorConfig)
. .-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final ValidatorConfigValidator
static final String
Generic error messages for config validations - invalid config value - boolean expectedstatic final String
Generic error messages for config validations - invalid config value - number expectedstatic final String
Generic error messages for config validations - invalid config value - string expectedstatic final String
Generic error messages for config validations - invalid config valuestatic final String
Generic error messages for config validations - missing config value -
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
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_CONFIG_MISSING_VALUE
Generic error messages for config validations - missing config value- See Also:
-
MESSAGE_CONFIG_INVALID_VALUE
Generic error messages for config validations - invalid config value- See Also:
-
MESSAGE_CONFIG_INVALID_NUMBER_VALUE
Generic error messages for config validations - invalid config value - number expected- See Also:
-
MESSAGE_CONFIG_INVALID_BOOLEAN_VALUE
Generic error messages for config validations - invalid config value - boolean expected- See Also:
-
MESSAGE_CONFIG_INVALID_STRING_VALUE
Generic error messages for config validations - invalid config value - string expected- See Also:
-
ID
- See Also:
-
INSTANCE
-
-
Constructor Details
-
ValidatorConfigValidator
public ValidatorConfigValidator()
-
-
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
.
-