Class ReCaptchaEnterprise
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.captcha.AbstractCaptcha
org.ametys.plugins.core.impl.captcha.recaptcha.ReCaptchaEnterprise
- All Implemented Interfaces:
Captcha
,LogEnabled
,PluginAware
,Initializable
,Configurable
,Serviceable
Captcha implementation with reCaptcha Enterprise
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkAndInvalidateCaptcha
(String key, String value) Check if the Captcha is correctgetLabel()
Get the Captcha type labelGet the label to display when login has failed with this captchaGet the label to display when too many attempt have been doneGet the minimal url patterns used by the captcha implementation.void
boolean
Indicate if the captcha requires user interaction and should be displayed as a form entryvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.core.captcha.AbstractCaptcha
configure, getConfigParameters, getId, getLoginSCSSURL, getXSLHelperURL, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ReCaptchaEnterprise
public ReCaptchaEnterprise()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
requireUserInteraction
Description copied from interface:Captcha
Indicate if the captcha requires user interaction and should be displayed as a form entry- Specified by:
requireUserInteraction
in interfaceCaptcha
- Returns:
- true if the captcha requires user interaction
-
checkAndInvalidateCaptcha
Description copied from interface:Captcha
Check if the Captcha is correct- Specified by:
checkAndInvalidateCaptcha
in interfaceCaptcha
- Parameters:
key
- the keyvalue
- the value- Returns:
- true if correct
-
getLabel
Description copied from interface:Captcha
Get the Captcha type label -
getLoginFailedBecauseCaptchaFailedLabel
Description copied from interface:Captcha
Get the label to display when login has failed with this captcha- Specified by:
getLoginFailedBecauseCaptchaFailedLabel
in interfaceCaptcha
- Returns:
- the label
-
getLoginFailedBecauseTooManyAttemptLabel
Description copied from interface:Captcha
Get the label to display when too many attempt have been done- Specified by:
getLoginFailedBecauseTooManyAttemptLabel
in interfaceCaptcha
- Returns:
- the label
-
getUsedUrlPatterns
Description copied from interface:Captcha
Get the minimal url patterns used by the captcha implementation. This is necessary to grant those url even when the user is not authentified (in particular to set a catpcha on the login page). Do no put a too wide range (such as ^.*$) since it may introduce security issues.- Specified by:
getUsedUrlPatterns
in interfaceCaptcha
- Returns:
- The minimal url patterns used by the captcha implementation.
-