kaptcha配置属性

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-30 06:05   525   0
ConstantDescriptionDefault
kaptcha.borderBorder around kaptcha. Legal values are yes or no.(设置是否有边框 yes
kaptcha.border.colorColor of the border. Legal values are r,g,b (and optional alpha) or white,black,blue.(设置边框颜色

black

(105,179,90)

kaptcha.border.thicknessThickness of the border around kaptcha. Legal values are > 0.1
kaptcha.image.widthWidth in pixels of the kaptcha image.(设置验证码宽度200
kaptcha.image.heightHeight in pixels of the kaptcha image.(设置验证码高度50
kaptcha.producer.implThe image producer.com.google.code.kaptcha.impl.DefaultKaptcha
kaptcha.textproducer.implThe text producer.

获取中文

com.google.code.kaptcha.text.impl.DefaultTextCreator

(org.cric.util.ChineseText)

kaptcha.textproducer.char.stringThe characters that will create the kaptcha.abcde2345678gfynmnpwx
kaptcha.textproducer.char.lengthThe number of characters to display.(设置字体个数5
kaptcha.textproducer.font.namesA list of comma separated font names.(设置字体样式Arial, Courier(宋体,楷体,微软雅黑)
kaptcha.textproducer.font.sizeThe size of the font to use.( 设置字体大小40px.
kaptcha.textproducer.font.colorThe color to use for the font. Legal values are r,g,b.(设置字体颜色black
kaptcha.noise.implThe noise producer.com.google.code.kaptcha.impl.DefaultNoise
kaptcha.noise.colorThe noise color. Legal values are r,g,b.black
kaptcha.obscurificator.implThe obscurificator implementation.com.google.code.kaptcha.impl.WaterRipple
kaptcha.background.implThe background implementation.com.google.code.kaptcha.impl.DefaultBackground
kaptcha.background.clear.fromStarting background color. Legal values are r,g,b.light grey
kaptcha.background.clear.toEnding background color. Legal values are r,g,b.white
kaptcha.word.implThe word renderer implementation.com.google.code.kaptcha.text.impl.DefaultWordRenderer
kaptcha.session.keyThe value for the kaptcha is generated and is put into the HttpSession. This is the key value for that item in the session.KAPTCHA_SESSION_KEY
kaptcha.session.dateThe date the kaptcha is generated is put into the HttpSession. This is the key value for that item in the session.KAPTCHA_SESSION_DATE
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP