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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final ValidatorConfigValidatorstatic final StringGeneric error messages for config validations - invalid config value - boolean expectedstatic final StringGeneric error messages for config validations - invalid config value - number expectedstatic final StringGeneric error messages for config validations - invalid config value - string expectedstatic final StringGeneric error messages for config validations - invalid config valuestatic final StringGeneric error messages for config validations - missing config value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Validates the giveninputwith an additionalinputHintandconfig.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, orderMethods inherited from interface org.keycloak.validate.SimpleValidator
close, create, init, postInitMethods inherited from interface org.keycloak.validate.Validator
validate, validate, validate, validate, validateMethods 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:
getIdin interfaceProviderFactory<Validator>
-
validate
public ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Description copied from interface:ValidatorValidates the giveninputwith an additionalinputHintandconfig.
-