hudson.security.captcha
Class JcaptchaSupport

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.security.captcha.CaptchaSupport>
      extended by hudson.security.captcha.CaptchaSupport
          extended by hudson.security.captcha.JcaptchaSupport
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.security.captcha.CaptchaSupport>

public class JcaptchaSupport
extends hudson.security.captcha.CaptchaSupport

Captcha Support for Hudson Security Realm Using http://jcaptcha.sourceforge.net/

Author:
Winston Prakash

Nested Class Summary
static class JcaptchaSupport.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
JcaptchaSupport()
           
 
Method Summary
 void generateImage(String id, OutputStream ios)
          Generates a captcha image.
 boolean validateCaptcha(String id, String text)
          Validates the captcha.
 
Methods inherited from class hudson.security.captcha.CaptchaSupport
all, getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcaptchaSupport

@DataBoundConstructor
public JcaptchaSupport()
Method Detail

validateCaptcha

public boolean validateCaptcha(String id,
                               String text)
Validates the captcha.

Specified by:
validateCaptcha in class hudson.security.captcha.CaptchaSupport

generateImage

public void generateImage(String id,
                          OutputStream ios)
                   throws IOException
Generates a captcha image.

Specified by:
generateImage in class hudson.security.captcha.CaptchaSupport
Throws:
IOException


Copyright © 2004-2011. All Rights Reserved.