Package org.keycloak.validate
Interface Validator
- 
- All Superinterfaces:
- Provider
 - All Known Subinterfaces:
- SimpleValidator
 - All Known Implementing Classes:
- AbstractNumberValidator,- AbstractSimpleValidator,- AbstractStringValidator,- AttributeRequiredByMetadataValidator,- BlankAttributeValidator,- BrokeringFederatedUsernameHasValueValidator,- DoubleValidator,- DuplicateEmailValidator,- DuplicateUsernameValidator,- EmailExistsAsUsernameValidator,- EmailValidator,- ImmutableAttributeValidator,- IntegerValidator,- LengthValidator,- LocalDateValidator,- NotBlankValidator,- NotEmptyValidator,- OptionsValidator,- PatternValidator,- PersonNameProhibitedCharactersValidator,- ReadOnlyAttributeUnchangedValidator,- RegistrationEmailAsUsernameEmailValueValidator,- RegistrationEmailAsUsernameUsernameValueValidator,- RegistrationUsernameExistsValidator,- UriValidator,- UsernameHasValueValidator,- UsernameIDNHomographValidator,- UsernameMutationValidator,- UsernameProhibitedCharactersValidator,- ValidatorConfigValidator
 
 public interface Validator extends Provider Validates given input in aValidationContext.Validations can be supported with an optional inputHint, which could denote a reference to a potentially nested attribute of an object to validate.Validations can be configured with an optional configMap.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()default ValidationContextvalidate(Object input)Validates the giveninput.default ValidationContextvalidate(Object input, String inputHint)Validates the giveninputwith an additionalinputHint.default ValidationContextvalidate(Object input, String inputHint, ValidationContext context)Validates the giveninputwith an additionalinputHint.ValidationContextvalidate(Object input, String inputHint, ValidationContext context, ValidatorConfig config)Validates the giveninputwith an additionalinputHintandconfig.default ValidationContextvalidate(Object input, String inputHint, ValidatorConfig config)Validates the giveninputwith an additionalinputHint.default ValidationContextvalidate(Object input, ValidationContext context)Validates the giveninput.default ValidationContextvalidate(Object input, ValidatorConfig config)Validates the giveninputwith an additionalconfig.
 
- 
- 
- 
Method Detail- 
validatedefault ValidationContext validate(Object input) Validates the giveninput.- Parameters:
- input- the value to validate
- Returns:
- the validation context with the outcome of the validation
 
 - 
validatedefault ValidationContext validate(Object input, ValidatorConfig config) Validates the giveninputwith an additionalconfig.- Parameters:
- input- the value to validate
- config- parameterization for the current validation
- Returns:
- the validation context with the outcome of the validation
 
 - 
validatedefault ValidationContext validate(Object input, ValidationContext context) Validates the giveninput.- Parameters:
- input- the value to validate
- context- the validation context
- Returns:
- the validation context with the outcome of the validation
 
 - 
validatedefault ValidationContext validate(Object input, String inputHint) Validates the giveninputwith an additionalinputHint.- Parameters:
- input- the value to validate
- inputHint- an optional input hint to guide the validation
- Returns:
- the validation context with the outcome of the validation
 
 - 
validatedefault ValidationContext validate(Object input, String inputHint, ValidatorConfig config) Validates the giveninputwith an additionalinputHint.- Parameters:
- input- the value to validate
- inputHint- an optional input hint to guide the validation
- config- parameterization for the current validation
- Returns:
- the validation context with the outcome of the validation
 
 - 
validatedefault ValidationContext validate(Object input, String inputHint, ValidationContext context) Validates the giveninputwith an additionalinputHint.- Parameters:
- input- the value to validate
- inputHint- an optional input hint to guide the validation
- context- the validation context
- Returns:
- the validation context with the outcome of the validation
 
 - 
validateValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Validates the giveninputwith an additionalinputHintandconfig.- Parameters:
- input- the value to validate
- inputHint- an optional input hint to guide the validation
- context- the validation context
- config- parameterization for the current validation
- Returns:
- the validation context with the outcome of the validation
 
 
- 
 
-