public class ZKaptchaUtil
extends java.lang.Object
构造器和说明 |
---|
ZKaptchaUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
getKaptcha(com.google.code.kaptcha.impl.DefaultKaptcha defaultKaptcha,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
获取验证码以图片展示
|
static boolean |
verifyCode(javax.servlet.http.HttpServletRequest request)
验证验证码是否正确
|
public static java.lang.String getKaptcha(com.google.code.kaptcha.impl.DefaultKaptcha defaultKaptcha, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
defaultKaptcha
- 验证码插件request
- 请求体response
- 返回的请求体public static boolean verifyCode(javax.servlet.http.HttpServletRequest request)
request
- http请求