public class SimpleCaptchaImpl
extends java.lang.Object
implements com.liferay.portal.kernel.captcha.Captcha
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.util.Portal |
portal |
protected com.liferay.portal.kernel.model.Release |
release |
| Constructor and Description |
|---|
SimpleCaptchaImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected void |
activate(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
check(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
check(javax.portlet.PortletRequest portletRequest) |
void |
enforceCaptcha(javax.servlet.http.HttpServletRequest httpServletRequest) |
void |
enforceCaptcha(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 httpServletRequest) |
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 httpServletRequest) |
boolean |
isEnabled(javax.portlet.PortletRequest portletRequest) |
void |
serveImage(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
java.lang.String |
serveImage(java.io.OutputStream outputStream) |
void |
serveImage(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.ResourceResponse resourceResponse) |
protected void |
setCaptchaConfiguration(CaptchaConfiguration captchaConfiguration) |
protected boolean |
validateChallenge(javax.servlet.http.HttpServletRequest httpServletRequest) |
protected boolean |
validateChallenge(javax.portlet.PortletRequest portletRequest) |
protected com.liferay.portal.kernel.util.Portal portal
protected com.liferay.portal.kernel.model.Release release
public void check(javax.servlet.http.HttpServletRequest httpServletRequest)
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 void enforceCaptcha(javax.servlet.http.HttpServletRequest httpServletRequest)
enforceCaptcha in interface com.liferay.portal.kernel.captcha.Captchapublic void enforceCaptcha(javax.portlet.PortletRequest portletRequest)
enforceCaptcha in interface com.liferay.portal.kernel.captcha.Captchapublic java.lang.String getTaglibPath()
getTaglibPath in interface com.liferay.portal.kernel.captcha.Captchapublic boolean isEnabled(javax.servlet.http.HttpServletRequest httpServletRequest)
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 httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException
serveImage in interface com.liferay.portal.kernel.captcha.Captchajava.io.IOExceptionpublic java.lang.String serveImage(java.io.OutputStream outputStream)
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 void activate(java.util.Map<java.lang.String,java.lang.Object> properties)
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 httpServletRequest)
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 void setCaptchaConfiguration(CaptchaConfiguration captchaConfiguration)
protected boolean validateChallenge(javax.servlet.http.HttpServletRequest httpServletRequest)
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