Class CheckCaptchaLoginAttemptCommandHandler
java.lang.Object
com.sankcrm.erp.auth.application.authz.captcha.CheckCaptchaLoginAttemptCommandHandler
- All Implemented Interfaces:
com.sankcrm.erp.bus.CommandHandler<Void,CheckCaptchaLoginAttemptCommand>
@Component
public class CheckCaptchaLoginAttemptCommandHandler
extends Object
implements com.sankcrm.erp.bus.CommandHandler<Void,CheckCaptchaLoginAttemptCommand>
对启用验证码策略的登录认证执行 Redis 原子限流。
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CheckCaptchaLoginAttemptCommandHandler
public CheckCaptchaLoginAttemptCommandHandler()
-
-
Method Details
-
handle
public Void handle(CheckCaptchaLoginAttemptCommand command) throws com.sankcrm.erp.common.exception.CoreException 按策略执行登录尝试限流。- Specified by:
handlein interfacecom.sankcrm.erp.bus.CommandHandler<Void,CheckCaptchaLoginAttemptCommand> - Parameters:
command- 登录应用、认证方式及原始账号名- Returns:
- 无返回载荷
- Throws:
com.sankcrm.erp.common.exception.CoreException- 达到限流阈值或 Redis 故障时抛出;启用策略下失败关闭
-