|
11 | 11 | import com.auth0.jwt.interfaces.DecodedJWT; |
12 | 12 | import com.java110.core.context.ApiDataFlow; |
13 | 13 | import com.java110.core.context.DataFlow; |
| 14 | +import com.java110.core.log.LoggerFactory; |
14 | 15 | import com.java110.dto.reportData.ReportDataDto; |
15 | 16 | import com.java110.dto.reportData.ReportDataHeaderDto; |
16 | 17 | import com.java110.utils.cache.CommonCache; |
|
23 | 24 | import com.java110.utils.util.Base64Convert; |
24 | 25 | import com.java110.utils.util.StringUtil; |
25 | 26 | import org.apache.commons.codec.digest.DigestUtils; |
| 27 | +import org.slf4j.Logger; |
26 | 28 |
|
27 | 29 | import javax.crypto.Cipher; |
28 | 30 | import javax.crypto.SecretKeyFactory; |
|
45 | 47 | * Created by wuxw on 2018/4/23. |
46 | 48 | */ |
47 | 49 | public class AuthenticationFactory { |
| 50 | + private static Logger logger = LoggerFactory.getLogger(AuthenticationFactory.class); |
48 | 51 |
|
49 | 52 | public final static String PASSWD_SALT = "hc@java110"; |
50 | 53 |
|
@@ -234,6 +237,7 @@ public static String dataFlowMd5(DataFlow dataFlow) throws NoAuthorityException |
234 | 237 | reqInfo += ((dataFlow.getReqBusiness() == null || dataFlow.getReqBusiness().size() == 0) |
235 | 238 | ? dataFlow.getReqData() : dataFlow.getReqBusiness().toJSONString()); |
236 | 239 | reqInfo += dataFlow.getAppRoutes().get(0).getSecurityCode(); |
| 240 | + logger.debug("加密字符串={}",reqInfo); |
237 | 241 | return md5(reqInfo); |
238 | 242 | } |
239 | 243 |
|
@@ -280,6 +284,7 @@ public static String apiDataFlowMd5(ApiDataFlow dataFlow) throws NoAuthorityExce |
280 | 284 | reqInfo += "GET".equals(dataFlow.getRequestHeaders().get(CommonConstant.HTTP_METHOD)) ? |
281 | 285 | param : dataFlow.getReqData(); |
282 | 286 | reqInfo += dataFlow.getAppRoutes().get(0).getSecurityCode(); |
| 287 | + |
283 | 288 | return md5(reqInfo); |
284 | 289 | } |
285 | 290 |
|
|
0 commit comments