Class MultiValueValidator
java.lang.Object
org.keycloak.userprofile.validator.MultiValueValidator
- All Implemented Interfaces:
ConfiguredProvider
,Provider
,ProviderFactory<Validator>
,SimpleValidator
,Validator
,ValidatorFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
validate
(Object value, String inputHint, ValidationContext context, ValidatorConfig config) Validates the giveninput
with an additionalinputHint
andconfig
.validateConfig
(KeycloakSession session, ValidatorConfig config) Validates the given validation config.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.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
Methods inherited from interface org.keycloak.validate.SimpleValidator
close, create, init, postInit
-
Field Details
-
ID
- See Also:
-
MESSAGE_INVALID_SIZE
- See Also:
-
KEY_MIN
- See Also:
-
KEY_MAX
- See Also:
-
-
Constructor Details
-
MultiValueValidator
public MultiValueValidator()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<Validator>
-
validate
public ValidationContext validate(Object value, String inputHint, ValidationContext context, ValidatorConfig config) Description copied from interface:Validator
Validates the giveninput
with an additionalinputHint
andconfig
. -
validateConfig
Description copied from interface:ValidatorFactory
Validates the given validation config.Implementations can use the
KeycloakSession
to validate the givenValidatorConfig
.- Specified by:
validateConfig
in interfaceValidatorFactory
- Parameters:
session
- theKeycloakSession
config
- the config to be validated- Returns:
- the validation result
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-