public abstract class AbstractGraphicRenderer extends AbstractRenderer<String,String>
Description: 抽象的图形验证码
BASE64_GIF_IMAGE_PREFIX, BASE64_PNG_IMAGE_PREFIX| 构造器和说明 |
|---|
AbstractGraphicRenderer() |
| 限定符和类型 | 方法和说明 |
|---|---|
Captcha |
getCapcha(String key)
创建验证码
|
protected Font |
getFont() |
protected int |
getHeight() |
protected int |
getLength() |
protected int |
getWidth() |
String |
nextStamp(String key) |
protected void |
setGraphicCaptcha(GraphicCaptcha graphicCaptcha) |
boolean |
verify(Verification verification)
验证码校验
|
afterPropertiesSet, getBase64ImagePrefix, getCaptchaProperties, getResourceProvider, setResourceProvider, toBase64check, delete, get, getCache, getExpire, lock, lockAndRun, put, setExpireclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getCategorycontainKey, create, create, create, lock, lock, lockAndRun, lockAndRun, put, putprotected Font getFont()
protected int getWidth()
protected int getHeight()
protected int getLength()
public Captcha getCapcha(String key)
Rendererkey - 验证码标识,用于标记在缓存中的存储Captchapublic boolean verify(Verification verification)
Rendererverification - 前端传入的验证值protected void setGraphicCaptcha(GraphicCaptcha graphicCaptcha)
Copyright © 2023 Dromara. All rights reserved.