Class CaptchEtatHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.captchetat.captcha.CaptchEtatHelper
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
public class CaptchEtatHelper
extends AbstractLogEnabled
implements Component, Initializable, Serviceable
Captcha implementation with images
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkAndInvalidateCaptcha
(String key, String value) Check if the captcha is correctget TokengetToken()
get Tokenvoid
Initializevoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Role -
CAPCHETAT_TOKEN_CACHE
id of the token cache
-
-
Constructor Details
-
CaptchEtatHelper
public CaptchEtatHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
Initialize- Specified by:
initialize
in interfaceInitializable
-
getToken
get Token- Returns:
- token
-
getEndpoint
get Token- Returns:
- token
-
checkAndInvalidateCaptcha
Check if the captcha is correct- Parameters:
key
- the keyvalue
- the value- Returns:
- true if correct
-