`
714501466
  • 浏览: 64327 次
  • 性别: Icon_minigender_2
  • 来自: 杭州
社区版块
存档分类
最新评论

Kaptcha 属性

 
阅读更多
Constant Description Default
kaptcha.border Border around kaptcha. Legal values are yes or no.(设置是否有边框  yes
kaptcha.border.color Color of the border. Legal values are r,g,b (and optional alpha) or white,black,blue.(设置边框颜色

black

105,179,90

kaptcha.border.thickness Thickness of the border around kaptcha. Legal values are > 0. 1
kaptcha.image.width Width in pixels of the kaptcha image.(设置验证码宽度 200
kaptcha.image.height Height in pixels of the kaptcha image.(设置验证码高度 50
kaptcha.producer.impl The image producer. com.google.code.kaptcha.impl.DefaultKaptcha
kaptcha.textproducer.impl The text producer.

获取中文

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

org.cric.util.ChineseText

kaptcha.textproducer.char.string The characters that will create the kaptcha. abcde2345678gfynmnpwx
kaptcha.textproducer.char.length The number of characters to display.(设置字体个数 5
kaptcha.textproducer.font.names A list of comma separated font names.(设置字体样式 Arial, Courier(宋体,楷体,微软雅黑
kaptcha.textproducer.font.size The size of the font to use.( 设置字体大小 40px.
kaptcha.textproducer.font.color The color to use for the font. Legal values are r,g,b.(设置字体颜色 black
kaptcha.noise.impl The noise producer. com.google.code.kaptcha.impl.DefaultNoise
kaptcha.noise.color The noise color. Legal values are r,g,b. black
kaptcha.obscurificator.impl The obscurificator implementation. com.google.code.kaptcha.impl.WaterRipple
kaptcha.background.impl The background implementation. com.google.code.kaptcha.impl.DefaultBackground
kaptcha.background.clear.from Starting background color. Legal values are r,g,b. light grey
kaptcha.background.clear.to Ending background color. Legal values are r,g,b. white
kaptcha.word.impl The word renderer implementation. com.google.code.kaptcha.text.impl.DefaultWordRenderer
kaptcha.session.key The 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.date The date the kaptcha is generated is put into the HttpSession. This is the key value for that item in the session. KAPTCHA_SESSION_DATE
分享到:
评论
2 楼 buxiegaishan 2014-11-06  
 
1 楼 buxiegaishan 2014-11-06  
[b][u]
引用
[img][url][flash=200,200][/flash][/url][/img]
[/u][/b]

相关推荐

Global site tag (gtag.js) - Google Analytics