Interface ICaptchaService


public interface ICaptchaService
Interface for captcha validator
  • Method Details

    • validate

      boolean validate(javax.servlet.http.HttpServletRequest request)
      Validate the captcha field
      Parameters:
      request - The HTTP request
      Returns:
      True if OK, otherwise false
    • getHtmlCode

      String getHtmlCode()
      Gets the captcha HTML code
      Returns:
      The captcha HTML code
    • getCaptchaEngineNameList

      List<String> getCaptchaEngineNameList()
      Get the list of captcha providers
      Returns:
      The list of captcha providers
    • getDefaultCaptchaEngineName

      String getDefaultCaptchaEngineName()
      Get the default captcha engine to use
      Returns:
      The name of the default captcha engine
    • setDefaultCaptchaEngineName

      void setDefaultCaptchaEngineName(String strDefaultCaptchaEngine)
      Set the default captcha engine to use
      Parameters:
      strDefaultCaptchaEngine - the name of the default captcha engine to use