Package 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 PageCaptchaSupport.This object can have an optional
config.jellyto configure the Captcha SupportA 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
Constructors Constructor Description CaptchaSupport()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>>all()Returns all the registeredCaptchaSupportdescriptors.abstract voidgenerateImage(String id, OutputStream ios)CaptchaSupportDescriptorgetDescriptor()By default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.abstract booleanvalidateCaptcha(String id, String text)
-
-
-
Method Detail
-
all
public static DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>> all()
Returns all the registeredCaptchaSupportdescriptors.
-
generateImage
public abstract void generateImage(String id, OutputStream ios) throws IOException
- Throws:
IOException
-
getDescriptor
public CaptchaSupportDescriptor getDescriptor()
Description copied from class:AbstractDescribableImplBy default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.Gets the descriptor for this instance.
Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptorin interfaceDescribable<CaptchaSupport>- Overrides:
getDescriptorin classAbstractDescribableImpl<CaptchaSupport>
-
-