|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.captcha.CaptchaSecurityService
public class CaptchaSecurityService
Default captcha security service implementation
Field Summary |
---|
Fields inherited from interface fr.paris.lutece.portal.service.captcha.ICaptchaSecurityService |
---|
EMPTY_STRING |
Constructor Summary | |
---|---|
CaptchaSecurityService()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getActiveBlockHtml()
|
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CaptchaSecurityService()
Method Detail |
---|
public java.lang.String getActiveBlockHtml()
getActiveBlockHtml
in interface ICaptchaSecurityService
public java.lang.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_response
public boolean isActive()
isActive
in interface ICaptchaSecurityService
public boolean isAvailable()
isAvailable
in interface ICaptchaSecurityService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |