public abstract class AbstractCaptchaService extends Object implements CaptchaService
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
cacheType |
protected static Boolean |
captchaAesStatus |
protected static int |
captchaInterferenceOptions |
protected static Long |
EXPIRESIN_SECONDS |
protected static Long |
EXPIRESIN_THREE |
protected static String |
fontType |
protected static String |
HAN_ZI |
protected static int |
HAN_ZI_SIZE |
protected static int |
HAN_ZI_SIZE_HALF |
protected static String |
IMAGE_TYPE_PNG |
protected static String |
REDIS_CAPTCHA_KEY |
protected static String |
REDIS_SECOND_CAPTCHA_KEY |
protected static String |
slipOffset |
protected static String |
waterMark |
protected static String |
waterMarkFont |
| 构造器和说明 |
|---|
AbstractCaptchaService() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
base64StrToImage(String imgStr,
String path) |
static String |
decrypt(String point,
String key)
解密前端坐标aes加密
|
protected static int |
getEnOrChLength(String s) |
String |
getJigsawUrlOrPath() |
int |
getWordTotalCount() |
void |
init(Properties config)
配置初始化
|
boolean |
isFontColorRandom() |
void |
setFontColorRandom(boolean fontColorRandom) |
void |
setJigsawUrlOrPath(String jigsawUrlOrPath) |
void |
setWordTotalCount(int wordTotalCount) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcaptchaType, check, get, verificationprotected static String HAN_ZI
protected static int HAN_ZI_SIZE
protected static int HAN_ZI_SIZE_HALF
protected static String REDIS_CAPTCHA_KEY
protected static String REDIS_SECOND_CAPTCHA_KEY
protected static Long EXPIRESIN_SECONDS
protected static Long EXPIRESIN_THREE
protected static String waterMark
protected static String waterMarkFont
protected static String slipOffset
protected static Boolean captchaAesStatus
protected static String fontType
protected static String cacheType
protected static int captchaInterferenceOptions
public void init(Properties config)
CaptchaServiceinit 在接口中 CaptchaServicepublic String getJigsawUrlOrPath()
public void setJigsawUrlOrPath(String jigsawUrlOrPath)
public int getWordTotalCount()
public void setWordTotalCount(int wordTotalCount)
public boolean isFontColorRandom()
public void setFontColorRandom(boolean fontColorRandom)
public static String decrypt(String point, String key) throws Exception
point - Exceptionprotected static int getEnOrChLength(String s)
Copyright © 2021. All rights reserved.