Class DefaultCaptchaManager

  • All Implemented Interfaces:
    CaptchaManager, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class DefaultCaptchaManager
    extends Object
    implements CaptchaManager, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    • Constructor Detail

      • DefaultCaptchaManager

        public DefaultCaptchaManager()
    • Method Detail

      • setCaptchaStore

        public void setCaptchaStore​(com.octo.captcha.service.captchastore.CaptchaStore captchaStore)
      • setCaptchaEngineClassName

        public void setCaptchaEngineClassName​(String captchaEngineClassName)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • setDebugMode

        public void setDebugMode​(boolean value)
        Description copied from interface: CaptchaManager
        If true the captcha manager will accept "DEBUG" for every generated capthca and reject all other tokens. This is meant primarly for acceptance testing user interface elements with Captcha forms.

        If true the exclude list is ignored and a Captcha prompt is supplied for all requests

        Specified by:
        setDebugMode in interface CaptchaManager
      • addCaptchaGroups

        public Collection addCaptchaGroups​(Collection groupList)
        Description copied from interface: CaptchaManager
        Method adds a Collection of group names to the existing groups for the captcha group setting.
        Specified by:
        addCaptchaGroups in interface CaptchaManager
        groupList - Collection of group names
        Collection of added group names
      • removeCaptchaGroup

        public void removeCaptchaGroup​(String group)
        Description copied from interface: CaptchaManager
        Removes a group from the list of captcha groups
        Specified by:
        removeCaptchaGroup in interface CaptchaManager
        group - String
      • showCaptchaForCurrentUser

        public boolean showCaptchaForCurrentUser()
        Description copied from interface: CaptchaManager
        Determines whether a capture has to be shown for the currently logged in users
        Specified by:
        showCaptchaForCurrentUser in interface CaptchaManager
      • setSettingsManager

        public void setSettingsManager​(SettingsManager settingsManager)
      • setUserAccessor

        public void setUserAccessor​(UserAccessor userAccessor)
      • setEventPublisher

        public void setEventPublisher​(com.atlassian.event.api.EventPublisher eventPublisher)
      • setImageCaptchaService

        public void setImageCaptchaService​(com.octo.captcha.service.image.ImageCaptchaService imageCaptchaService)
        Specified by:
        setImageCaptchaService in interface CaptchaManager