Class CaptchEtat
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.captcha.AbstractCaptcha
org.ametys.plugins.captchetat.captcha.CaptchEtat
- All Implemented Interfaces:
Captcha
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
CaptchEtat
Captcha implementation with images
-
Field Summary
-
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
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.captcha.Captcha
requireUserInteraction
-
Field Details
-
_captchEtatHelper
The CaptchEtat helper
-
-
Constructor Details
-
CaptchEtat
public CaptchEtat()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
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.
-