Package org.cyclos.impl.system
Interface CaptchaServiceLocal
-
- All Superinterfaces:
CaptchaService,Service
- All Known Implementing Classes:
CaptchaServiceImpl
public interface CaptchaServiceLocal extends CaptchaService
Local interface forCaptchaService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetText(String id)Returns the text for the internal captcha challenge with the given identifiervoidremoveInternalCaptcha(CaptchaConfiguration configuration, CaptchaResponseDTO response)Removes the captcha only if provider isCaptchaProvider.INTERNALand the response is not null.
Otherwise it's a no-op.booleanverify(CaptchaConfiguration configuration, CaptchaResponseDTO response)Returns whether the given captcha response and challenge are correct.-
Methods inherited from interface org.cyclos.services.system.CaptchaService
generate, isValid, readImage, remove
-
-
-
-
Method Detail
-
getText
String getText(String id)
Returns the text for the internal captcha challenge with the given identifier
-
removeInternalCaptcha
void removeInternalCaptcha(CaptchaConfiguration configuration, CaptchaResponseDTO response)
Removes the captcha only if provider isCaptchaProvider.INTERNALand the response is not null.
Otherwise it's a no-op.
-
verify
boolean verify(CaptchaConfiguration configuration, CaptchaResponseDTO response)
Returns whether the given captcha response and challenge are correct. Clients should assume that this can be called only once per challenge.
Internal captchas are only removed when the user is registered, the forgot password OTP is sent or the voucher PIN is resend. See usages of
removeInternalCaptcha(CaptchaConfiguration, CaptchaResponseDTO)for such cases. However, with reCAPTCHA we can only check each challenge once.
-
-