Package org.dspace.eperson
Class CaptchaServiceImpl
java.lang.Object
org.dspace.eperson.CaptchaServiceImpl
- All Implemented Interfaces:
CaptchaService
Basic services implementation for the Captcha.
- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
-
Field Summary
Fields inherited from interface org.dspace.eperson.service.CaptchaService
REGISTER_ACTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidprocessResponse(String response, String action) validate the entered reCaptcha token
-
Constructor Details
-
CaptchaServiceImpl
public CaptchaServiceImpl()
-
-
Method Details
-
init
@PostConstruct public void init() -
processResponse
Description copied from interface:CaptchaServicevalidate the entered reCaptcha token- Specified by:
processResponsein interfaceCaptchaService- Parameters:
response- reCaptcha token to be validatedaction- action of reCaptcha- Throws:
InvalidReCaptchaException- if reCaptcha was not successfully validated
-