java.lang.SecurityException:JCE cannot authenticate the provider BC

时间:2015-09-15 10:38:51   收藏:0   阅读:2233

技术分享

 

出现:java.lang.SecurityException:JCE cannot authenticate the provider BC

2种方法:修改jdk的提供者:

  1. 在jdk/jre/lib/sercurity/java.security 增加 security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider
  2. 导入bcprov-jdk15-145.jar

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!