Interface GuideCaptchaValidatorProvider


  • @ProviderType
    public interface GuideCaptchaValidatorProvider
    Defines the interface to manage CAPTCHA validation providers
    • Method Detail

      • getGuideCaptchaValidator

        GuideCaptchaValidator getGuideCaptchaValidator​(java.lang.String validatorName)
                                                throws GuideException
        Returns the appropriate CAPTCHA validator given it's name e.g for validatorName = "recaptcha" it will return the ReCaptchaValidator Note that all returned instances would be implementations of GuideCaptchaValidator
        Parameters:
        validatorName - name of the captcha validation service
        Returns:
        CAPTCHA validator based on validatorName
        Throws:
        GuideException
      • validateCAPTCHA

        GuideCaptchaValidationResult validateCAPTCHA​(CaptchaInfo captchaInfo,
                                                     java.lang.String userResponseToken)
        Parameters:
        captchaInfo - captcha information from the form
        userResponseToken - data to be used by captcha service for validation
        Returns: