BotDetect Java CAPTCHA Enumerations API Reference
A number of enumerations is used to represent basic Captcha options available in BotDetect Java CAPTCHA.
- com.captcha.botdetect.ImageColorMode
- com.captcha.botdetect.CodeStyle
- com.captcha.botdetect.ImageStyle
- com.captcha.botdetect.SoundStyle
- com.captcha.botdetect.ImageFormat
- com.captcha.botdetect.SoundFormat
- com.captcha.botdetect.SoundRegenerationMode
- com.captcha.botdetect.HelpLinkMode
- com.captcha.botdetect.internal.core.captchacode.CodeGenerationPurpose
- com.captcha.botdetect.internal.core.captchacode.validation.ValidationAttemptOrigin
com.captcha.botdetect.ImageColorMode
Enumerates all BotDetect Captcha image color modes.
com.captcha.botdetect.ImageColorMode Enumeration members | ||
---|---|---|
COLOR | Captcha image is rendered in color, and it becomes greyscale on hover | |
GRAYSCALE | Captcha image is rendered in grayscale, and it becomes color on hover | |
NONE | Captcha image is still rendered in color by default and nothing happens on hover |
com.captcha.botdetect.CodeStyle
Enumerates all BotDetect Captcha code styles.
com.captcha.botdetect.CodeStyle Enumeration members | ||
---|---|---|
ALPHANUMERIC | Randomly generated Captcha codes will use both alphabet and numeric characters defined for the current character set | |
ALPHA | Randomly generated Captcha codes will use only alphabet characters defined for the current character set | |
NUMERIC | Randomly generated Captcha codes will use only numeric characters defined for the current character set |
com.captcha.botdetect.ImageStyle
Enumerates all BotDetect Captcha image styles.
com.captcha.botdetect.ImageStyle Enumeration members | ||
---|---|---|
ANCIENT_MOSAIC | ||
BLACK_OVERLAP | ||
BUBBLES | ||
BULLETS | ||
BULLETS2 | ||
CAUGHT_IN_THE_NET | ||
CAUGHT_IN_THE_NET2 | ||
CHALKBOARD | ||
CHESS | ||
CHESS3D | ||
CHIPPED | ||
CIRCLES | ||
COLLAGE | ||
CORROSION | ||
CROSS_SHADOW | ||
CROSS_SHADOW2 | ||
CUT | ||
DARTS | ||
DISTORTION | ||
ELECTRIC | ||
FINGERPRINTS | ||
FLASH | ||
GHOSTLY | ||
GRAFFITI | ||
GRAFFITI2 | ||
HALO | ||
IN_BANDAGES | ||
JAIL | ||
LEGO | ||
MASS | ||
MELTING_HEAT | ||
MELTING_HEAT2 | ||
NEGATIVE | ||
NEON | ||
NEON2 | ||
OVERLAP | ||
OVERLAP2 | ||
PAINT_MESS | ||
RADAR | ||
RIPPLE | ||
RIPPLE2 | ||
ROUGH | ||
SNOW | ||
SPIDER_WEB | ||
SPIDER_WEB2 | ||
SPLIT | ||
SPLIT2 | ||
STITCH | ||
STRIPPY | ||
SUN_AND_WARM_AIR | ||
SUNRAYS | ||
SUNRAYS2 | ||
THICK_THIN_LINES | ||
THICK_THIN_LINES2 | ||
THIN_WAVY_LETTERS | ||
VERTIGO | ||
WANTED_CIRCULAR | ||
WAVE | ||
WAVY_CHESS | ||
WAVY_COLOR_LETTERS |
com.captcha.botdetect.SoundStyle
Enumerates all BotDetect Captcha sound styles.
com.captcha.botdetect.SoundStyle Enumeration Members | ||
---|---|---|
ALIEN | ALIEN |
|
CASSETTE | CASSETTE |
|
CHORD | CHORD |
|
COLLAPSE | COLLAPSE |
|
DISPATCH | DISPATCH |
|
ELECTRICITY | ELECTRICITY |
|
GUN | GUN |
|
HELICOPTER | HELICOPTER |
|
HIVE_MIND | HIVE_MIND |
|
INDUSTRIAL | INDUSTRIAL |
|
MAGIC | MAGIC |
|
OCEAN | OCEAN |
|
PULSE | PULSE |
|
RADIO | RADIO |
|
RED_ALERT | RED_ALERT |
|
ROBOT | ROBOT |
|
SCRATCHED | SCRATCHED |
|
SEEKER | SEEKER |
|
SYNTH | SYNTH |
|
WORKSHOP | WORKSHOP |
com.captcha.botdetect.ImageFormat
Enumerates all BotDetect Captcha image formats.
com.captcha.botdetect.ImageFormat Enumeration members | ||
---|---|---|
BMP | Captcha images will be converted to the BMP format. Not most suitable for web purposes because of large resulting image size. | |
JPEG | Captcha images will be converted to the JPEG image format. Results in good image quality and reasonable image sizes; used by default | |
GIF | Captcha images will be converted to the GIF image format. Only suitable for some image styles, resulting in lower image quality with the more color dynamic image styles | |
PNG | Captcha images will be converted to the PNG image format. Results in good image quality and image size, but not supported in older versions of Internet Explorer (would be used by default if this wasn't the case) |
com.captcha.botdetect.SoundFormat
Enumerates all BotDetect Captcha sound output formats.
com.captcha.botdetect.SoundFormat Enumeration Members | ||
---|---|---|
WAV_PCM_16BIT_8KHZ_MONO | The default format, used for underlying Captcha sound generation. Reasonable sound quality for Captcha purposes, resulting in moderate sound file sizes. Supported by most clients | |
WAV_PCM_8BIT_8KHZ_MONO | Lower quality Wav format option, resulting in smaller sound file downloads while retaining good enough quality in most cases |
com.captcha.botdetect.botdetect.SoundRegenerationMode
Enumerates all BotDetect Captcha sound regeneration modes.
SoundRegenerationMode Enumeration Members | ||
---|---|---|
NONE | Generate only one sound response per Captcha code, cache it on the server, and serve it for all consecutive sound requests. | |
LIMITED | Allow generation of a limited number of different sound responses (the minimum required to make Captcha audio work in all supported client browsers and devices), and automatically change the Captcha code on the client for consecutive sound requests if needed and possible. | |
UNLIMITED | Each audio request will generate a new Captcha sound response (previous BotDetect version behavior). |
com.captcha.botdetect.HelpLinkMode
Enumerates all BotDetect Captcha help link modes.
com.captcha.botdetect.HelpLinkMode Enumeration members | ||
---|---|---|
TEXT | Captcha image will be help link | |
IMAGE | Help link will be displayed as text below Captcha image |
com.captcha.botdetect.internal.core.captchacode.
CodeGenerationPurpose
Enumerates all BotDetect Captcha code generation purposes.
CodeGenerationPurpose Enumeration Members | ||
---|---|---|
IMAGE_GENERATION | The Captcha code will be used for Captcha image generation | |
SOUND_GENERATION | The Captcha code will be used for Captcha sound generation |
com.captcha.botdetect.internal.core.captchacode.validation.
ValidationAttemptOrigin
Enumerates all BotDetect Captcha validation attempt origins. Different origins can result in different validation rules being applied.
ValidationAttemptOrigin Enumeration Members | ||
---|---|---|
UNKNOWN | The validation origin isn't set | |
SERVER | The validation attempt is a result of server-side code called from a full postback | |
CLIENT | The validation attempt is a result of server-side code called from an Ajax call |
Please Note
BotDetect Java Captcha Library v4.0.Beta3.7 is an in-progress port of BotDetect 4 Captcha, and we need you to guide our efforts towards a polished product. Please let us know if you encounter any bugs, implementation issues, or a usage scenario you would like to discuss.
Current BotDetect Versions
-
BotDetect ASP.NET CAPTCHA
2019-07-22v4.4.2 -
BotDetect Java CAPTCHA
2019-07-22v4.0.Beta3.7 -
BotDetect PHP CAPTCHA
2019-07-22v4.2.5