java.lang.SecurityException: JCE cannot authenticate the provider BC
2017-05-02 17:24
483 查看
在与银联的对接中,调试过程中报错:java.lang.SecurityException: JCE cannot authenticate the provider BC
这个问题百度是解决不了的,是google解决的,google里面有一篇解释很清楚完整的博客,原文地址:http://download.csdn.NET/detail/tomliguocai/3945936
膜拜大神
以下是具体的解决方法:
1.在java下找到 jre/lib/security/java.security,添加一行代码:
2.添加2个扩展包到jre/lib/ext目录下:bcprov-jdk15-135.jar bcprov-jdk16-143.jar
3.把你的class path中的有的BC的扩展包都删除(这步我没有用到,因为class path里面没有这个)
这个问题百度是解决不了的,是google解决的,google里面有一篇解释很清楚完整的博客,原文地址:http://download.csdn.NET/detail/tomliguocai/3945936
膜拜大神
以下是具体的解决方法:
1.在java下找到 jre/lib/security/java.security,添加一行代码:
security.provider.9=org.bouncycastle.jce.provider.BouncyCastleProvider //这里的9,视具体情况而定,你可能是是10,11...
2.添加2个扩展包到jre/lib/ext目录下:bcprov-jdk15-135.jar bcprov-jdk16-143.jar
3.把你的class path中的有的BC的扩展包都删除(这步我没有用到,因为class path里面没有这个)
相关文章推荐
- java.lang.SecurityException: JCE cannot authenticate the provider BC
- 运行jar包出现问题:java.lang.SecurityException: JCE cannot authenticate the provider BC
- java.lang.SecurityException: JCE cannot authenticate the provider BC
- java.lang.SecurityException: JCE cannot authenticate the provider BC
- java.lang.SecurityException: JCE cannot authenticate the provider BC
- JCE cannot authenticate the provider BC
- JCE cannot authenticate the provider BC
- JCE cannot authenticate the provider BC
- Decipher加密工具报错:JCE cannot authenticate the provider BC 解决方法
- JCE cannot authenticate the provider BC
- JCE cannot authenticate the provider BC
- java.security.NoSuchProviderException: no such provider: BC 的问题解决
- java.security.NoSuchProviderException: no such provide:BC
- (报错)java.lang.SecurityException: Permission Denial: opening provider
- java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null
- java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDo
- JAVA刚碰见的问题( java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted s
- Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://...
- java.lang.SecurityException: Filter of class org.apache.catalina.ssi.SSIFilter is privileged and cannot be loaded by this web application
- Eclipse下调试HBase程序报“Will not attempt to authenticate using SASL (java.lang.SecurityException : 无法定位登”