Interface CaptchaValidationService
- All Known Implementing Classes:
DefaultCaptchaValidationService
public interface CaptchaValidationService
Service to choose available strategy to validate the given captcha response
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(@NotNull CaptchaValidationContext captchaValidationContext) check whether need to validate the token and if yes, choose a strategy to validate the token
-
Method Details
-
validate
check whether need to validate the token and if yes, choose a strategy to validate the token- Parameters:
captchaValidationContext- a context which contains the token need to be validated.- Throws:
CaptchaValidationException- when captcha token validate failedCaptchaTokenMissingException- when captcha token in context is blankIllegalArgumentException- when captchaValidationContext is nullNotFoundException- when can't find proper validation strategy
-