public class RotatePuzzleCaptchaServiceImpl extends AbstractCaptchaService
cacheType, captchaAesStatus, captchaInterferenceOptions, clickWordFont, clickWordFontStr, EXPIRESIN_SECONDS, EXPIRESIN_THREE, HAN_ZI_SIZE, HAN_ZI_SIZE_HALF, IMAGE_TYPE_PNG, logger, REDIS_CAPTCHA_KEY, REDIS_SECOND_CAPTCHA_KEY, slipOffset, waterMark, waterMarkFont, waterMarkFontStr| Constructor and Description |
|---|
RotatePuzzleCaptchaServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
captchaType()
验证码类型
通过java SPI机制,接入方可自定义实现类,实现新的验证类型
|
ResponseModel |
check(CaptchaVO captchaVO)
核对验证码(前端)
|
void |
destroy(Properties config)
历史资源清除(过期的图片文件,生成的临时图片...)
|
ResponseModel |
get(CaptchaVO captchaVO)
获取验证码
|
void |
init(Properties config)
配置初始化
|
afterValidateFail, base64StrToImage, decrypt, getCacheService, getEnOrChLength, getValidateClientId, validatedReq, verificationpublic String captchaType()
CaptchaServicepublic void init(Properties config)
CaptchaServiceinit in interface CaptchaServiceinit in class AbstractCaptchaServicepublic void destroy(Properties config)
CaptchaServicedestroy in interface CaptchaServicedestroy in class AbstractCaptchaServiceconfig - 配置项 控制资源清理的粒度public ResponseModel get(CaptchaVO captchaVO)
CaptchaServiceget in interface CaptchaServiceget in class AbstractCaptchaServicepublic ResponseModel check(CaptchaVO captchaVO)
CaptchaServicecheck in interface CaptchaServicecheck in class AbstractCaptchaServiceCopyright © 2025. All rights reserved.