public interface VerifyCodeService
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImage |
getImage()
获得验证码图片
|
String |
getStrText() |
void |
output(BufferedImage image,
OutputStream out)
保存图片文件
|
int |
verify(String userCode)
验证用户输入的验证码
|
BufferedImage getImage()
void output(BufferedImage image, OutputStream out) throws IOException
image - 传入绘制的图片out - 传入带有保存位置的输出流IOException - 可能存在保存失败的情况int verify(String userCode)
userCode - 传入用户输入的验证码返回结果可能情况:
-1 用户未输入
0 用户输入错误
1 用户输入正确
String getStrText()
This documentation was released into the public domain.