类 ArithmeticCaptchaAbstract
java.lang.Object
io.springboot.captcha.base.Randoms
io.springboot.captcha.base.Captcha
io.springboot.captcha.base.ArithmeticCaptchaAbstract
- 直接已知子类:
ArithmeticCaptcha
算术验证码抽象类 Created by 王帆 on 2019-08-23 上午 10:08.
-
字段概要
字段从类继承的字段 io.springboot.captcha.base.Captcha
chars, charType, COLOR, FONT_1, FONT_10, FONT_2, FONT_3, FONT_4, FONT_5, FONT_6, FONT_7, FONT_8, FONT_9, height, len, TYPE_DEFAULT, TYPE_NUM_AND_UPPER, TYPE_ONLY_CHAR, TYPE_ONLY_LOWER, TYPE_ONLY_NUMBER, TYPE_ONLY_UPPER, width从类继承的字段 io.springboot.captcha.base.Randoms
ALPHA, charMaxIndex, charMinIndex, lowerMaxIndex, lowerMinIndex, numMaxIndex, RANDOM, upperMaxIndex, upperMinIndex -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected char[]alphas()生成随机验证码voidsetArithmeticString(String arithmeticString) voidsetDifficulty(int difficulty) voidsupportAlgorithmSign(int algorithmSign) algorithmSign从类继承的方法 io.springboot.captcha.base.Captcha
checkAlpha, color, color, drawBesselLine, drawBesselLine, drawLine, drawLine, drawOval, drawOval, getCharType, getContentType, getFont, getHeight, getLen, getWidth, out, setCharType, setFont, setFont, setFont, setFont, setHeight, setLen, setWidth, text, textChar, toBase64, toBase64
-
字段详细资料
-
arithmeticString
计算公式 -
difficulty
protected static int difficulty难度 -
algorithmSign
protected static int algorithmSign表达式复杂度
-
-
构造器详细资料
-
ArithmeticCaptchaAbstract
public ArithmeticCaptchaAbstract()
-
-
方法详细资料
-
alphas
protected char[] alphas()生成随机验证码 -
getArithmeticString
-
setArithmeticString
-
setDifficulty
public void setDifficulty(int difficulty) -
supportAlgorithmSign
public void supportAlgorithmSign(int algorithmSign) algorithmSign2 : 支持加法 algorithmSign
3 : 支持加减法 algorithmSign
4 : 支持加减乘法
5 : 支持加减乘除法
- 参数:
algorithmSign- 计算公式标示
-