public class CaptchaSecurityService extends Object implements ICaptchaSecurityService
EMPTY_STRING| Constructor and Description |
|---|
CaptchaSecurityService()
Default constructor.
|
| 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 isActive)
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
|
public CaptchaSecurityService()
public String getActiveBlockHtml()
getActiveBlockHtml in interface ICaptchaSecurityServicepublic String getHtmlCode()
getHtmlCode in interface ICaptchaSecurityServicepublic void setActive(boolean isActive)
setActive in interface ICaptchaSecurityServiceisActive - True to activate, otherwise falsepublic boolean validate(javax.servlet.http.HttpServletRequest request)
validate in interface ICaptchaSecurityServicerequest - the request, which must contain the parameter j_captcha_responsepublic boolean isActive()
isActive in interface ICaptchaSecurityServicepublic boolean isAvailable()
isAvailable in interface ICaptchaSecurityServiceCopyright © 2020 City of Paris. All rights reserved.