|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.bastille.recaptcha.ReCaptchaResult
public final class ReCaptchaResult
Returns the response from a ReCaptcha verification API call.
The fields correspond to the response returned by the verification API.
The messages are subject to change, and may be:
invalid-site-public-key
invalid-site-private-key
invalid-request-cookie
incorrect-captcha-sol
verify-params-incorrect
recaptcha-not-reachable
Method Summary | |
---|---|
boolean |
isValid()
Indicates whether the challenge was passed. |
String |
message()
The reCaptcha error message. |
static ReCaptchaResult |
parse(String response)
Parses the response from the reCaptcha server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isValid()
The according to the verification API server
true
if challenge was passed; false
otherwise.public String message()
public static ReCaptchaResult parse(String response)
response
- The response returned by the server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |