Interface GuideCaptchaValidator


  • @ConsumerType
    public interface GuideCaptchaValidator
    An interface to provide captcha validation at server side in adaptive form This interface can be used to provide custom implementation for different captcha services.
    • Method Detail

      • validateCaptcha

        GuideCaptchaValidationResult validateCaptcha​(java.lang.String captchaPropertyNodePath,
                                                     java.lang.String userResponseToken)
        This method should define the actual validation logic of the captcha
        Parameters:
        captchaPropertyNodePath - path to the node having CAPTCHA configurations inside form container
        userResponseToken - The user response token provided by the CAPTCHA from client-side
        Returns:
        GuideCaptchaValidationResult validation result of the captcha
      • getCaptchaValidatorName

        java.lang.String getCaptchaValidatorName()
        Returns the name of the captcha validator. This should be unique among the different implementations
        Returns:
        name of the captcha validator