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 isValidatorConfig
and it is correct for validator (inputHint
must 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 String
ID
static ValidatorConfigValidator
INSTANCE
static String
MESSAGE_CONFIG_INVALID_BOOLEAN_VALUE
Generic error messages for config validations - invalid config value - boolean expectedstatic String
MESSAGE_CONFIG_INVALID_NUMBER_VALUE
Generic error messages for config validations - invalid config value - number expectedstatic String
MESSAGE_CONFIG_INVALID_STRING_VALUE
Generic error messages for config validations - invalid config value - string expectedstatic String
MESSAGE_CONFIG_INVALID_VALUE
Generic error messages for config validations - invalid config valuestatic String
MESSAGE_CONFIG_MISSING_VALUE
Generic error messages for config validations - missing config value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
ValidationContext
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, 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:
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
.
-
-