public abstract class CaptchaSupport extends AbstractDescribableImpl<CaptchaSupport> implements ExtensionPoint
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.
CaptchaSupportDescriptor
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
CaptchaSupport() |
Modifier and Type | Method and Description |
---|---|
static DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>> |
all()
Returns all the registered
CaptchaSupport descriptors. |
abstract void |
generateImage(String id,
OutputStream ios) |
CaptchaSupportDescriptor |
getDescriptor()
By default looks for a nested class (conventionally named
DescriptorImpl ) implementing Descriptor and marked with Extension . |
abstract boolean |
validateCaptcha(String id,
String text) |
public static DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>> all()
CaptchaSupport
descriptors.public abstract void generateImage(String id, OutputStream ios) throws IOException
IOException
public CaptchaSupportDescriptor getDescriptor()
AbstractDescribableImpl
DescriptorImpl
) implementing Descriptor
and marked with Extension
.
Gets the descriptor for this instance.
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<CaptchaSupport>
getDescriptor
in class AbstractDescribableImpl<CaptchaSupport>
Copyright © 2017. All rights reserved.