forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
578 B
35 lines
578 B
6 years ago
|
/**
|
||
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
||
|
*
|
||
|
* https://www.renren.io
|
||
|
*
|
||
|
* 版权所有,侵权必究!
|
||
|
*/
|
||
|
|
||
|
package com.epmet.service;
|
||
|
|
||
|
import java.awt.image.BufferedImage;
|
||
|
|
||
|
/**
|
||
|
* 验证码
|
||
|
*
|
||
|
* @author Mark sunlightcs@gmail.com
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
public interface CaptchaService {
|
||
|
|
||
|
/**
|
||
|
* 图片验证码
|
||
|
*/
|
||
|
BufferedImage create(String uuid);
|
||
|
|
||
|
/**
|
||
|
* 验证码效验
|
||
|
* @param uuid uuid
|
||
|
* @param code 验证码
|
||
|
* @return true:成功 false:失败
|
||
|
*/
|
||
|
boolean validate(String uuid, String code);
|
||
|
|
||
|
}
|