Class UsernameProhibitedCharactersValidator

java.lang.Object
org.keycloak.validate.AbstractSimpleValidator
org.keycloak.validate.AbstractStringValidator
org.keycloak.userprofile.validator.UsernameProhibitedCharactersValidator
All Implemented Interfaces:
ConfiguredProvider, Provider, ProviderFactory<Validator>, SimpleValidator, Validator, ValidatorFactory

public class UsernameProhibitedCharactersValidator extends AbstractStringValidator implements ConfiguredProvider
This validator disallowing bunch of characters we really not to expect in username.

Validates against hardcoded RegEx pattern - accepts plain string and collection of strings, for basic behavior like null/blank values handling and collections support see AbstractStringValidator.