Class OrganizationMemberValidator
java.lang.Object
org.keycloak.validate.AbstractSimpleValidator
org.keycloak.organization.validator.OrganizationMemberValidator
- All Implemented Interfaces:
EnvironmentDependentProviderFactory,Provider,ProviderFactory<Validator>,SimpleValidator,Validator,ValidatorFactory
public class OrganizationMemberValidator
extends AbstractSimpleValidator
implements EnvironmentDependentProviderFactory
-
Field Summary
FieldsFields inherited from class org.keycloak.validate.AbstractSimpleValidator
IGNORE_EMPTY_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoValidate(Object value, String inputHint, ValidationContext context, ValidatorConfig config) Validate type, format, range of the value etc.getId()booleanisSupported(Config.Scope config) Check if the provider is supported and should be available based on the provider configuration.protected booleanskipValidation(Object value, ValidatorConfig config) Decide if validation of individual value should be skipped or not.Methods inherited from class org.keycloak.validate.AbstractSimpleValidator
isIgnoreEmptyValuesConfigured, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, orderMethods inherited from interface org.keycloak.validate.SimpleValidator
close, create, init, postInitMethods inherited from interface org.keycloak.validate.Validator
validate, validate, validate, validate, validateMethods inherited from interface org.keycloak.validate.ValidatorFactory
validateConfig
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
OrganizationMemberValidator
public OrganizationMemberValidator()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceProviderFactory<Validator>
-
doValidate
protected void doValidate(Object value, String inputHint, ValidationContext context, ValidatorConfig config) Description copied from class:AbstractSimpleValidatorValidate type, format, range of the value etc. Always useValidationContext.addError(ValidationError)to report error to the user! Can be called multiple time for one validation if input is Collection.- Specified by:
doValidatein classAbstractSimpleValidator- Parameters:
value- to be validated, never nullcontext- for the validation. Add errors into it.config- of the validation if provided- See Also:
-
skipValidation
Description copied from class:AbstractSimpleValidatorDecide if validation of individual value should be skipped or not. It should be controlled byAbstractSimpleValidator.IGNORE_EMPTY_VALUEconfiguration option, seeAbstractSimpleValidator.isIgnoreEmptyValuesConfigured(ValidatorConfig).- Specified by:
skipValidationin classAbstractSimpleValidator- Parameters:
value- currently validated we make decision forconfig- to look for options in- Returns:
- true if validation should be skipped for this value -
AbstractSimpleValidator.doValidate(Object, String, ValidationContext, ValidatorConfig)is not called in this case. - See Also:
-
isSupported
Description copied from interface:EnvironmentDependentProviderFactoryCheck if the provider is supported and should be available based on the provider configuration.- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Parameters:
config- the provider configuration- Returns:
trueif the provider is supported. Otherwise,false.
-