1234567891011121314151617181920212223242526272829303132 |
- /**
- *
- */
- package com.yihu.base.security.sms.process;
- import org.springframework.web.context.request.ServletWebRequest;
- /**
- * 校验码处理器,封装不同校验码的处理逻辑
- *
- * @author chenweida
- *
- */
- public interface ValidateCodeProcessor {
- /**
- * 创建校验码
- *
- * @param request
- * @throws Exception
- */
- void create(ServletWebRequest request) throws Exception;
- /**
- * 校验验证码
- *
- * @param servletWebRequest
- * @throws Exception
- */
- void validate(ServletWebRequest servletWebRequest);
- }
|