| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectpalio.modules.core.Module
palio.modules.ReCaptcha
public class ReCaptcha
reCAPTCHA is a freely available CAPTCHA implementation. It distinguishes humans from computers. This may be useful for a registration page for a forum or wiki or a comment form. http://recaptcha.net
To use this module you should first make these following steps (or use built jPALIO keys - then you don't need to make anything):
If you are behind firewall, see http://wiki.recaptcha.net/index.php/Firewalls_and_reCAPTCHA. Remember to add port 443 too.
This is standard module of jPALIO since 7.0.35.
| Field Summary | 
|---|
| Fields inherited from interface palio.modules.core.CurrentModuleDataKeys | 
|---|
DESIGNER_ACTIONS_BUFFER, HTML_FORM_BUILDER, HTML_MAP_BUILDER, HTML_MENU_BUILDER, HTML_TOOLTIPS_BUFFER, ITEXT_DOCUMENT, MAIL_MESSAGE, XLS_DOCUMENT, XML_DOCUMENT | 
| Constructor Summary | |
|---|---|
ReCaptcha(palio.Instance instance,
          java.util.Properties parameters)
 | 
|
| Method Summary | |
|---|---|
 java.lang.Boolean | 
checkAnswer()
Check answer given by the user.  | 
 java.lang.Boolean | 
checkAnswer(java.lang.String privateKey)
Check answer given by the user.  | 
 java.lang.String | 
createHTML()
Create standard HTML Dialog Box in client web browser.  | 
 java.lang.String | 
createHTML(java.lang.String errorMessage)
Create standard HTML Dialog Box in client web browser.  | 
 java.lang.String | 
createHTML(java.lang.String publicKey,
           java.lang.String privateKey)
Create HTML Dialog Box in client web browser.  | 
 java.lang.String | 
createHTML(java.lang.String publicKey,
           java.lang.String privateKey,
           java.lang.String errorMessage)
Create HTML Dialog Box in client web browser.  | 
 java.lang.String | 
createHTML(java.lang.String errorMessage,
           java.lang.String theme,
           java.lang.String lang,
           java.lang.Long tabindex)
Create HTML Dialog Box in client web browser.  | 
 java.lang.String | 
createHTML(java.lang.String publicKey,
           java.lang.String privateKey,
           java.lang.String errorMessage,
           java.lang.String theme,
           java.lang.String lang,
           java.lang.Long tabindex)
Create HTML Dialog Box in client web browser.  | 
 net.tanesha.recaptcha.ReCaptcha | 
getReCaptchaInstance()
Deprecated. Returns an instance of ReCaptcha object created for this module instance. NOT IMPLEMENTED.  | 
 java.lang.String | 
getVersion()
Returns the module version  | 
| Methods inherited from class palio.modules.core.Module | 
|---|
getConfigParam, getDescription, getModuleTranslation | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ReCaptcha(palio.Instance instance,
                 java.util.Properties parameters)
instance - parameters - | Method Detail | 
|---|
public java.lang.String createHTML(java.lang.String publicKey,
                                   java.lang.String privateKey,
                                   java.lang.String errorMessage)
publicKey - reCaptcha public keyprivateKey - reCaptcha private keyerrorMessage - error message
public java.lang.String createHTML(java.lang.String publicKey,
                                   java.lang.String privateKey)
publicKey - reCaptcha public keyprivateKey - reCaptcha private key
public java.lang.String createHTML(java.lang.String publicKey,
                                   java.lang.String privateKey,
                                   java.lang.String errorMessage,
                                   java.lang.String theme,
                                   java.lang.String lang,
                                   java.lang.Long tabindex)
publicKey - reCaptcha public keyprivateKey - reCaptcha private keyerrorMessage - error messagetheme - theme, you can use: "white" (default theme), "red", "blackglass", "clean"lang - Langualge like "en", "de", "pl" (default language of instance_tabindex - Sets a tabindex for the
            reCAPTCHA text box. If other elements in the form use a tabindex, this should be set so that navigation is easier for the
            user. Default tabindex is 0.
public java.lang.String createHTML(java.lang.String errorMessage,
                                   java.lang.String theme,
                                   java.lang.String lang,
                                   java.lang.Long tabindex)
publicKey - reCaptcha public keyprivateKey - reCaptcha private keyerrorMessage - error messagetheme - theme, you can use: "white" (default theme), "red", "blackglass", "clean"lang - Langualge like "en", "de", "pl" (default language of instance_tabindex - Sets a tabindex for the
            reCAPTCHA text box. If other elements in the form use a tabindex, this should be set so that navigation is easier for the
            user. Default tabindex is 0.
public java.lang.String createHTML(java.lang.String errorMessage)
errorMessage - error message
public java.lang.String createHTML()
public java.lang.Boolean checkAnswer(java.lang.String privateKey)
privateKey - reCaptcha private key
true if the client wrote write answerpublic java.lang.Boolean checkAnswer()
true if the client wrote write answer@Deprecated public net.tanesha.recaptcha.ReCaptcha getReCaptchaInstance()
public java.lang.String getVersion()
palio.modules.core.Module
getVersion in class palio.modules.core.Module
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||