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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAndInvalidateCaptcha(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.voidservice(ServiceManager manager) Methods inherited from class org.ametys.core.captcha.AbstractCaptcha
configure, getConfigParameters, getId, getLoginSCSSURL, getXSLHelperURL, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
servicein interfaceServiceable- Throws:
ServiceException
-
checkAndInvalidateCaptcha
Description copied from interface:CaptchaCheck if the Captcha is correct- Specified by:
checkAndInvalidateCaptchain interfaceCaptcha- Parameters:
key- the keyvalue- the value- Returns:
- true if correct
-
getLabel
Description copied from interface:CaptchaGet the Captcha type label -
getLoginFailedBecauseCaptchaFailedLabel
Description copied from interface:CaptchaGet the label to display when login has failed with this captcha- Specified by:
getLoginFailedBecauseCaptchaFailedLabelin interfaceCaptcha- Returns:
- the label
-
getLoginFailedBecauseTooManyAttemptLabel
Description copied from interface:CaptchaGet the label to display when too many attempt have been done- Specified by:
getLoginFailedBecauseTooManyAttemptLabelin interfaceCaptcha- Returns:
- the label
-
getUsedUrlPatterns
Description copied from interface:CaptchaGet 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:
getUsedUrlPatternsin interfaceCaptcha- Returns:
- The minimal url patterns used by the captcha implementation.
-