Package org.keycloak.userprofile
Class AttributeValidatorMetadata
java.lang.Object
org.keycloak.userprofile.AttributeValidatorMetadata
- Author:
- Pedro Igor, Vlastimil Elias <velias@redhat.com>
-
Constructor Summary
ConstructorDescriptionAttributeValidatorMetadata
(String validatorId) AttributeValidatorMetadata
(String validatorId, ValidatorConfig validatorConfig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get validator configuration as map.Getters so we can collect validation configurations and provide them to GUI for dynamic client side validations.int
hashCode()
validate
(AttributeContext context) Run validation for given AttributeContext.
-
Constructor Details
-
AttributeValidatorMetadata
-
AttributeValidatorMetadata
-
-
Method Details
-
getValidatorId
Getters so we can collect validation configurations and provide them to GUI for dynamic client side validations.- Returns:
- the validatorId
-
getValidatorConfig
Get validator configuration as map.- Returns:
- never null
-
validate
Run validation for given AttributeContext.- Parameters:
context
- to validate- Returns:
- context containing errors if any found
-
equals
-
hashCode
public int hashCode()
-