很坑爹的问题,4.0一下没问题,完全按照接口文件写的。网上一查,很多人遇到。最好直接在4.2下调试,看看报错问题,然后度娘。

将RSA文件中的加上“BC”后测试通过。。。NND

PKCS8EncodedKeySpec privSpec = new PKCS8EncodedKeySpec(s_privateKeyIn1t);
KeyFactory keyFactory = KeyFactory.getInstance("RSA", "BC");
PrivateKey privateKey = keyFactory.generatePrivate(privSpec);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-09-03
  • 2021-06-20
  • 2021-11-28
  • 2021-11-29
猜你喜欢
  • 2022-01-15
  • 2022-12-23
  • 2021-08-21
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案