|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object hirondelle.predict.util.Captcha
public final class Captcha
Utility class for CAPTCHA tasks.
CAPTCHA tools help prevent spam, by distinguishing human beings from automated bots. This class should be used anytime an Action needs to validate a user's input for a CAPTCHA form.
This application uses the RECAPTCHA service to prevent spam. It also uses the recaptcha4j Java library written by Soren Davidsen.
Constructor Summary | |
---|---|
Captcha()
|
Method Summary | |
---|---|
static void |
init(String aPrivateKey)
Initialize this class with a private key value, required by the recaptcha tool. |
static boolean |
isCaptchaValid(String aIpAddress,
String aChallenge,
String aResponse)
Return true only if the user has supplied a valid response for the given challenge. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Captcha()
Method Detail |
---|
public static void init(String aPrivateKey)
This method is called once upon startup.
public static boolean isCaptchaValid(String aIpAddress, String aChallenge, String aResponse)
|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |