Commit 28990510 authored by 陈宏杰's avatar 陈宏杰

日志打印

parent 611248ea
......@@ -108,6 +108,7 @@ public class BaiHangQueryService extends AbstractBaseService implements CommonSu
private Map<String, String> getHeader() {
log.info("baiHangQ1AccountName: {} , haiHangQ1Password: {}",baiHangQ1AccountName,haiHangQ1Password);
Map<String, String> headerMap = new HashMap<>();
headerMap.put("Authorization", "Basic " + Base64.byteArrayToBase64((baiHangQ1AccountName + ":" + haiHangQ1Password).getBytes()));
headerMap.put("Content-Type", "application/json");
......
package cn.quantgroup.report.service.baihang.util;
import lombok.extern.slf4j.Slf4j;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
......@@ -16,6 +18,7 @@ import java.security.spec.X509EncodedKeySpec;
* @Author fengjunkai
* @Date 2019-03-27 15:17
*/
@Slf4j
public class BHRSAUtils {
//加密算法
......@@ -102,6 +105,7 @@ public class BHRSAUtils {
}
br.close();
isr.close();
log.info("公钥: {}",builder.toString());
byte[] keyBytes = Base64.base64ToByteArray((builder.toString()));
X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment