Class DuplicateUsernameValidator
- java.lang.Object
- 
- org.keycloak.userprofile.validator.DuplicateUsernameValidator
 
- 
- All Implemented Interfaces:
- Provider,- ProviderFactory<Validator>,- SimpleValidator,- Validator,- ValidatorFactory
 
 public class DuplicateUsernameValidator extends Object implements SimpleValidator Validator to check that User Profile username already exists in database for another user in case of it's change, and fail in this case. Expects List of Strings as input.- Author:
- Vlastimil Elias 
 
- 
- 
Constructor SummaryConstructors Constructor Description DuplicateUsernameValidator()
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 - 
Methods inherited from interface org.keycloak.validate.SimpleValidatorclose, create, init, postInit
 - 
Methods inherited from interface org.keycloak.validate.Validatorvalidate, validate, validate, validate, validate, validate
 - 
Methods inherited from interface org.keycloak.validate.ValidatorFactoryvalidateConfig
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final String ID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<Validator>
 
 - 
validatepublic ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Description copied from interface:ValidatorValidates the giveninputwith an additionalinputHintandconfig.
 
- 
 
-