| | |
| | | import cn.gistack.common.utils.Base64Utils; |
| | | import cn.gistack.pwd.dto.CBCResultDTO; |
| | | import cn.gistack.pwd.dto.ResultDTO; |
| | | //import cn.gistack.pwd.fegin.IPwdClient; |
| | | import cn.gistack.pwd.fegin.IPwdClient; |
| | | import cn.gistack.sm.collect.feign.ICollectClient; |
| | | import cn.gistack.sm.collect.feign.ICollectClientFallback; |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | |
| | | |
| | | private final ICollectClient collectClient; |
| | | |
| | | // private final IPwdClient pwdClient; |
| | | private final IPwdClient pwdClient; |
| | | |
| | | @Override |
| | | @SneakyThrows |
| | |
| | | |
| | | User loginUserInfo = userInfo.getUser(); |
| | | |
| | | //获取解密后的Base64字符串 |
| | | // 获取解密后的Base64字符串 |
| | | // R<ResultDTO> encryptRes = pwdClient.getDecrypt(loginUserInfo.getSm4iv(), loginUserInfo.getKeyindexs(),loginUserInfo.getEncdata()); |
| | | // |
| | | // if (encryptRes.getCode() != 200){ |
| | | // throw new UserDeniedAuthorizationException("获取密钥失败"); |
| | | // } |
| | | |
| | | //解码Base64 |
| | | // |
| | | // //解码Base64 |
| | | // String JSONstr = Base64Utils.getBase64Decode(encryptRes.getData().getData()); |
| | | // |
| | | // pwdClient.verify(loginUserInfo.getMaced(),loginUserInfo.getSm4iv(),loginUserInfo.getKeyindexs(),JSONstr,loginUserInfo.getId().toString(),"blade_user"); |