com.alogient.cameleon.extension.wicket.ui.component.captcha
Class ReCaptchaValidator
java.lang.Object
com.alogient.cameleon.extension.wicket.ui.component.captcha.ReCaptchaValidator
- All Implemented Interfaces:
- Serializable
public class ReCaptchaValidator
- extends Object
- implements Serializable
Validate the customer answer
Date: 4-Dec-2009
Time: 1:58:57 PM
- See Also:
- Serialized Form
|
Field Summary |
static org.slf4j.Logger |
LOGGER
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
public static final org.slf4j.Logger LOGGER
ReCaptchaValidator
public ReCaptchaValidator()
validate
public static boolean validate(String privateKey,
String remoteAddress,
String response,
String challenge)
- Validate the answer
- Parameters:
privateKey - the private keyremoteAddress - the client's remote addressresponse - the answerchallenge - reCaptcha challenge field
- Returns:
- true if the response has been validated
Copyright © 2011 Alogient. All Rights Reserved.