/* * JCaptcha, the open source java framework for captcha definition and integration * Copyright (c) 2007 jcaptcha.net. All Rights Reserved. * See the LICENSE.txt file distributed with this package. */ package com.octo.captcha.service.image; import com.octo.captcha.service.CaptchaService; import com.octo.captcha.service.CaptchaServiceException; import java.awt.image.BufferedImage; import java.util.Locale; /** * <p/> * Specialize a Captcha service that return Image Captchas </p> * * @author <a href="mailto:mag@jcaptcha.net">Marc-Antoine Garrigue</a> * @version 1.0 */ public interface ImageCaptchaService extends CaptchaService { /** * Method to retrive the image challenge corresponding to the given ticket. * * @param ID the ticket * * @return the challenge * * @throws com.octo.captcha.service.CaptchaServiceException * if the ticket is invalid */ BufferedImage getImageChallengeForID(String ID) throws CaptchaServiceException; /** * Method to retrive the image challenge corresponding to the given ticket. * * @param ID the ticket * * @return the challenge * * @throws com.octo.captcha.service.CaptchaServiceException * if the ticket is invalid */ BufferedImage getImageChallengeForID(String ID, Locale locale) throws CaptchaServiceException; }