hudson.security.captcha
Class CaptchaSupport

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

public abstract class CaptchaSupport
extends AbstractDescribableImpl<CaptchaSupport>
implements ExtensionPoint

Extension point for adding Captcha Support to User Registration Page CaptchaSupport.

This object can have an optional config.jelly to configure the Captcha Support

A default constructor is needed to create CaptchaSupport in the default configuration.

Since:
1.416
Author:
Winston Prakash
See Also:
CaptchaSupportDescriptor

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
CaptchaSupport()
           
 
Method Summary
static DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>> all()
          Returns all the registered CaptchaSupport descriptors.
abstract  void generateImage(String id, OutputStream ios)
           
 CaptchaSupportDescriptor getDescriptor()
          Gets the descriptor for this instance.
abstract  boolean validateCaptcha(String id, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptchaSupport

public CaptchaSupport()
Method Detail

all

public static DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>> all()
Returns all the registered CaptchaSupport descriptors.


validateCaptcha

public abstract boolean validateCaptcha(String id,
                                        String text)

generateImage

public abstract void generateImage(String id,
                                   OutputStream ios)
                            throws IOException
Throws:
IOException

getDescriptor

public CaptchaSupportDescriptor getDescriptor()
Description copied from interface: Describable
Gets the descriptor for this instance.

Descriptor is a singleton for every concrete Describable implementation, so if a.getClass()==b.getClass() then a.getDescriptor()==b.getDescriptor() must hold.

Specified by:
getDescriptor in interface Describable<CaptchaSupport>
Overrides:
getDescriptor in class AbstractDescribableImpl<CaptchaSupport>


Copyright © 2004-2013. All Rights Reserved.