public interface ICaptchaSecurityService
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_STRING |
Modifier and Type | Method and Description |
---|---|
String |
getActiveBlockHtml() |
String |
getHtmlCode()
Return an EMPTY_STRING if service is not available nor active
|
boolean |
isActive() |
boolean |
isAvailable() |
void |
setActive(boolean bActive)
Activate the service for the current client
|
boolean |
validate(javax.servlet.http.HttpServletRequest request)
Validates a captcha only if the service is available and active
|
static final String EMPTY_STRING
String getHtmlCode()
String getActiveBlockHtml()
boolean validate(javax.servlet.http.HttpServletRequest request)
request
- the request, which must contain the parameter j_captcha_responsevoid setActive(boolean bActive)
bActive
- True to activate, otherwise falseboolean isAvailable()
boolean isActive()
Copyright © 2020 City of Paris. All rights reserved.