类 CreateVerifyCode

java.lang.Object
plus.hiver.common.utils.CreateVerifyCode

public class CreateVerifyCode extends Object
随机字符验证码生成工具类

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 字段详细资料

  • 构造器详细资料

    • CreateVerifyCode

      public CreateVerifyCode()
    • CreateVerifyCode

      public CreateVerifyCode(int width, int height)
    • CreateVerifyCode

      public CreateVerifyCode(int width, int height, int codeCount)
    • CreateVerifyCode

      public CreateVerifyCode(int width, int height, int codeCount, int lineCount)
    • CreateVerifyCode

      public CreateVerifyCode(int width, int height, int codeCount, int lineCount, String code)
  • 方法详细资料

    • randomStr

      public String randomStr(int n)
      得到随机字符
      参数:
      n -
      返回:
    • randomDigit

      public String randomDigit(int n)
      得到随机数字
      参数:
      n -
      返回:
    • write

      public void write(OutputStream sos) throws IOException
      抛出:
      IOException
    • getBuffImg

      public BufferedImage getBuffImg()
    • getCode

      public String getCode()