Class ClickCaptchaGenerator
java.lang.Object
cloud.opencode.base.captcha.interactive.ClickCaptchaGenerator
- All Implemented Interfaces:
CaptchaGenerator
Click Captcha Generator - Generates click verification CAPTCHA
点击验证码生成器 - 生成点击验证验证码
This generator creates click-based interactive CAPTCHAs where users must click on specific characters in order.
此生成器创建基于点击的交互式验证码, 用户必须按顺序点击特定字符。
Features | 主要功能:
- Click-based interactive verification - 基于点击的交互式验证
- Character position tracking - 字符位置跟踪
Usage Examples | 使用示例:
CaptchaGenerator gen = new ClickCaptchaGenerator();
Captcha captcha = gen.generate(config);
Security | 安全性:
- Thread-safe: Yes (stateless) - 线程安全: 是(无状态)
- Null-safe: No (config must not be null) - 空值安全: 否(配置不能为null)
- Since:
- JDK 25, opencode-base-captcha V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(CaptchaConfig config) Generates a CAPTCHA with the specified configuration.getType()Gets the supported CAPTCHA type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CaptchaGenerator
generate
-
Constructor Details
-
ClickCaptchaGenerator
public ClickCaptchaGenerator()
-
-
Method Details
-
generate
Description copied from interface:CaptchaGeneratorGenerates a CAPTCHA with the specified configuration. 使用指定配置生成验证码。- Specified by:
generatein interfaceCaptchaGenerator- Parameters:
config- the configuration | 配置- Returns:
- the generated CAPTCHA | 生成的验证码
-
getType
Description copied from interface:CaptchaGeneratorGets the supported CAPTCHA type. 获取支持的验证码类型。- Specified by:
getTypein interfaceCaptchaGenerator- Returns:
- the CAPTCHA type | 验证码类型
-