public interface ICaptcha extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
createCode()
创建验证码,实现类需同时生成随机验证码字符串和验证码图片
|
String |
getCode()
获取验证码的文字内容
|
boolean |
verify(String userInputCode)
验证验证码是否正确,建议忽略大小写
|
void |
write(OutputStream out)
将验证码写出到目标流中
|
void createCode()
String getCode()
boolean verify(String userInputCode)
userInputCode
- 用户输入的验证码void write(OutputStream out)
out
- 目标流Copyright © 2024. All rights reserved.