Package org.dspace.eperson
Class CaptchaServiceImpl
- java.lang.Object
-
- org.dspace.eperson.CaptchaServiceImpl
-
- All Implemented Interfaces:
CaptchaService
public class CaptchaServiceImpl extends Object implements 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 Constructor Description CaptchaServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()voidprocessResponse(String response, String action)validate the entered reCaptcha token
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
processResponse
public void processResponse(String response, String action) throws InvalidReCaptchaException
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
-
-