Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractCaptchaGenerator - Class in cloud.opencode.base.captcha.generator
-
Abstract Captcha Generator - Base class for CAPTCHA generators 抽象验证码生成器 - 验证码生成器的基类
- AbstractCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
- addFrame(BufferedImage) - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Adds a frame to the GIF.
- alpha() - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates an alphabetic CAPTCHA generator.
- alpha() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates an alphabetic CAPTCHA.
- ALPHA - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Alphabetic CAPTCHA (letters only) 字母验证码(仅字母)
- ALPHA - Static variable in class cloud.opencode.base.captcha.support.CaptchaChars
-
Alphabetic mixed case characters | 字母混合大小写字符
- ALPHA_LOWER - Static variable in class cloud.opencode.base.captcha.support.CaptchaChars
-
Alphabetic lowercase characters | 字母小写字符
- ALPHA_UPPER - Static variable in class cloud.opencode.base.captcha.support.CaptchaChars
-
Alphabetic uppercase characters | 字母大写字符
- alphanumeric() - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates an alphanumeric CAPTCHA generator.
- alphanumeric() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates an alphanumeric CAPTCHA.
- ALPHANUMERIC - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Alphanumeric CAPTCHA (letters and digits) 字母数字验证码(字母和数字)
- ALPHANUMERIC - Static variable in class cloud.opencode.base.captcha.support.CaptchaChars
-
Alphanumeric characters (avoiding similar characters like 0/O, 1/l/I) | 字母数字字符(避免相似字符)
- analyze(String, Duration, boolean) - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer
-
Analyzes behavior for a client.
- answer() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
answerrecord component. - AntiBotStrategy - Class in cloud.opencode.base.captcha.security
-
Anti-Bot Strategy - Adaptive CAPTCHA difficulty strategy 反机器人策略 - 自适应验证码难度策略
- AntiBotStrategy(BehaviorAnalyzer) - Constructor for class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Creates a new strategy with the given analyzer.
- applyTo(CaptchaConfig.Builder) - Method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Applies this strength to a configuration builder.
- arithmetic() - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates an arithmetic CAPTCHA generator.
- arithmetic() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates an arithmetic CAPTCHA.
- ARITHMETIC - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Arithmetic CAPTCHA (math expression) 算术验证码(数学表达式)
- ArithmeticCaptchaGenerator - Class in cloud.opencode.base.captcha.generator
-
Arithmetic Captcha Generator - Generates arithmetic expression CAPTCHA 算术验证码生成器 - 生成算术表达式验证码
- ArithmeticCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.generator.ArithmeticCaptchaGenerator
B
- backgroundColor(Color) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the background color.
- base64() - Static method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Creates a Base64 renderer.
- Base64CaptchaRenderer - Class in cloud.opencode.base.captcha.renderer
-
Base64 Captcha Renderer - Renders CAPTCHA as Base64 data URL Base64 验证码渲染器 - 将验证码渲染为 Base64 数据 URL
- Base64CaptchaRenderer() - Constructor for class cloud.opencode.base.captcha.renderer.Base64CaptchaRenderer
- BehaviorAnalyzer - Class in cloud.opencode.base.captcha.security
-
Behavior Analyzer - Analyzes user behavior for bot detection 行为分析器 - 分析用户行为以检测机器人
- BehaviorAnalyzer() - Constructor for class cloud.opencode.base.captcha.security.BehaviorAnalyzer
- BehaviorAnalyzer.AnalysisResult - Enum Class in cloud.opencode.base.captcha.security
-
Analysis result enumeration.
- BehaviorAnalyzer.ClientBehavior - Class in cloud.opencode.base.captcha.security
-
Client behavior tracking.
- BehaviorCaptchaValidator - Class in cloud.opencode.base.captcha.validator
-
Behavior Captcha Validator - Validation with behavior analysis 行为验证码验证器 - 带行为分析的验证
- BehaviorCaptchaValidator(CaptchaStore) - Constructor for class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Creates a new behavior validator with the specified store.
- BehaviorCaptchaValidator(CaptchaStore, BehaviorAnalyzer) - Constructor for class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Creates a new behavior validator with custom analyzer.
- build() - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Builds the configuration.
- build() - Method in class cloud.opencode.base.captcha.OpenCaptcha.Builder
-
Builds the OpenCaptcha instance.
- build() - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
-
Builds the RedisCaptchaStore.
- buildCaptcha(CaptchaType, byte[], String, CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Builds a CAPTCHA from generated data.
- builder() - Static method in class cloud.opencode.base.captcha.CaptchaConfig
-
Creates a builder for configuration.
- builder() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a builder for OpenCaptcha.
- builder() - Static method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
-
Creates a new builder.
- Builder() - Constructor for class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
C
- Captcha - Record Class in cloud.opencode.base.captcha
-
Captcha - CAPTCHA data container 验证码 - 验证码数据容器
- Captcha(String, CaptchaType, byte[], String, Map, Instant, Instant) - Constructor for record class cloud.opencode.base.captcha.Captcha
-
Creates an instance of a
Captcharecord class. - CaptchaChars - Class in cloud.opencode.base.captcha.support
-
Captcha Characters - Character generation utilities 验证码字符 - 字符生成工具
- CaptchaConfig - Class in cloud.opencode.base.captcha
-
Captcha Configuration - Configuration for CAPTCHA generation 验证码配置 - 验证码生成配置
- CaptchaConfig.Builder - Class in cloud.opencode.base.captcha
-
Configuration Builder 配置构建器
- CaptchaDifficultyAdapter - Class in cloud.opencode.base.captcha.support
-
Captcha Difficulty Adapter - Adaptive difficulty adjustment 验证码难度适配器 - 自适应难度调整
- CaptchaDifficultyAdapter() - Constructor for class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
- CaptchaException - Exception Class in cloud.opencode.base.captcha.exception
-
Captcha Exception - Base exception for CAPTCHA operations 验证码异常 - 验证码操作的基础异常
- CaptchaException(String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaException
-
Constructs a new exception with the specified message.
- CaptchaException(String, Throwable) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaException
-
Constructs a new exception with the specified message and cause.
- CaptchaException(Throwable) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaException
-
Constructs a new exception with the specified cause.
- CaptchaExpiredException - Exception Class in cloud.opencode.base.captcha.exception
-
Captcha Expired Exception - Thrown when CAPTCHA has expired 验证码过期异常 - 当验证码过期时抛出
- CaptchaExpiredException(String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaExpiredException
-
Constructs a new exception with the captcha ID.
- CaptchaExpiredException(String, String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaExpiredException
-
Constructs a new exception with message and captcha ID.
- CaptchaFontUtil - Class in cloud.opencode.base.captcha.support
-
Captcha Font Utility - Font handling utilities 验证码字体工具 - 字体处理工具
- CaptchaGenerationException - Exception Class in cloud.opencode.base.captcha.exception
-
Captcha Generation Exception - Thrown when CAPTCHA generation fails 验证码生成异常 - 当验证码生成失败时抛出
- CaptchaGenerationException(String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaGenerationException
-
Constructs a new exception with the specified message.
- CaptchaGenerationException(String, CaptchaType) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaGenerationException
-
Constructs a new exception with message and CAPTCHA type.
- CaptchaGenerationException(String, CaptchaType, Throwable) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaGenerationException
-
Constructs a new exception with message, type and cause.
- CaptchaGenerationException(String, Throwable) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaGenerationException
-
Constructs a new exception with message and cause.
- CaptchaGenerator - Interface in cloud.opencode.base.captcha.generator
-
Captcha Generator - Sealed interface for CAPTCHA generation 验证码生成器 - 验证码生成的密封接口
- CaptchaNoiseUtil - Class in cloud.opencode.base.captcha.support
-
Captcha Noise Utility - Noise generation utilities 验证码噪点工具 - 噪点生成工具
- CaptchaNotFoundException - Exception Class in cloud.opencode.base.captcha.exception
-
Captcha Not Found Exception - Thrown when CAPTCHA is not found 验证码未找到异常 - 当验证码未找到时抛出
- CaptchaNotFoundException(String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaNotFoundException
-
Constructs a new exception with the captcha ID.
- CaptchaNotFoundException(String, String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaNotFoundException
-
Constructs a new exception with message and captcha ID.
- CaptchaRateLimiter - Class in cloud.opencode.base.captcha.validator
-
Captcha Rate Limiter - Rate limiting for CAPTCHA requests 验证码速率限制器 - 验证码请求的速率限制
- CaptchaRateLimiter() - Constructor for class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Creates a rate limiter with default settings (10 requests per minute).
- CaptchaRateLimiter(int, Duration) - Constructor for class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Creates a rate limiter with specified settings.
- CaptchaRateLimitException - Exception Class in cloud.opencode.base.captcha.exception
-
Captcha Rate Limit Exception - Thrown when rate limit is exceeded 验证码速率限制异常 - 当超过速率限制时抛出
- CaptchaRateLimitException(String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaRateLimitException
-
Constructs a new exception with the client ID.
- CaptchaRateLimitException(String, Duration) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaRateLimitException
-
Constructs a new exception with client ID and retry duration.
- CaptchaRenderer - Interface in cloud.opencode.base.captcha.renderer
-
Captcha Renderer - Interface for CAPTCHA rendering 验证码渲染器 - 验证码渲染接口
- CaptchaSecurity - Class in cloud.opencode.base.captcha.security
-
Captcha Security - Security utilities for CAPTCHA 验证码安全 - 验证码安全工具
- CaptchaStore - Interface in cloud.opencode.base.captcha.store
-
Captcha Store - Interface for CAPTCHA storage 验证码存储 - 验证码存储接口
- CaptchaStrength - Enum Class in cloud.opencode.base.captcha.support
-
Captcha Strength - CAPTCHA difficulty levels 验证码强度 - 验证码难度级别
- CaptchaType - Enum Class in cloud.opencode.base.captcha
-
Captcha Type - Enumeration of supported CAPTCHA types 验证码类型 - 支持的验证码类型枚举
- CaptchaValidator - Interface in cloud.opencode.base.captcha.validator
-
Captcha Validator - Interface for CAPTCHA validation 验证码验证器 - 验证码验证接口
- CaptchaVerifyException - Exception Class in cloud.opencode.base.captcha.exception
-
Captcha Verify Exception - Thrown when CAPTCHA verification fails 验证码验证异常 - 当验证码验证失败时抛出
- CaptchaVerifyException(String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaVerifyException
-
Constructs a new exception with the captcha ID.
- CaptchaVerifyException(String, String) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaVerifyException
-
Constructs a new exception with captcha ID and provided answer.
- CaptchaVerifyException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.captcha.exception.CaptchaVerifyException
-
Constructs a new exception with message and captcha ID.
- caseSensitive(boolean) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets case sensitivity.
- chinese() - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates a Chinese CAPTCHA generator.
- chinese() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a Chinese CAPTCHA.
- CHINESE - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Chinese CAPTCHA (Chinese characters) 中文验证码(中文字符)
- CHINESE - Static variable in class cloud.opencode.base.captcha.support.CaptchaChars
-
Common Chinese characters for CAPTCHA | 常用中文验证码字符
- ChineseCaptchaGenerator - Class in cloud.opencode.base.captcha.generator
-
Chinese Captcha Generator - Generates Chinese character CAPTCHA 中文验证码生成器 - 生成中文字符验证码
- ChineseCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.generator.ChineseCaptchaGenerator
- clear(String) - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer
-
Clears behavior data for a client.
- clear(String) - Method in class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Clears a client's rate limit.
- clearAll() - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Clears all CAPTCHAs.
- clearAll() - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- clearAll() - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- clearAll() - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Clears all client records.
- clearExpired() - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Clears all expired CAPTCHAs.
- clearExpired() - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- clearExpired() - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- clearExpired() - Method in class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Clears all expired entries.
- clearOld() - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer
-
Clears all old behavior data.
- clearOldRecords() - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Clears old creation records.
- clearOldRecords() - Method in class cloud.opencode.base.captcha.validator.TimeBasedCaptchaValidator
-
Clears old creation time records.
- click() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a click CAPTCHA.
- CLICK - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Click CAPTCHA (click specific areas) 点击验证码(点击特定区域)
- ClickCaptchaGenerator - Class in cloud.opencode.base.captcha.interactive
-
Click Captcha Generator - Generates click verification CAPTCHA 点击验证码生成器 - 生成点击验证验证码
- ClickCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.interactive.ClickCaptchaGenerator
- ClientBehavior() - Constructor for class cloud.opencode.base.captcha.security.BehaviorAnalyzer.ClientBehavior
- close() - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
-
Closes this store and shuts down the cleanup scheduler.
- cloud.opencode.base.captcha - module cloud.opencode.base.captcha
-
OpenCode Base Captcha Module OpenCode Base 验证码模块
- cloud.opencode.base.captcha - package cloud.opencode.base.captcha
-
OpenCode Base Captcha - Zero-dependency CAPTCHA generation library OpenCode Base 验证码 - 零依赖验证码生成库
- cloud.opencode.base.captcha.codec - package cloud.opencode.base.captcha.codec
-
CAPTCHA Codecs 验证码编解码器
- cloud.opencode.base.captcha.exception - package cloud.opencode.base.captcha.exception
-
CAPTCHA Exception Classes 验证码异常类
- cloud.opencode.base.captcha.generator - package cloud.opencode.base.captcha.generator
-
CAPTCHA Generators 验证码生成器
- cloud.opencode.base.captcha.interactive - package cloud.opencode.base.captcha.interactive
-
Interactive CAPTCHA Generators 交互式验证码生成器
- cloud.opencode.base.captcha.renderer - package cloud.opencode.base.captcha.renderer
-
CAPTCHA Renderers 验证码渲染器
- cloud.opencode.base.captcha.security - package cloud.opencode.base.captcha.security
-
CAPTCHA Security 验证码安全
- cloud.opencode.base.captcha.store - package cloud.opencode.base.captcha.store
-
CAPTCHA Storage 验证码存储
- cloud.opencode.base.captcha.support - package cloud.opencode.base.captcha.support
-
CAPTCHA Support Utilities 验证码支持工具
- cloud.opencode.base.captcha.validator - package cloud.opencode.base.captcha.validator
-
CAPTCHA Validators 验证码验证器
- code() - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Returns the value of the
coderecord component. - config(CaptchaConfig) - Method in class cloud.opencode.base.captcha.OpenCaptcha.Builder
-
Sets the configuration.
- CONSISTENT_TIMING - Enum constant in enum class cloud.opencode.base.captcha.security.BehaviorAnalyzer.AnalysisResult
-
Consistent timing suggests automation | 一致的时间表明自动化
- constantTimeEquals(String, String) - Static method in class cloud.opencode.base.captcha.security.CaptchaSecurity
-
Constant-time string comparison to prevent timing attacks.
- Core Classes | 核心类 - Section in package cloud.opencode.base.captcha
- create() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a CAPTCHA with default configuration.
- create() - Static method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Creates a new strategy with a new analyzer.
- create(CaptchaConfig) - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a CAPTCHA with the specified configuration.
- create(CaptchaType) - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a CAPTCHA of the specified type.
- createdAt() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
createdAtrecord component. - createGraphics(BufferedImage, CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Creates graphics for the image.
- createImage(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Creates a buffered image with the specified configuration.
- createMetadata(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Creates metadata for the CAPTCHA.
D
- defaults() - Static method in class cloud.opencode.base.captcha.CaptchaConfig
-
Creates a default configuration.
- deleter(Consumer) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
-
Sets the Redis deleter function.
- drawBackgroundNoise(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws background noise.
- drawCubicCurveLines(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws cubic curve lines on the graphics.
- drawCurveLines(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws curve lines on the graphics.
- drawGradientBackground(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws background with gradient.
- drawInterferencePattern(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws interference pattern.
- drawNoise(Graphics2D, CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Draws noise on the image.
- drawNoiseDots(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws noise dots on the graphics.
- drawNoiseLines(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws noise lines on the graphics.
E
- EASY - Enum constant in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Easy - Minimal noise, clear text 简单 - 最少噪点,清晰文本
- equals(Object) - Method in record class cloud.opencode.base.captcha.Captcha
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Indicates whether some other object is "equal to" this one.
- exists(String) - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Checks if a CAPTCHA exists.
- exists(String) - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- exists(String) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- existsChecker(Function) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
-
Sets the Redis exists checker function.
- expired() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a failed result for expired.
- EXPIRED - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
CAPTCHA expired | 验证码已过期
- expiresAt() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
expiresAtrecord component. - expireTime(Duration) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the expiration time.
- EXTREME - Enum constant in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Extreme - Maximum noise and distortion 极难 - 最大噪点和干扰
F
- finish() - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Finishes the GIF encoding.
- fontColors(Color...) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the font colors.
- fontName(String) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the font name.
- fontSize(float) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the font size.
- forType(CaptchaType) - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates a generator for the specified type.
G
- generate() - Method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Generates a CAPTCHA with default configuration.
- generate() - Method in class cloud.opencode.base.captcha.OpenCaptcha
-
Generates a CAPTCHA and stores it.
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.ArithmeticCaptchaGenerator
- generate(CaptchaConfig) - Method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Generates a CAPTCHA with the specified configuration.
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.ChineseCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.GifCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.ImageCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.generator.SpecCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.interactive.ClickCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.interactive.ImageSelectCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.interactive.RotateCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.interactive.SliderCaptchaGenerator
- generate(CaptchaConfig) - Method in class cloud.opencode.base.captcha.OpenCaptcha
-
Generates a CAPTCHA with configuration and stores it.
- generate(CaptchaType, int) - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Generates random characters for the specified type.
- generateArithmetic() - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Generates a random arithmetic expression.
- generateChinese(int) - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Generates random Chinese characters.
- generateFromChars(char[], int) - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Generates random characters from the specified character set.
- generateId() - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Generates a unique CAPTCHA ID.
- generateSalt() - Static method in class cloud.opencode.base.captcha.security.CaptchaSecurity
-
Generates a random salt.
- generateSecureId() - Static method in class cloud.opencode.base.captcha.security.CaptchaSecurity
-
Generates a secure random ID.
- generateSecureToken(int) - Static method in class cloud.opencode.base.captcha.security.CaptchaSecurity
-
Generates a secure random token.
- get(String) - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Retrieves a CAPTCHA answer.
- get(String) - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- get(String) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- getAnalyzer() - Method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Gets the behavior analyzer.
- getAnalyzer() - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Gets the behavior analyzer.
- getAndRemove(String) - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Retrieves and removes a CAPTCHA answer.
- getAndRemove(String) - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- getAndRemove(String) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- getBackgroundColor() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getBehavior(String) - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer
-
Gets the behavior for a client.
- getCaptchaId() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaExpiredException
-
Gets the expired CAPTCHA ID.
- getCaptchaId() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaNotFoundException
-
Gets the not found CAPTCHA ID.
- getCaptchaId() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaVerifyException
-
Gets the CAPTCHA ID.
- getChineseFont(float) - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Gets a font suitable for Chinese characters.
- getClientId() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaRateLimitException
-
Gets the client ID.
- getConfig() - Method in class cloud.opencode.base.captcha.OpenCaptcha
-
Gets the configuration.
- getConfig(String) - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Gets the adapted configuration for a client.
- getConfig(String, CaptchaConfig) - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Gets the adapted configuration with custom base config.
- getContentType() - Method in class cloud.opencode.base.captcha.renderer.Base64CaptchaRenderer
- getContentType() - Method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Gets the content type of the rendered output.
- getContentType() - Method in class cloud.opencode.base.captcha.renderer.GifCaptchaRenderer
- getContentType() - Method in class cloud.opencode.base.captcha.renderer.ImageCaptchaRenderer
- getExpireTime() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getFailureCount(String) - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Gets the failure count for a client.
- getFont(CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Gets a font based on configuration.
- getFont(String, float) - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Gets a font with specified name and size.
- getFontColors() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getFontName() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getFontSize() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getFontSize() - Method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Gets the font size.
- getGifDelay() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getGifFrameCount() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getGlobalFailureRate() - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Gets the global failure rate.
- getHeight() - Method in record class cloud.opencode.base.captcha.Captcha
-
Gets the image height from metadata.
- getHeight() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getKeyPrefix() - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
-
Gets the key prefix.
- getLastActivity() - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer.ClientBehavior
- getLength() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getMetadata(String) - Method in record class cloud.opencode.base.captcha.Captcha
-
Gets a metadata value.
- getMimeType() - Method in record class cloud.opencode.base.captcha.Captcha
-
Gets the MIME type based on CAPTCHA type.
- getNoiseDots() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getNoiseDots() - Method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Gets the number of noise dots.
- getNoiseLines() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getNoiseLines() - Method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Gets the number of noise lines.
- getProvidedAnswer() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaVerifyException
-
Gets the provided answer.
- getRandom() - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Gets the Random instance.
- getRandomColor(CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Gets a random color from the config colors.
- getRandomStyleFont(Font) - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Gets a random font style.
- getRecentFailures() - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer.ClientBehavior
- getRemainingRequests(String) - Method in class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Gets remaining requests for a client.
- getRetryAfter() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaRateLimitException
-
Gets the retry after duration.
- getRotatedFont(Font, double) - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Gets a rotated font.
- getStore() - Method in class cloud.opencode.base.captcha.OpenCaptcha
-
Gets the store.
- getStrength(String) - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Gets the recommended strength for a client.
- getter(Function) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
-
Sets the Redis getter function.
- getTimeUntilReset(String) - Method in class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Gets the time until reset for a client.
- getTotalAttempts() - Method in class cloud.opencode.base.captcha.security.BehaviorAnalyzer.ClientBehavior
- getTrackedClientCount() - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Gets the number of tracked clients.
- getType() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- getType() - Method in exception class cloud.opencode.base.captcha.exception.CaptchaGenerationException
-
Gets the CAPTCHA type.
- getType() - Method in class cloud.opencode.base.captcha.generator.ArithmeticCaptchaGenerator
- getType() - Method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Gets the supported CAPTCHA type.
- getType() - Method in class cloud.opencode.base.captcha.generator.ChineseCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.generator.GifCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.generator.ImageCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.generator.SpecCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.interactive.ClickCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.interactive.ImageSelectCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.interactive.RotateCaptchaGenerator
- getType() - Method in class cloud.opencode.base.captcha.interactive.SliderCaptchaGenerator
- getWidth() - Method in record class cloud.opencode.base.captcha.Captcha
-
Gets the image width from metadata.
- getWidth() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- gif() - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates a GIF CAPTCHA generator.
- gif() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a GIF CAPTCHA.
- gif() - Static method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Creates a GIF renderer.
- GIF - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
GIF animated CAPTCHA GIF 动画验证码
- GifCaptchaGenerator - Class in cloud.opencode.base.captcha.generator
-
GIF Captcha Generator - Generates animated GIF CAPTCHA GIF 验证码生成器 - 生成动画 GIF 验证码
- GifCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.generator.GifCaptchaGenerator
- GifCaptchaRenderer - Class in cloud.opencode.base.captcha.renderer
-
GIF Captcha Renderer - Renders CAPTCHA as GIF image GIF 验证码渲染器 - 将验证码渲染为 GIF 图像
- GifCaptchaRenderer() - Constructor for class cloud.opencode.base.captcha.renderer.GifCaptchaRenderer
- gifDelay(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the GIF frame delay.
- GifEncoder - Class in cloud.opencode.base.captcha.codec
-
GIF Encoder - Encodes images to animated GIF format GIF 编码器 - 将图像编码为动画 GIF 格式
- GifEncoder() - Constructor for class cloud.opencode.base.captcha.codec.GifEncoder
- gifFrameCount(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the GIF frame count.
H
- HARD - Enum constant in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Hard - Heavy noise and distortion 困难 - 大量噪点和干扰
- hashAnswer(String, String) - Static method in class cloud.opencode.base.captcha.security.CaptchaSecurity
-
Hashes an answer for secure storage.
- hashCode() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Returns a hash code value for this object.
- height(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the image height.
I
- id() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
idrecord component. - image() - Static method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Creates an image renderer.
- IMAGE_SELECT - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Image selection CAPTCHA (select matching images) 图片选择验证码(选择匹配的图片)
- ImageCaptchaGenerator - Class in cloud.opencode.base.captcha.generator
-
Image Captcha Generator - Generates static image CAPTCHA 图像验证码生成器 - 生成静态图像验证码
- ImageCaptchaGenerator(CaptchaType) - Constructor for class cloud.opencode.base.captcha.generator.ImageCaptchaGenerator
-
Creates a new generator with the specified type.
- ImageCaptchaRenderer - Class in cloud.opencode.base.captcha.renderer
-
Image Captcha Renderer - Renders CAPTCHA as PNG image 图像验证码渲染器 - 将验证码渲染为 PNG 图像
- ImageCaptchaRenderer() - Constructor for class cloud.opencode.base.captcha.renderer.ImageCaptchaRenderer
- imageData() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
imageDatarecord component. - ImageSelectCaptchaGenerator - Class in cloud.opencode.base.captcha.interactive
-
Image Select Captcha Generator - Generates image selection CAPTCHA 图片选择验证码生成器 - 生成图片选择验证码
- ImageSelectCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.interactive.ImageSelectCaptchaGenerator
- INVALID_INPUT - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Invalid input | 输入无效
- invalidInput() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a failed result for invalid input.
- isAllowed(String) - Method in class cloud.opencode.base.captcha.validator.CaptchaRateLimiter
-
Checks if a client is allowed to make a request.
- isCaseSensitive() - Method in class cloud.opencode.base.captcha.CaptchaConfig
- isExpired() - Method in record class cloud.opencode.base.captcha.Captcha
-
Checks if this CAPTCHA has expired.
- isFailed() - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Checks if validation failed.
- isInteractive() - Method in enum class cloud.opencode.base.captcha.CaptchaType
-
Checks if this type is an interactive CAPTCHA.
- isTextBased() - Method in enum class cloud.opencode.base.captcha.CaptchaType
-
Checks if this type is a text-based CAPTCHA.
K
- keyPrefix(String) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
-
Sets the key prefix.
L
- length(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the CAPTCHA code length.
M
- Main Entry Point | 主入口点 - Section in package cloud.opencode.base.captcha
- MEDIUM - Enum constant in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Medium - Moderate noise and distortion 中等 - 适中噪点和干扰
- memory() - Static method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Creates a memory-based store.
- memory(int) - Static method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Creates a memory-based store with max size.
- MemoryCaptchaStore - Class in cloud.opencode.base.captcha.store
-
Memory Captcha Store - In-memory CAPTCHA storage 内存验证码存储 - 内存中的验证码存储
- MemoryCaptchaStore() - Constructor for class cloud.opencode.base.captcha.store.MemoryCaptchaStore
-
Creates a store with default max size.
- MemoryCaptchaStore(int) - Constructor for class cloud.opencode.base.captcha.store.MemoryCaptchaStore
-
Creates a store with specified max size.
- message() - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Returns the value of the
messagerecord component. - metadata() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
metadatarecord component. - mismatch() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a failed result for mismatch.
- MISMATCH - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Answer mismatch | 答案不匹配
N
- noiseDots(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the number of noise dots.
- noiseLines(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the number of noise lines.
- NORMAL - Enum constant in enum class cloud.opencode.base.captcha.security.BehaviorAnalyzer.AnalysisResult
-
Normal behavior | 正常行为
- NOT_FOUND - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
CAPTCHA not found | 验证码未找到
- notFound() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a failed result for not found.
- numeric() - Static method in interface cloud.opencode.base.captcha.generator.CaptchaGenerator
-
Creates a numeric CAPTCHA generator.
- numeric() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a numeric CAPTCHA.
- NUMERIC - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Numeric CAPTCHA (digits only) 数字验证码(仅数字)
- NUMERIC - Static variable in class cloud.opencode.base.captcha.support.CaptchaChars
-
Numeric characters (0-9) | 数字字符
O
- ok() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a successful result.
- OpenCaptcha - Class in cloud.opencode.base.captcha
-
OpenCaptcha - Main entry point for CAPTCHA operations OpenCaptcha - 验证码操作的主入口点
- OpenCaptcha.Builder - Class in cloud.opencode.base.captcha
-
OpenCaptcha Builder OpenCaptcha 构建器
R
- randomColor() - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Generates a random color.
- randomDarkColor() - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Generates a dark random color.
- randomInt(int) - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Generates a random integer within range.
- randomInt(int, int) - Static method in class cloud.opencode.base.captcha.support.CaptchaChars
-
Generates a random integer within range.
- randomLightColor() - Static method in class cloud.opencode.base.captcha.support.CaptchaFontUtil
-
Generates a light random color.
- RATE_LIMITED - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Rate limit exceeded | 超过速率限制
- rateLimited() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a failed result for rate limiting.
- recommendStrength(String) - Method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Determines the recommended CAPTCHA strength for a client.
- recommendType(String) - Method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Determines the recommended CAPTCHA type for a client.
- recordAttempt(String, boolean) - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Records a validation attempt.
- recordCreation(String) - Method in class cloud.opencode.base.captcha.validator.TimeBasedCaptchaValidator
-
Records CAPTCHA creation time.
- recordCreation(String, String) - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Records CAPTCHA creation for a client.
- RedisCaptchaStore - Class in cloud.opencode.base.captcha.store
-
Redis Captcha Store - Redis-based CAPTCHA storage Redis验证码存储 - 基于Redis的验证码存储
- RedisCaptchaStore.Builder - Class in cloud.opencode.base.captcha.store
-
Builder for RedisCaptchaStore.
- RedisCaptchaStore.RedisSetter - Interface in cloud.opencode.base.captcha.store
-
Functional interface for Redis SET with TTL operation.
- remove(String) - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Removes a CAPTCHA.
- remove(String) - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- remove(String) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- render(Captcha, OutputStream) - Method in class cloud.opencode.base.captcha.OpenCaptcha
-
Renders a CAPTCHA to an output stream.
- render(Captcha, OutputStream) - Method in class cloud.opencode.base.captcha.renderer.Base64CaptchaRenderer
- render(Captcha, OutputStream) - Method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Renders the CAPTCHA to an output stream.
- render(Captcha, OutputStream) - Method in class cloud.opencode.base.captcha.renderer.GifCaptchaRenderer
- render(Captcha, OutputStream) - Method in class cloud.opencode.base.captcha.renderer.ImageCaptchaRenderer
- renderToBase64(Captcha) - Method in class cloud.opencode.base.captcha.renderer.Base64CaptchaRenderer
- renderToBase64(Captcha) - Method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Renders the CAPTCHA to a Base64 string.
- renderToBase64(Captcha) - Method in class cloud.opencode.base.captcha.renderer.GifCaptchaRenderer
- renderToBase64(Captcha) - Method in class cloud.opencode.base.captcha.renderer.ImageCaptchaRenderer
- renderToBytes(Captcha) - Method in class cloud.opencode.base.captcha.renderer.Base64CaptchaRenderer
- renderToBytes(Captcha) - Method in interface cloud.opencode.base.captcha.renderer.CaptchaRenderer
-
Renders the CAPTCHA to a byte array.
- renderToBytes(Captcha) - Method in class cloud.opencode.base.captcha.renderer.GifCaptchaRenderer
- renderToBytes(Captcha) - Method in class cloud.opencode.base.captcha.renderer.ImageCaptchaRenderer
- reset(String) - Method in class cloud.opencode.base.captcha.support.CaptchaDifficultyAdapter
-
Resets the difficulty for a client.
- rotate() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a rotate CAPTCHA.
- ROTATE - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Rotate CAPTCHA (rotate to correct angle) 旋转验证码(旋转到正确角度)
- RotateCaptchaGenerator - Class in cloud.opencode.base.captcha.interactive
-
Rotate Captcha Generator - Generates rotation verification CAPTCHA 旋转验证码生成器 - 生成旋转验证验证码
- RotateCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.interactive.RotateCaptchaGenerator
S
- set(String, String, Duration) - Method in interface cloud.opencode.base.captcha.store.RedisCaptchaStore.RedisSetter
-
Sets a value with TTL.
- setDelay(int) - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Sets the delay time between frames.
- setDispose(int) - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Sets the disposal method.
- setQuality(int) - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Sets the color quantization quality.
- setRepeat(int) - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Sets the repeat count.
- setter(RedisCaptchaStore.RedisSetter) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore.Builder
-
Sets the Redis setter function.
- shear(Graphics2D, CaptchaConfig) - Static method in class cloud.opencode.base.captcha.support.CaptchaNoiseUtil
-
Draws a shear transform effect.
- shouldBlock(String) - Method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Checks if a client should be blocked.
- shutdown() - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
-
Shuts down the cleanup scheduler.
- simple(CaptchaStore) - Static method in interface cloud.opencode.base.captcha.validator.CaptchaValidator
-
Creates a simple validator.
- SimpleCaptchaValidator - Class in cloud.opencode.base.captcha.validator
-
Simple Captcha Validator - Basic CAPTCHA validation 简单验证码验证器 - 基础验证码验证
- SimpleCaptchaValidator(CaptchaStore) - Constructor for class cloud.opencode.base.captcha.validator.SimpleCaptchaValidator
-
Creates a new validator with the specified store.
- size() - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Gets the current size.
- size() - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- size() - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- slider() - Static method in class cloud.opencode.base.captcha.OpenCaptcha
-
Creates a slider CAPTCHA.
- SLIDER - Enum constant in enum class cloud.opencode.base.captcha.CaptchaType
-
Slider CAPTCHA (drag to verify) 滑块验证码(拖动验证)
- SliderCaptchaGenerator - Class in cloud.opencode.base.captcha.interactive
-
Slider Captcha Generator - Generates slider verification CAPTCHA 滑块验证码生成器 - 生成滑块验证验证码
- SliderCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.interactive.SliderCaptchaGenerator
- SpecCaptchaGenerator - Class in cloud.opencode.base.captcha.generator
-
Spec Captcha Generator - Generates special effect CAPTCHA 特效验证码生成器 - 生成特效验证码
- SpecCaptchaGenerator() - Constructor for class cloud.opencode.base.captcha.generator.SpecCaptchaGenerator
- start(OutputStream) - Method in class cloud.opencode.base.captcha.codec.GifEncoder
-
Starts GIF encoding to the output stream.
- store(CaptchaStore) - Method in class cloud.opencode.base.captcha.OpenCaptcha.Builder
-
Sets the CAPTCHA store.
- store(String, String, Duration) - Method in interface cloud.opencode.base.captcha.store.CaptchaStore
-
Stores a CAPTCHA answer.
- store(String, String, Duration) - Method in class cloud.opencode.base.captcha.store.MemoryCaptchaStore
- store(String, String, Duration) - Method in class cloud.opencode.base.captcha.store.RedisCaptchaStore
- success() - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Returns the value of the
successrecord component. - SUCCESS - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Validation successful | 验证成功
- SUSPICIOUS_BEHAVIOR - Enum constant in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Suspicious behavior detected | 检测到可疑行为
- SUSPICIOUS_TIMING - Enum constant in enum class cloud.opencode.base.captcha.security.BehaviorAnalyzer.AnalysisResult
-
Suspiciously fast response | 可疑的快速响应
- suspiciousBehavior() - Static method in record class cloud.opencode.base.captcha.ValidationResult
-
Creates a failed result for suspicious behavior.
T
- timeBased(CaptchaStore) - Static method in interface cloud.opencode.base.captcha.validator.CaptchaValidator
-
Creates a time-based validator with behavior checking.
- TimeBasedCaptchaValidator - Class in cloud.opencode.base.captcha.validator
-
Time-Based Captcha Validator - Validation with timing checks 基于时间的验证码验证器 - 带时间检查的验证
- TimeBasedCaptchaValidator(CaptchaStore) - Constructor for class cloud.opencode.base.captcha.validator.TimeBasedCaptchaValidator
-
Creates a new validator with the specified store.
- toBase64() - Method in record class cloud.opencode.base.captcha.Captcha
-
Converts the image data to Base64 string.
- toBase64DataUrl() - Method in record class cloud.opencode.base.captcha.Captcha
-
Converts the image data to Base64 data URL.
- toBuilder() - Method in class cloud.opencode.base.captcha.CaptchaConfig
-
Creates a builder from this configuration.
- toBytes(BufferedImage) - Method in class cloud.opencode.base.captcha.generator.AbstractCaptchaGenerator
-
Converts image to PNG bytes.
- toConfig() - Method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Creates a configuration with this strength.
- TOO_MANY_FAILURES - Enum constant in enum class cloud.opencode.base.captcha.security.BehaviorAnalyzer.AnalysisResult
-
Too many failures | 失败次数过多
- toString() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.captcha.ValidationResult
-
Returns a string representation of this record class.
- type() - Method in record class cloud.opencode.base.captcha.Captcha
-
Returns the value of the
typerecord component. - type(CaptchaType) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the CAPTCHA type.
- type(CaptchaType) - Method in class cloud.opencode.base.captcha.OpenCaptcha.Builder
-
Sets the CAPTCHA type.
U
- Usage Example | 使用示例 - Section in package cloud.opencode.base.captcha
V
- validate(String, String) - Method in class cloud.opencode.base.captcha.OpenCaptcha
-
Validates a CAPTCHA answer.
- validate(String, String) - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
- validate(String, String) - Method in interface cloud.opencode.base.captcha.validator.CaptchaValidator
-
Validates a CAPTCHA answer.
- validate(String, String) - Method in class cloud.opencode.base.captcha.validator.SimpleCaptchaValidator
- validate(String, String) - Method in class cloud.opencode.base.captcha.validator.TimeBasedCaptchaValidator
- validate(String, String, boolean) - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
- validate(String, String, boolean) - Method in interface cloud.opencode.base.captcha.validator.CaptchaValidator
-
Validates a CAPTCHA answer with case sensitivity option.
- validate(String, String, boolean) - Method in class cloud.opencode.base.captcha.validator.SimpleCaptchaValidator
- validate(String, String, boolean) - Method in class cloud.opencode.base.captcha.validator.TimeBasedCaptchaValidator
- validate(String, String, String) - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Validates with explicit client ID.
- validate(String, String, String, boolean) - Method in class cloud.opencode.base.captcha.validator.BehaviorCaptchaValidator
-
Validates with explicit client ID and case sensitivity.
- ValidationResult - Record Class in cloud.opencode.base.captcha
-
Validation Result - Result of CAPTCHA validation 验证结果 - 验证码验证结果
- ValidationResult(boolean, String, ValidationResult.ResultCode) - Constructor for record class cloud.opencode.base.captcha.ValidationResult
-
Creates an instance of a
ValidationResultrecord class. - ValidationResult.ResultCode - Enum Class in cloud.opencode.base.captcha
-
Result codes for validation.
- valueOf(String) - Static method in enum class cloud.opencode.base.captcha.CaptchaType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.captcha.security.BehaviorAnalyzer.AnalysisResult
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cloud.opencode.base.captcha.CaptchaType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.captcha.security.BehaviorAnalyzer.AnalysisResult
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.captcha.support.CaptchaStrength
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.captcha.ValidationResult.ResultCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verifyHashedAnswer(String, String, String) - Static method in class cloud.opencode.base.captcha.security.CaptchaSecurity
-
Verifies a hashed answer.
W
- width(int) - Method in class cloud.opencode.base.captcha.CaptchaConfig.Builder
-
Sets the image width.
- withBaseStrength(CaptchaStrength) - Method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Sets the base strength.
- withBaseType(CaptchaType) - Method in class cloud.opencode.base.captcha.security.AntiBotStrategy
-
Sets the base type.
All Classes and Interfaces|All Packages|Serialized Form