Interface ICaptchaService
public interface ICaptchaService
Interface for captcha validator
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of captcha providersGet the default captcha engine to useGets the captcha HTML codevoidsetDefaultCaptchaEngineName(String strDefaultCaptchaEngine) Set the default captcha engine to usebooleanvalidate(jakarta.servlet.http.HttpServletRequest request) Validate the captcha field
-
Method Details
-
validate
boolean validate(jakarta.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
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
Set the default captcha engine to use- Parameters:
strDefaultCaptchaEngine- the name of the default captcha engine to use
-