Package org.keycloak.validate
Interface ValidatorFactory
- All Superinterfaces:
ProviderFactory<Validator>
- 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
A factory for custom
Validator
implementations plugged-in through this SPI.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
This is called when the server shuts down.default ValidationResult
validateConfig
(KeycloakSession session, ValidatorConfig config) Validates the given validation config.Methods inherited from interface org.keycloak.provider.ProviderFactory
create, getConfigMetadata, getId, init, order, postInit
-
Method Details
-
validateConfig
Validates the given validation config.Implementations can use the
KeycloakSession
to validate the givenValidatorConfig
.- Parameters:
session
- theKeycloakSession
config
- the config to be validated- Returns:
- the validation result
-
close
default void close()This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<Validator>
-