
com.github.kaizen4j.shiro.captcha.CaptchaStore Maven / Gradle / Ivy
The newest version!
package com.github.kaizen4j.shiro.captcha;
/**
* @author liuguowen
*/
public interface CaptchaStore {
/**
* 保存验证码
*
* @param key 缓存键
* @param captcha 验证码文本
* @param timeMillis 过期时间毫秒
*/
void save(String key, String captcha, Long timeMillis);
/**
* 校验验证码
*
* @param key 缓存键
* @param expected 输入的验证码
* @return 校验通过返回true
*/
boolean validate(String key, String expected);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy