Package org.keycloak.validate.validators
Class ValidatorConfigValidator
- java.lang.Object
-
- org.keycloak.validate.validators.ValidatorConfigValidator
-
- All Implemented Interfaces:
Provider,ProviderFactory<Validator>,SimpleValidator,Validator,ValidatorFactory
public class ValidatorConfigValidator extends Object implements SimpleValidator
Validate that input value isValidatorConfigand it is correct for validator (inputHintmust be ID of the validator config is for) byValidators.validateConfig(org.keycloak.models.KeycloakSession, String, ValidatorConfig). .
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDstatic ValidatorConfigValidatorINSTANCEstatic StringMESSAGE_CONFIG_INVALID_BOOLEAN_VALUEGeneric error messages for config validations - invalid config value - boolean expectedstatic StringMESSAGE_CONFIG_INVALID_NUMBER_VALUEGeneric error messages for config validations - invalid config value - number expectedstatic StringMESSAGE_CONFIG_INVALID_STRING_VALUEGeneric error messages for config validations - invalid config value - string expectedstatic StringMESSAGE_CONFIG_INVALID_VALUEGeneric error messages for config validations - invalid config valuestatic StringMESSAGE_CONFIG_MISSING_VALUEGeneric error messages for config validations - missing config value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()ValidationContextvalidate(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, 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, validate
-
Methods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
-
-
-
Field Detail
-
MESSAGE_CONFIG_MISSING_VALUE
public static final String MESSAGE_CONFIG_MISSING_VALUE
Generic error messages for config validations - missing config value- See Also:
- Constant Field Values
-
MESSAGE_CONFIG_INVALID_VALUE
public static final String MESSAGE_CONFIG_INVALID_VALUE
Generic error messages for config validations - invalid config value- See Also:
- Constant Field Values
-
MESSAGE_CONFIG_INVALID_NUMBER_VALUE
public static final String MESSAGE_CONFIG_INVALID_NUMBER_VALUE
Generic error messages for config validations - invalid config value - number expected- See Also:
- Constant Field Values
-
MESSAGE_CONFIG_INVALID_BOOLEAN_VALUE
public static final String MESSAGE_CONFIG_INVALID_BOOLEAN_VALUE
Generic error messages for config validations - invalid config value - boolean expected- See Also:
- Constant Field Values
-
MESSAGE_CONFIG_INVALID_STRING_VALUE
public static final String MESSAGE_CONFIG_INVALID_STRING_VALUE
Generic error messages for config validations - invalid config value - string expected- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
INSTANCE
public static final ValidatorConfigValidator INSTANCE
-
-
Method Detail
-
getId
public String 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.
-
-