Class ConfluenceImageCaptchaService

java.lang.Object
com.octo.captcha.service.AbstractCaptchaService
com.atlassian.confluence.security.ConfluenceImageCaptchaService
All Implemented Interfaces:
com.octo.captcha.service.CaptchaService, com.octo.captcha.service.image.ImageCaptchaService

public class ConfluenceImageCaptchaService extends com.octo.captcha.service.AbstractCaptchaService implements com.octo.captcha.service.image.ImageCaptchaService
  • Field Summary

    Fields inherited from class com.octo.captcha.service.AbstractCaptchaService

    engine, logger, store
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfluenceImageCaptchaService(com.octo.captcha.service.captchastore.CaptchaStore store, com.octo.captcha.engine.CaptchaEngine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    getChallengeClone(com.octo.captcha.Captcha captcha)
     
     
     
    void
    setCaptchaEngine(com.octo.captcha.engine.CaptchaEngine captchaEngine)
     

    Methods inherited from class com.octo.captcha.service.AbstractCaptchaService

    generateAndStoreCaptcha, getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID, validateResponseForID

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.octo.captcha.service.CaptchaService

    getChallengeForID, getChallengeForID, getQuestionForID, getQuestionForID, validateResponseForID
  • Constructor Details

    • ConfluenceImageCaptchaService

      public ConfluenceImageCaptchaService(com.octo.captcha.service.captchastore.CaptchaStore store, com.octo.captcha.engine.CaptchaEngine engine)
  • Method Details

    • getImageChallengeForID

      public BufferedImage getImageChallengeForID(String ID) throws com.octo.captcha.service.CaptchaServiceException
      Specified by:
      getImageChallengeForID in interface com.octo.captcha.service.image.ImageCaptchaService
      Throws:
      com.octo.captcha.service.CaptchaServiceException
    • getImageChallengeForID

      public BufferedImage getImageChallengeForID(String ID, Locale locale) throws com.octo.captcha.service.CaptchaServiceException
      Specified by:
      getImageChallengeForID in interface com.octo.captcha.service.image.ImageCaptchaService
      Throws:
      com.octo.captcha.service.CaptchaServiceException
    • getChallengeClone

      protected Object getChallengeClone(com.octo.captcha.Captcha captcha)
      Specified by:
      getChallengeClone in class com.octo.captcha.service.AbstractCaptchaService
    • setCaptchaEngine

      public void setCaptchaEngine(com.octo.captcha.engine.CaptchaEngine captchaEngine)
      Specified by:
      setCaptchaEngine in interface com.octo.captcha.service.image.ImageCaptchaService