org.opencms.frontend.templateone.form
Class CmsCaptchaEngine

java.lang.Object
  extended by ImageCaptchaEngine
      extended by org.opencms.frontend.templateone.form.CmsCaptchaEngine

public class CmsCaptchaEngine
extends ImageCaptchaEngine

A captcha engine using a Gimpy factory to create captchas.


Constructor Summary
CmsCaptchaEngine(CmsCaptchaSettings captchaSettings)
          Creates a new Captcha engine.
 
Method Summary
 CaptchaFactory[] getFactories()
          Returns the hardcoded factory (array of length 1) that is used.
 com.octo.captcha.image.ImageCaptchaFactory getImageCaptchaFactory()
          This method build a ImageCaptchaFactory.
protected  void initGimpyFactory()
          Initializes a Gimpy captcha factory.
 void setFactories(CaptchaFactory[] arg0)
          This does nothing.
 void setSettings(CmsCaptchaSettings settings)
          Sets the settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsCaptchaEngine

public CmsCaptchaEngine(CmsCaptchaSettings captchaSettings)
Creates a new Captcha engine.

Parameters:
captchaSettings - the settings to render captcha images
Method Detail

setSettings

public void setSettings(CmsCaptchaSettings settings)
Sets the settings.

Parameters:
settings - the settings to set

initGimpyFactory

protected void initGimpyFactory()
Initializes a Gimpy captcha factory.


getFactories

public CaptchaFactory[] getFactories()
Returns the hardcoded factory (array of length 1) that is used.

Returns:
the hardcoded factory (array of length 1) that is used
See Also:
com.octo.captcha.engine.CaptchaEngine#getFactories()

setFactories

public void setFactories(CaptchaFactory[] arg0)
                  throws CaptchaEngineException
This does nothing.

A hardcored factory for deformation is used.

Throws:
CaptchaEngineException
See Also:
com.octo.captcha.engine.CaptchaEngine#setFactories(com.octo.captcha.CaptchaFactory[])

getImageCaptchaFactory

public com.octo.captcha.image.ImageCaptchaFactory getImageCaptchaFactory()
This method build a ImageCaptchaFactory.

Returns:
a CaptchaFactory