public abstract class AbstractGraphicRenderer extends AbstractRenderer<String,String>
Description: 抽象的图形验证码
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.alicp.jetcache.Cache<String,String> |
cache |
BASE64_GIF_IMAGE_PREFIX, BASE64_PNG_IMAGE_PREFIX| 构造器和说明 |
|---|
AbstractGraphicRenderer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.alicp.jetcache.Cache<String,String> |
getCache() |
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, 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 com.alicp.jetcache.Cache<String,String> getCache()
getCache 在类中 AbstractStampManager<String,String>protected 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 © 2022. All rights reserved.