类 AbstractGraphicRenderer

所有已实现的接口:
StampManager<String,String>, Renderer, org.springframework.beans.factory.InitializingBean

public abstract class AbstractGraphicRenderer extends AbstractRenderer<String,String>

Description: 抽象的图形验证码

作者:
: gengwei.zheng
Date:
: 2021/12/20 20:42
  • 构造器详细资料

    • AbstractGraphicRenderer

      public AbstractGraphicRenderer()
  • 方法详细资料

    • getFont

      protected Font getFont()
    • getWidth

      protected int getWidth()
    • getHeight

      protected int getHeight()
    • getLength

      protected int getLength()
    • getCapcha

      public Captcha getCapcha(String key)
      从接口复制的说明: Renderer
      创建验证码
      参数:
      key - 验证码标识,用于标记在缓存中的存储
      返回:
      验证码数据 Captcha
    • verify

      public boolean verify(Verification verification)
      从接口复制的说明: Renderer
      验证码校验
      参数:
      verification - 前端传入的验证值
      返回:
      true 验证成功,返回错误信息
    • setGraphicCaptcha

      protected void setGraphicCaptcha(GraphicCaptcha graphicCaptcha)
    • nextStamp

      public String nextStamp(String key)