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 voidclose()This is called when the server shuts down.default ValidationResultvalidateConfig(KeycloakSession session, ValidatorConfig config) Validates the given validation config.Methods inherited from interface org.keycloak.provider.ProviderFactory
create, dependsOn, getConfigMetadata, getId, init, order, postInit
-
Method Details
-
validateConfig
Validates the given validation config.Implementations can use the
KeycloakSessionto validate the givenValidatorConfig.- Parameters:
session- theKeycloakSessionconfig- the config to be validated- Returns:
- the validation result
-
close
default void close()This is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<Validator>
-