Class SimpleCaptchaImpl

java.lang.Object
com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl
All Implemented Interfaces:
com.liferay.portal.kernel.captcha.Captcha
Direct Known Subclasses:
ReCaptchaImpl

public class SimpleCaptchaImpl extends Object implements com.liferay.portal.kernel.captcha.Captcha
  • Field Details

    • captchaProvider

      protected CaptchaProvider captchaProvider
    • portal

      protected com.liferay.portal.kernel.util.Portal portal
    • release

      protected com.liferay.portal.kernel.model.Release release
    • servletContext

      protected javax.servlet.ServletContext servletContext
  • Constructor Details

    • SimpleCaptchaImpl

      public SimpleCaptchaImpl()
  • Method Details

    • check

      public void check(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
      Specified by:
      check in interface com.liferay.portal.kernel.captcha.Captcha
      Throws:
      com.liferay.portal.kernel.captcha.CaptchaException
    • check

      public void check(javax.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
      Specified by:
      check in interface com.liferay.portal.kernel.captcha.Captcha
      Throws:
      com.liferay.portal.kernel.captcha.CaptchaException
    • enforceCaptcha

      public void enforceCaptcha(javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      enforceCaptcha in interface com.liferay.portal.kernel.captcha.Captcha
    • enforceCaptcha

      public void enforceCaptcha(javax.portlet.PortletRequest portletRequest)
      Specified by:
      enforceCaptcha in interface com.liferay.portal.kernel.captcha.Captcha
    • getName

      public String getName()
      Specified by:
      getName in interface com.liferay.portal.kernel.captcha.Captcha
    • isEnabled

      public boolean isEnabled(javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      isEnabled in interface com.liferay.portal.kernel.captcha.Captcha
    • isEnabled

      public boolean isEnabled(javax.portlet.PortletRequest portletRequest)
      Specified by:
      isEnabled in interface com.liferay.portal.kernel.captcha.Captcha
    • render

      public void render(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException
      Specified by:
      render in interface com.liferay.portal.kernel.captcha.Captcha
      Throws:
      IOException
    • serveImage

      public void serveImage(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException
      Specified by:
      serveImage in interface com.liferay.portal.kernel.captcha.Captcha
      Throws:
      IOException
    • serveImage

      public String serveImage(OutputStream outputStream) throws IOException
      Specified by:
      serveImage in interface com.liferay.portal.kernel.captcha.Captcha
      Throws:
      IOException
    • serveImage

      public void serveImage(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws IOException
      Specified by:
      serveImage in interface com.liferay.portal.kernel.captcha.Captcha
      Throws:
      IOException
    • activate

      protected void activate()
    • getBackgroundProducer

      protected nl.captcha.backgrounds.BackgroundProducer getBackgroundProducer()
    • getGimpyRenderer

      protected nl.captcha.gimpy.GimpyRenderer getGimpyRenderer()
    • getHeight

      protected int getHeight()
    • getNoiseProducer

      protected nl.captcha.noise.NoiseProducer getNoiseProducer()
    • getSimpleCaptcha

      protected nl.captcha.Captcha getSimpleCaptcha()
    • getTaglibPath

      protected String getTaglibPath()
    • getTextProducer

      protected nl.captcha.text.producer.TextProducer getTextProducer()
    • getWidth

      protected int getWidth()
    • getWordRenderer

      protected nl.captcha.text.renderer.WordRenderer getWordRenderer()
    • incrementCounter

      protected void incrementCounter(javax.servlet.http.HttpServletRequest httpServletRequest)
    • incrementCounter

      protected Integer incrementCounter(Integer count)
    • incrementCounter

      protected void incrementCounter(javax.portlet.PortletRequest portletRequest)
    • initBackgroundProducers

      protected void initBackgroundProducers()
    • initGimpyRenderers

      protected void initGimpyRenderers()
    • initNoiseProducers

      protected void initNoiseProducers()
    • initTextProducers

      protected void initTextProducers()
    • initWordRenderers

      protected void initWordRenderers()
    • validateChallenge

      protected boolean validateChallenge(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
      Throws:
      com.liferay.portal.kernel.captcha.CaptchaException
    • validateChallenge

      protected boolean validateChallenge(javax.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.captcha.CaptchaException
      Throws:
      com.liferay.portal.kernel.captcha.CaptchaException