Package org.keycloak.validate
Interface SimpleValidator
- All Superinterfaces:
Provider
,ProviderFactory<Validator>
,Validator
,ValidatorFactory
- 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
Convenience interface to ease implementation of small
Validator
implementations.
SimpleValidator's
should be implemented as singletons.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
This is called when the server shuts down.default Validator
create
(KeycloakSession session) default void
init
(Config.Scope config) Only called once when the factory is first created.default void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
Methods inherited from interface org.keycloak.validate.Validator
validate, validate, validate, validate, validate, validate
Methods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
Method Details
-
create
- Specified by:
create
in interfaceProviderFactory<Validator>
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<Validator>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<Validator>
-
close
default void close()Description copied from interface:ValidatorFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProvider
- Specified by:
close
in interfaceProviderFactory<Validator>
- Specified by:
close
in interfaceValidator
- Specified by:
close
in interfaceValidatorFactory
-