Package org.dspace.eperson.service
Interface CaptchaService
-
- All Known Implementing Classes:
CaptchaServiceImpl
public interface CaptchaServiceThis service for validate the reCaptcha token- Author:
- Mohamed Eskander (mohamed.eskander at 4science dot it)
-
-
Field Summary
Fields Modifier and Type Field Description static StringREGISTER_ACTION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocessResponse(String response, String action)validate the entered reCaptcha token
-
-
-
Field Detail
-
REGISTER_ACTION
static final String REGISTER_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
processResponse
void processResponse(String response, String action) throws InvalidReCaptchaException
validate the entered reCaptcha token- Parameters:
response- reCaptcha token to be validatedaction- action of reCaptcha- Throws:
InvalidReCaptchaException- if reCaptcha was not successfully validated
-
-