Class UsernameIDNHomographValidator
java.lang.Object
org.keycloak.userprofile.validator.UsernameIDNHomographValidator
- All Implemented Interfaces:
ConfiguredProvider
,Provider
,ProviderFactory<Validator>
,SimpleValidator
,Validator
,ValidatorFactory
public class UsernameIDNHomographValidator
extends Object
implements SimpleValidator, ConfiguredProvider
Validator to check that User Profile username is provided. Expects List of Strings as input.
- Author:
- Vlastimil Elias <velias@redhat.com>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getErrorMessageKey
(String inputHint, ValidatorConfig config) getId()
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.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
Methods inherited from interface org.keycloak.validate.Validator
validate, validate, validate, validate, validate
Methods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
Field Details
-
ID
- See Also:
-
CFG_ERROR_MESSAGE
- See Also:
-
MESSAGE_NO_MATCH
- See Also:
-
-
Constructor Details
-
UsernameIDNHomographValidator
public UsernameIDNHomographValidator()
-
-
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
. -
getErrorMessageKey
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-