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,IsoDateValidator,LengthValidator,LocalDateValidator,MultiValueValidator,NotBlankValidator,NotEmptyValidator,OptionsValidator,OrganizationMemberValidator,PatternValidator,PersonNameProhibitedCharactersValidator,ReadOnlyAttributeUnchangedValidator,RegistrationEmailAsUsernameEmailValueValidator,RegistrationEmailAsUsernameUsernameValueValidator,RegistrationUsernameExistsValidator,UriValidator,UsernameHasValueValidator,UsernameIDNHomographValidator,UsernameMutationValidator,UsernameProhibitedCharactersValidator,ValidatorConfigValidator
Validates given input in a
ValidationContext.
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 config Map.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()default ValidationContextValidates the giveninput.default ValidationContextValidates the giveninputwith an additionalinputHint.default ValidationContextvalidate(Object input, String inputHint, ValidationContext context) Validates the giveninputwith an additionalinputHint.validate(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.
-
Method Details
-
validate
Validates the giveninput.- Parameters:
input- the value to validate- Returns:
- the validation context with the outcome of the validation
-
validate
Validates the giveninput.- Parameters:
input- the value to validatecontext- the validation context- Returns:
- the validation context with the outcome of the validation
-
validate
Validates the giveninputwith an additionalinputHint.- Parameters:
input- the value to validateinputHint- an optional input hint to guide the validation- Returns:
- the validation context with the outcome of the validation
-
validate
Validates the giveninputwith an additionalinputHint.- Parameters:
input- the value to validateinputHint- an optional input hint to guide the validationconfig- parameterization for the current validation- Returns:
- the validation context with the outcome of the validation
-
validate
Validates the giveninputwith an additionalinputHint.- Parameters:
input- the value to validateinputHint- an optional input hint to guide the validationcontext- the validation context- Returns:
- the validation context with the outcome of the validation
-
validate
ValidationContext validate(Object input, String inputHint, ValidationContext context, ValidatorConfig config) Validates the giveninputwith an additionalinputHintandconfig.- Parameters:
input- the value to validateinputHint- an optional input hint to guide the validationcontext- the validation contextconfig- parameterization for the current validation- Returns:
- the validation context with the outcome of the validation
-
close
default void close()
-