com.alogient.cameleon.extension.wicket.ui.component.captcha
Class ReCaptchaValidator

java.lang.Object
  extended by 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
           
 
Constructor Summary
ReCaptchaValidator()
           
 
Method Summary
static boolean validate(String privateKey, String remoteAddress, String response, String challenge)
          Validate the answer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.slf4j.Logger LOGGER
Constructor Detail

ReCaptchaValidator

public ReCaptchaValidator()
Method Detail

validate

public static boolean validate(String privateKey,
                               String remoteAddress,
                               String response,
                               String challenge)
Validate the answer

Parameters:
privateKey - the private key
remoteAddress - the client's remote address
response - the answer
challenge - reCaptcha challenge field
Returns:
true if the response has been validated


Copyright © 2011 Alogient. All Rights Reserved.