Class DefaultCaptchaValidationService
java.lang.Object
de.hybris.platform.commercewebservicescommons.services.impl.DefaultCaptchaValidationService
- All Implemented Interfaces:
CaptchaValidationService
Service to choose available strategy to validate the given captcha response
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CaptchaValidationStrategyprotected List<CaptchaValidationStrategy>voidsetStrategies(List<CaptchaValidationStrategy> strategies) voidvalidate(CaptchaValidationContext context) check whether need to validate the token and if yes, choose a strategy to validate the token
-
Field Details
-
CAPTCHA_TOKEN_MISSING
- See Also:
-
-
Constructor Details
-
DefaultCaptchaValidationService
public DefaultCaptchaValidationService()
-
-
Method Details
-
validate
Description copied from interface:CaptchaValidationServicecheck whether need to validate the token and if yes, choose a strategy to validate the token- Specified by:
validatein interfaceCaptchaValidationService- Parameters:
context- a context which contains the token need to be validated.
-
getProperStrategy
-
getStrategies
-
setStrategies
-