Package com.adobe.aemds.guide.service
Interface GuideCaptchaValidator
-
@ConsumerType public interface GuideCaptchaValidator
An interface to provide captcha validation at server side in adaptive form This interface can be used to provide custom implementation for different captcha services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCaptchaValidatorName()
Returns the name of the captcha validator.GuideCaptchaValidationResult
validateCaptcha(java.lang.String captchaPropertyNodePath, java.lang.String userResponseToken)
This method should define the actual validation logic of the captcha
-
-
-
Method Detail
-
validateCaptcha
GuideCaptchaValidationResult validateCaptcha(java.lang.String captchaPropertyNodePath, java.lang.String userResponseToken)
This method should define the actual validation logic of the captcha- Parameters:
captchaPropertyNodePath
- path to the node having CAPTCHA configurations inside form containeruserResponseToken
- The user response token provided by the CAPTCHA from client-side- Returns:
GuideCaptchaValidationResult
validation result of the captcha
-
getCaptchaValidatorName
java.lang.String getCaptchaValidatorName()
Returns the name of the captcha validator. This should be unique among the different implementations- Returns:
- name of the captcha validator
-
-