ValidateCodeProcessor.java 536 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. *
  3. */
  4. package com.yihu.base.security.sms.process;
  5. import org.springframework.web.context.request.ServletWebRequest;
  6. /**
  7. * 校验码处理器,封装不同校验码的处理逻辑
  8. *
  9. * @author chenweida
  10. *
  11. */
  12. public interface ValidateCodeProcessor {
  13. /**
  14. * 创建校验码
  15. *
  16. * @param request
  17. * @throws Exception
  18. */
  19. void create(ServletWebRequest request) throws Exception;
  20. /**
  21. * 校验验证码
  22. *
  23. * @param servletWebRequest
  24. * @throws Exception
  25. */
  26. void validate(ServletWebRequest servletWebRequest);
  27. }