hudson.security.captcha
Class CaptchaSupport
java.lang.Object
hudson.model.AbstractDescribableImpl<CaptchaSupport>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaptchaSupport
public CaptchaSupport()
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.