public class MathCaptchaDraw extends Object implements CaptchaDraw
| Constructor and Description |
|---|
MathCaptchaDraw() |
| Modifier and Type | Method and Description |
|---|---|
String |
draw(Graphics2D g,
int width,
int height,
Font[] fonts,
Random random)
画验证码层
|
boolean |
validate(String code,
String userInputCaptcha)
校验
|
public String draw(Graphics2D g, int width, int height, Font[] fonts, Random random)
CaptchaDrawdraw in interface CaptchaDrawg - Graphics2Dwidth - 画布宽度height - 画布高度fonts - 字体random - Randompublic boolean validate(String code, String userInputCaptcha)
CaptchaDrawvalidate in interface CaptchaDrawcode - codeuserInputCaptcha - 用户输入的字符串Copyright © 2024. All rights reserved.