Class UsernameMutationValidator
- java.lang.Object
-
- org.keycloak.userprofile.validator.UsernameMutationValidator
-
- All Implemented Interfaces:
Provider,ProviderFactory<Validator>,SimpleValidator,Validator,ValidatorFactory
public class UsernameMutationValidator extends Object implements SimpleValidator
Validator to check User Profile username change and prevent it if not allowed in realm. Expects List of Strings as input.- Author:
- Vlastimil Elias
-
-
Constructor Summary
Constructors Constructor Description UsernameMutationValidator()
-
Method Summary
All 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.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
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceProviderFactory<Validator>
-
validate
public ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config)
Description copied from interface:ValidatorValidates the giveninputwith an additionalinputHintandconfig.
-
-