我正在尝试在使用 ADF Mobile 开发的移动应用程序中加密一些安全信息。我正在使用“javax.crypto.Cipher”。根据我的理解,ADF Mobile 将它自己的 JVM 与应用程序的 apk/ipa 一起打包用于部署目的。但在部署过程中,我们面临以下问题
java.lang.ExceptionInInitializerError
at java.lang.Class.runStaticInitializers(Unknown Source)
at javax.crypto.Cipher.a(Unknown Source)
at javax.crypto.Cipher.getInstance(Unknown Source)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
01-08 16:10:19.758: D/CVM(769): at javax.crypto.SunJCE_b.<clinit>(Unknown Source)
01-08 16:10:19.768: D/CVM(769): ... 14 more
01-08 16:10:19.768: D/CVM(769): Caused by: java.lang.SecurityException: Cannot locate policy or framework files!
01-08 16:10:19.768: D/CVM(769): at javax.crypto.SunJCE_b.g(Unknown Source)
01-08 16:10:19.768: D/CVM(769): at javax.crypto.SunJCE_b.f(Unknown Source)
01-08 16:10:19.768: D/CVM(769): at javax.crypto.SunJCE_t.run(Unknown Source)
在以下行: Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
这些政策文件将在哪里?如何检查它们是否存在?
任何帮助将不胜感激。如果您需要更多信息,请告诉我。