public class SimpleCaptchaImpl extends 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(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() |
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 Integer |
incrementCounter(Integer count) |
protected void |
incrementCounter(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(PortletRequest portletRequest) |
protected boolean |
isExceededMaxChallenges(javax.servlet.http.HttpServletRequest request) |
protected boolean |
isExceededMaxChallenges(Integer count) |
protected boolean |
isExceededMaxChallenges(PortletRequest portletRequest) |
void |
serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
serveImage(ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
protected boolean |
validateChallenge(javax.servlet.http.HttpServletRequest request) |
protected boolean |
validateChallenge(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(PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
check in interface com.liferay.portal.kernel.captcha.Captchacom.liferay.portal.kernel.captcha.CaptchaExceptionpublic 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(PortletRequest portletRequest)
isEnabled in interface com.liferay.portal.kernel.captcha.Captchapublic void serveImage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
serveImage in interface com.liferay.portal.kernel.captcha.CaptchaIOExceptionpublic void serveImage(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException
serveImage in interface com.liferay.portal.kernel.captcha.CaptchaIOExceptionprotected 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 void incrementCounter(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(Integer count)
protected boolean isExceededMaxChallenges(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(PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
com.liferay.portal.kernel.captcha.CaptchaException