IOException: error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC this problem, Google basically modify the jdk: https://open.unionpay.com/cmweb/support/faq/mchlist?id=259 . But I changed it can not be, in the test environment found no report this error, check, the test environment with jdk1.8, my local use is 1.6, the local jdk to 1.8 will not report the error