java中实现aes加密时提示提示provider不能验证,因为一个jar包has unsigned entries

用aes对称加密算法实现字符串加密时,提示provider不能验证,因为selenium-server-standalone-2.52.0.jar这个jar包包含未签名条目。重新下载过jar包不起作用;异常如下:
Exception in thread "main" java.lang.SecurityException: JCE cannot authenticate the provider BC
at javax.crypto.Cipher.getInstance(Cipher.java:642)
at javax.crypto.Cipher.getInstance(Cipher.java:580)
at com.cases.AesDemo.<init>(AesDemo.java:42)
at com.cases.AesDemo1.main(AesDemo1.java:13)
Caused by: java.util.jar.JarException: file:/D:/dev/workspace/api_hctng/lib/selenium-server-standalone-2.52.0.jar has unsigned entries - com/thoughtworks/selenium/CommandProcessor.class
at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:462)
at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)
at javax.crypto.JarVerifier.verify(JarVerifier.java:250)
at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161)
at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187)
at javax.crypto.Cipher.getInstance(Cipher.java:638)
... 3 more

大神们们快来吧。。。急等。。。

第1个回答  2020-07-08
这个问题解决了吗???同样的问题
相似回答