Package hudson.security.captcha
Class 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
Returns all the registeredCaptchaSupport
descriptors.abstract void
generateImage
(String id, OutputStream ios) By default looks for a nested class (conventionally namedDescriptorImpl
) implementingDescriptor
and marked withExtension
.abstract boolean
validateCaptcha
(String id, String text)
-
Constructor Details
-
CaptchaSupport
public CaptchaSupport()
-
-
Method Details
-
all
Returns all the registeredCaptchaSupport
descriptors. -
validateCaptcha
-
generateImage
- Throws:
IOException
-
getDescriptor
Description copied from class:AbstractDescribableImpl
By default looks for a nested class (conventionally namedDescriptorImpl
) implementingDescriptor
and marked withExtension
.Gets the descriptor for this instance.
Descriptor
is a singleton for every concreteDescribable
implementation, 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:
getDescriptor
in interfaceDescribable<CaptchaSupport>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<CaptchaSupport>
-