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
,LengthValidator
,LocalDateValidator
,NotBlankValidator
,NotEmptyValidator
,OptionsValidator
,PatternValidator
,PersonNameProhibitedCharactersValidator
,ReadOnlyAttributeUnchangedValidator
,RegistrationEmailAsUsernameEmailValueValidator
,RegistrationEmailAsUsernameUsernameValueValidator
,RegistrationUsernameExistsValidator
,UriValidator
,UsernameHasValueValidator
,UsernameIDNHomographValidator
,UsernameMutationValidator
,UsernameProhibitedCharactersValidator
,ValidatorConfigValidator
public interface SimpleValidator extends Validator, ValidatorFactory
Convenience interface to ease implementation of smallValidator
implementations.SimpleValidator's
should be implemented as singletons.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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 initialized-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, getId, order
-
Methods inherited from interface org.keycloak.validate.Validator
validate, validate, validate, validate, validate, validate, validate
-
Methods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
-
-
-
Method Detail
-
create
default Validator create(KeycloakSession session)
- Specified by:
create
in interfaceProviderFactory<Validator>
-
init
default void init(Config.Scope config)
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
default void postInit(KeycloakSessionFactory factory)
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
-
-