| Constructor and Description |
|---|
WrappedScriptCaptcha(Captcha captcha,
org.xwiki.script.internal.safe.ScriptSafeProvider<Captcha> safeProvider,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
String |
display() |
String |
display(Map<String,Object> parameters) |
protected org.slf4j.Logger |
getLogger() |
boolean |
isValid() |
boolean |
isValid(Map<String,Object> parameters) |
public WrappedScriptCaptcha(Captcha captcha, org.xwiki.script.internal.safe.ScriptSafeProvider<Captcha> safeProvider, org.slf4j.Logger logger)
captcha - the Captcha to wrap for Script API accesssafeProvider - the provider making the conversion to the safe versionlogger - the logging componentprotected org.slf4j.Logger getLogger()
public String display()
display in interface Captchanull in case of an exceptionCaptcha.display()public String display(Map<String,Object> parameters)
display in interface Captchaparameters - the CAPTCHA override parametersnull in case of an exceptionCaptcha.display(Map)public boolean isValid()
isValid in interface Captchatrue if the answer is valid; false otherwise or if an exception occursCaptcha.isValid()Copyright © 2004–2022 XWiki. All rights reserved.