Package com.octo.captcha.service.image

Examples of com.octo.captcha.service.image.DefaultManageableImageCaptchaService


   @Create
   public void create()
   {
      if (service == null)
      {
         service = new DefaultManageableImageCaptchaService();
      }
   }
View Full Code Here


  public static ImageCaptchaService captchaService() {
    try {
      if (_captchaService == null) {
        String captchaEngineClass = ERXProperties.stringForKeyWithDefault("er.captcha.captchaEngineClass", ERCaptchaEngine.class.getName());
        CaptchaEngine captchaEngine = (CaptchaEngine) Class.forName(captchaEngineClass).newInstance();
        _captchaService = new DefaultManageableImageCaptchaService(new FastHashMapCaptchaStore(), captchaEngine, 180, 100000, 75000);
      }
      return _captchaService;
    }
    catch (Throwable t) {
      throw new RuntimeException("Failed to initialize captcha engine.", t);
View Full Code Here

    private static final long serialVersionUID = 1L;
    private volatile ImageCaptchaService imageCaptchaService;

    protected ImageCaptchaService getImageCaptchaService() {
        if (imageCaptchaService == null)
            imageCaptchaService = new DefaultManageableImageCaptchaService();
        return imageCaptchaService;
    }
View Full Code Here

   }
  
   @Create
   public void create()
   {
      service = new DefaultManageableImageCaptchaService();
   }
View Full Code Here

TOP

Related Classes of com.octo.captcha.service.image.DefaultManageableImageCaptchaService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.