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 ICaptchaSecurityService
public String getHtmlCode()
getHtmlCode
in interface ICaptchaSecurityService
public void setActive(boolean isActive)
setActive
in interface ICaptchaSecurityService
isActive
- True to activate, otherwise falsepublic boolean validate(javax.servlet.http.HttpServletRequest request)
validate
in interface ICaptchaSecurityService
request
- the request, which must contain the parameter j_captcha_responsepublic boolean isActive()
isActive
in interface ICaptchaSecurityService
public boolean isAvailable()
isAvailable
in interface ICaptchaSecurityService
Copyright © 2020 City of Paris. All rights reserved.