public class DefaultKaptchaHandler extends DefaultCaptchaHandler
captchaStorageApi| 构造器和说明 |
|---|
DefaultKaptchaHandler(com.google.code.kaptcha.impl.DefaultKaptcha defaultKaptcha) |
| 限定符和类型 | 方法和说明 |
|---|---|
GetCaptchaResp |
generatorCaptchaResp(String sessionCode,
BufferedImage image) |
GetCaptchaResp |
get(GetCaptchaReq getCaptchaReq) |
boolean |
out(BufferedImage image,
OutputStream out)
验证码输出,
|
String |
toBase64(BufferedImage image)
输出base64编码
|
String |
toBase64(String type,
BufferedImage image)
输出base64编码
|
checkgetUuidpublic DefaultKaptchaHandler(com.google.code.kaptcha.impl.DefaultKaptcha defaultKaptcha)
public GetCaptchaResp get(GetCaptchaReq getCaptchaReq)
get 在接口中 CaptchaHandlerget 在类中 DefaultCaptchaHandlerpublic boolean out(BufferedImage image, OutputStream out)
image - BufferedImageout - 输出流public String toBase64(BufferedImage image)
public String toBase64(String type, BufferedImage image)
type - 编码头public GetCaptchaResp generatorCaptchaResp(String sessionCode, BufferedImage image)
Copyright © 2024. All rights reserved.