public class DefaultImageCaptchaApplication extends Object implements ImageCaptchaApplication
| 构造器和说明 |
|---|
DefaultImageCaptchaApplication(ImageCaptchaGenerator captchaGenerator,
ImageCaptchaValidator imageCaptchaValidator,
CacheStore cacheStore,
ImageCaptchaProperties prop,
CaptchaInterceptor captchaInterceptor) |
public DefaultImageCaptchaApplication(ImageCaptchaGenerator captchaGenerator, ImageCaptchaValidator imageCaptchaValidator, CacheStore cacheStore, ImageCaptchaProperties prop, CaptchaInterceptor captchaInterceptor)
public ApiResponse<ImageCaptchaVO> generateCaptcha()
ImageCaptchaApplicationgenerateCaptcha 在接口中 ImageCaptchaApplicationpublic ApiResponse<ImageCaptchaVO> generateCaptcha(String type)
ImageCaptchaApplicationgenerateCaptcha 在接口中 ImageCaptchaApplicationtype - type类型public ApiResponse<ImageCaptchaVO> generateCaptcha(GenerateParam param)
ImageCaptchaApplicationgenerateCaptcha 在接口中 ImageCaptchaApplicationparam - parampublic ApiResponse<ImageCaptchaVO> generateCaptcha(CaptchaImageType captchaImageType)
ImageCaptchaApplicationgenerateCaptcha 在接口中 ImageCaptchaApplicationcaptchaImageType - 要生成webp还是jpg类型的图片public ApiResponse<ImageCaptchaVO> generateCaptcha(String type, CaptchaImageType captchaImageType)
ImageCaptchaApplicationgenerateCaptcha 在接口中 ImageCaptchaApplicationtype - typecaptchaImageType - CaptchaImageTypepublic ApiResponse<ImageCaptchaVO> convertToCaptchaResponse(ImageCaptchaInfo imageCaptchaInfo)
public ApiResponse<?> matching(String id, MatchParam matchParam)
ImageCaptchaApplicationmatching 在接口中 ImageCaptchaApplicationid - 验证码的IDmatchParam - 匹配数据,包含鼠标轨迹,设备信息等public ApiResponse<?> matching(String id, ImageCaptchaTrack track)
ImageCaptchaApplicationImageCaptchaApplication.matching(String, MatchParam)matching 在接口中 ImageCaptchaApplicationid - 验证码的IDtrack - 轨迹数据public boolean matching(String id, Float percentage)
ImageCaptchaApplicationImageCaptchaApplication.matching(String, MatchParam)matching 在接口中 ImageCaptchaApplicationid - idpercentage - 百分比数据public String getCaptchaTypeById(String id)
ImageCaptchaApplicationgetCaptchaTypeById 在接口中 ImageCaptchaApplicationid - idprotected String generatorId(ImageCaptchaInfo imageCaptchaInfo)
protected void cacheVerification(String id, String type, AnyMap validData)
id - idtype - validData - validDatapublic ImageCaptchaResourceManager getImageCaptchaResourceManager()
ImageCaptchaApplicationgetImageCaptchaResourceManager 在接口中 ImageCaptchaApplicationpublic void setImageCaptchaValidator(ImageCaptchaValidator imageCaptchaValidator)
ImageCaptchaApplicationsetImageCaptchaValidator 在接口中 ImageCaptchaApplicationimageCaptchaValidator - imageCaptchaValidatorpublic void setImageCaptchaGenerator(ImageCaptchaGenerator imageCaptchaGenerator)
ImageCaptchaApplicationsetImageCaptchaGenerator 在接口中 ImageCaptchaApplicationimageCaptchaGenerator - SliderCaptchaGeneratorpublic CaptchaInterceptor getCaptchaInterceptor()
ImageCaptchaApplicationgetCaptchaInterceptor 在接口中 ImageCaptchaApplicationpublic void setCaptchaInterceptor(CaptchaInterceptor captchaInterceptor)
ImageCaptchaApplicationsetCaptchaInterceptor 在接口中 ImageCaptchaApplicationcaptchaInterceptor - captchaInterceptorpublic void setCacheStore(CacheStore cacheStore)
ImageCaptchaApplicationsetCacheStore 在接口中 ImageCaptchaApplicationcacheStore - cacheStorepublic ImageCaptchaValidator getImageCaptchaValidator()
ImageCaptchaApplicationgetImageCaptchaValidator 在接口中 ImageCaptchaApplicationpublic ImageCaptchaGenerator getImageCaptchaGenerator()
ImageCaptchaApplicationgetImageCaptchaGenerator 在接口中 ImageCaptchaApplicationpublic CacheStore getCacheStore()
ImageCaptchaApplicationgetCacheStore 在接口中 ImageCaptchaApplicationCopyright © 2025. All rights reserved.