public class SimpleCaptchaImpl
extends java.lang.Object
implements com.liferay.portal.kernel.captcha.Captcha
| Constructor and Description |
|---|
SimpleCaptchaImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(javax.servlet.http.HttpServletRequest request) |
void |
check(javax.portlet.PortletRequest portletRequest) |
protected void |
checkMaxChallenges(javax.servlet.http.HttpServletRequest request) |
protected void |
checkMaxChallenges(java.lang.Integer count) |
protected void |
checkMaxChallenges(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) |
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)
throws com.liferay.portal.kernel.captcha.CaptchaException
isEnabled in interface com.liferay.portal.kernel.captcha.Captchacom.liferay.portal.kernel.captcha.CaptchaExceptionpublic boolean isEnabled(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaException
isEnabled in interface com.liferay.portal.kernel.captcha.Captchacom.liferay.portal.kernel.captcha.CaptchaExceptionpublic 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 checkMaxChallenges(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.captcha.CaptchaMaxChallengesException
com.liferay.portal.kernel.captcha.CaptchaMaxChallengesExceptionprotected void checkMaxChallenges(java.lang.Integer count)
throws com.liferay.portal.kernel.captcha.CaptchaMaxChallengesException
com.liferay.portal.kernel.captcha.CaptchaMaxChallengesExceptionprotected void checkMaxChallenges(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.captcha.CaptchaMaxChallengesException
com.liferay.portal.kernel.captcha.CaptchaMaxChallengesExceptionprotected 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 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