Class AttributeValidatorMetadata

java.lang.Object
org.keycloak.userprofile.AttributeValidatorMetadata

public final class AttributeValidatorMetadata extends Object
Author:
Pedro Igor, Vlastimil Elias <velias@redhat.com>
  • Constructor Details

    • AttributeValidatorMetadata

      public AttributeValidatorMetadata(String validatorId)
    • AttributeValidatorMetadata

      public AttributeValidatorMetadata(String validatorId, ValidatorConfig validatorConfig)
  • Method Details

    • getValidatorId

      public String getValidatorId()
      Getters so we can collect validation configurations and provide them to GUI for dynamic client side validations.
      Returns:
      the validatorId
    • getValidatorConfig

      public Map<String,Object> getValidatorConfig()
      Get validator configuration as map.
      Returns:
      never null
    • validate

      public ValidationContext validate(AttributeContext context)
      Run validation for given AttributeContext.
      Parameters:
      context - to validate
      Returns:
      context containing errors if any found
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object