|
||||||||||
| 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 ICaptchaSecurityServicepublic java.lang.String getHtmlCode()
ICaptchaSecurityService
getHtmlCode in interface ICaptchaSecurityServicepublic void setActive(boolean isActive)
ICaptchaSecurityService
setActive in interface ICaptchaSecurityServicepublic boolean validate(javax.servlet.http.HttpServletRequest request)
ICaptchaSecurityService
validate in interface ICaptchaSecurityServicerequest - the request, which must contain the parameter j_captcha_response
public boolean isActive()
isActive in interface ICaptchaSecurityServicepublic boolean isAvailable()
isAvailable in interface ICaptchaSecurityService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||