Beispiel #1
0
 private boolean verify(String verifyData, String signMsg) {
   try {
     Crypt crypt = new Crypt(ENCODING);
     return crypt.verify(verifyData, signMsg, publicKey);
   } catch (CryptException e) {
     log.error("验签异常:" + e.getMessage(), e);
     throw new SysException("银联-验签响应报文异常!");
   }
 }
Beispiel #2
0
 private String sign(String signData) {
   try {
     Crypt crypt = new Crypt(ENCODING);
     return crypt.sign(signData, privateKey, privateKeyPwd);
   } catch (CryptException e) {
     log.error("签名异常:" + e.getMessage(), e);
     throw new SysException("银联-请求报文签名异常!");
   }
 }