类 CaptchaUtil
java.lang.Object
com.mbap.auth.util.CaptchaUtil
-
方法概要
修饰符和类型方法说明static com.mbap.core.dto.CaptchaDTOgetCaptcha(com.mbap.core.dto.CaptchaDTO captchaDto) static intgetNonceByRange(int start, int end) static BufferedImageimageResize(BufferedImage bufferedImage, int width, int height) static StringtoBase64(BufferedImage bufferedImage, String type)
-
方法详细资料
-
getCaptcha
public static com.mbap.core.dto.CaptchaDTO getCaptcha(com.mbap.core.dto.CaptchaDTO captchaDto) - 参数:
captchaDto-
-
getNonceByRange
public static int getNonceByRange(int start, int end) - 参数:
start-end-- 返回:
- int
-
imageResize
- 参数:
bufferedImage-width-height-- 返回:
- java.awt.image.BufferedImage
-
toBase64
- 参数:
bufferedImage-type-- 返回:
- java.lang.String
-