com.atlassian.confluence.security
Class DistortedCaptchaEngine

java.lang.Object
  extended by com.octo.captcha.engine.image.ImageCaptchaEngine
      extended by com.atlassian.confluence.security.DistortedCaptchaEngine
All Implemented Interfaces:
com.octo.captcha.engine.CaptchaEngine
Direct Known Subclasses:
ConfluenceCaptchaEngine

public class DistortedCaptchaEngine
extends com.octo.captcha.engine.image.ImageCaptchaEngine

The captcha as used by FishEye/Crucible.

Adds distortion to the captcha image. The engine has two CaptchaFactories, the default one and an easier one. During runtime we decide which factory to use depending on the setting of the dark feature.


Field Summary
static Color BACKGROUND_COLOR
           
static String DARKFEATURE_KEY_EASY_CAPTCHA
           
 
Constructor Summary
DistortedCaptchaEngine()
           
 
Method Summary
 DarkFeaturesManager getDarkFeaturesManager()
           
 com.octo.captcha.CaptchaFactory[] getFactories()
           
 com.octo.captcha.image.ImageCaptcha getNextImageCaptcha()
           
 com.octo.captcha.image.ImageCaptcha getNextImageCaptcha(Locale locale)
           
 void setFactories(com.octo.captcha.CaptchaFactory[] captchaFactories)
           
 
Methods inherited from class com.octo.captcha.engine.image.ImageCaptchaEngine
getNextCaptcha, getNextCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKGROUND_COLOR

public static final Color BACKGROUND_COLOR

DARKFEATURE_KEY_EASY_CAPTCHA

public static final String DARKFEATURE_KEY_EASY_CAPTCHA
See Also:
Constant Field Values
Constructor Detail

DistortedCaptchaEngine

public DistortedCaptchaEngine()
Method Detail

getDarkFeaturesManager

public DarkFeaturesManager getDarkFeaturesManager()

getNextImageCaptcha

public com.octo.captcha.image.ImageCaptcha getNextImageCaptcha()
Specified by:
getNextImageCaptcha in class com.octo.captcha.engine.image.ImageCaptchaEngine

getNextImageCaptcha

public com.octo.captcha.image.ImageCaptcha getNextImageCaptcha(Locale locale)
Specified by:
getNextImageCaptcha in class com.octo.captcha.engine.image.ImageCaptchaEngine

getFactories

public com.octo.captcha.CaptchaFactory[] getFactories()

setFactories

public void setFactories(com.octo.captcha.CaptchaFactory[] captchaFactories)
                  throws com.octo.captcha.engine.CaptchaEngineException
Throws:
com.octo.captcha.engine.CaptchaEngineException


Copyright © 2003-2013 Atlassian. All Rights Reserved.