public class SimpleCaptchaImpl
extends java.lang.Object
implements com.liferay.portal.kernel.captcha.Captcha
| Constructor and Description |
|---|
SimpleCaptchaImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
void |
check(javax.servlet.http.HttpServletRequest request) |
void |
check(javax.portlet.PortletRequest portletRequest) |
protected nl.captcha.backgrounds.BackgroundProducer |
getBackgroundProducer() |
protected nl.captcha.gimpy.GimpyRenderer |
getGimpyRenderer() |
protected int |
getHeight() |
protected nl.captcha.noise.NoiseProducer |
getNoiseProducer() |
protected nl.captcha.Captcha |
getSimpleCaptcha() |
java.lang.String |
getTaglibPath() |
protected nl.captcha.text.producer.TextProducer |
getTextProducer() |
protected int |
getWidth() |
protected nl.captcha.text.renderer.WordRenderer |
getWordRenderer() |
protected void |
incrementCounter(javax.servlet.http.HttpServletRequest request) |
protected java.lang.Integer |
incrementCounter(java.lang.Integer count) |
protected void |
incrementCounter(javax.portlet.PortletRequest portletRequest) |
protected void |
initBackgroundProducers() |
protected void |
initGimpyRenderers() |
protected void |
initNoiseProducers() |
protected void |
initTextProducers() |
protected void |
initWordRenderers() |
boolean |
isEnabled(javax.servlet.http.HttpServletRequest request) |
boolean |
isEnabled(javax.portlet.PortletRequest portletRequest) |
protected boolean |
isExceededMaxChallenges(javax.servlet.http.HttpServletRequest request) |
protected boolean |
isExceededMaxChallenges(java.lang.Integer count) |
protected boolean |
isExceededMaxChallenges(javax.portlet.PortletRequest portletRequest) |
void |
serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
serveImage(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
protected boolean |
validateChallenge(javax.servlet.http.HttpServletRequest request) |
protected boolean |
validateChallenge(javax.portlet.PortletRequest portletRequest) |
public void check(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.captcha.CaptchaException
check in interface com.liferay.portal.kernel.captcha.Captchacom.liferay.portal.kernel.captcha.CaptchaExceptionpublic void check(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
check in interface com.liferay.portal.kernel.captcha.Captchacom.liferay.portal.kernel.captcha.CaptchaExceptionpublic java.lang.String getTaglibPath()
getTaglibPath in interface com.liferay.portal.kernel.captcha.Captchapublic boolean isEnabled(javax.servlet.http.HttpServletRequest request)
isEnabled in interface com.liferay.portal.kernel.captcha.Captchapublic boolean isEnabled(javax.portlet.PortletRequest portletRequest)
isEnabled in interface com.liferay.portal.kernel.captcha.Captchapublic void serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
serveImage in interface com.liferay.portal.kernel.captcha.Captchajava.io.IOExceptionpublic void serveImage(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse)
throws java.io.IOException
serveImage in interface com.liferay.portal.kernel.captcha.Captchajava.io.IOExceptionprotected void activate()
protected nl.captcha.backgrounds.BackgroundProducer getBackgroundProducer()
protected nl.captcha.gimpy.GimpyRenderer getGimpyRenderer()
protected int getHeight()
protected nl.captcha.noise.NoiseProducer getNoiseProducer()
protected nl.captcha.Captcha getSimpleCaptcha()
protected nl.captcha.text.producer.TextProducer getTextProducer()
protected int getWidth()
protected nl.captcha.text.renderer.WordRenderer getWordRenderer()
protected void incrementCounter(javax.servlet.http.HttpServletRequest request)
protected java.lang.Integer incrementCounter(java.lang.Integer count)
protected void incrementCounter(javax.portlet.PortletRequest portletRequest)
protected void initBackgroundProducers()
protected void initGimpyRenderers()
protected void initNoiseProducers()
protected void initTextProducers()
protected void initWordRenderers()
protected boolean isExceededMaxChallenges(javax.servlet.http.HttpServletRequest request)
protected boolean isExceededMaxChallenges(java.lang.Integer count)
protected boolean isExceededMaxChallenges(javax.portlet.PortletRequest portletRequest)
protected boolean validateChallenge(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaExceptionprotected boolean validateChallenge(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaException