且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Bouncy Castle提供程序集成到Java程序中的***方法是什么?

更新时间:2023-02-09 17:17:38

作为具有自己代码的安全提供程序,它是***选择。
这是因为它仅取决于项目,而不取决于系统。将BouncyCastle jar文件添加到您的项目中,然后将其添加到类路径中。它将在所有系统上运行,而无需进一步的手动安装步骤。

In my opinion the adding it as security provider with own code is the best option. This is because it is only project dependent - not system dependent. Add the BouncyCastle jar file(s) to your project and add them to the class-path and that's it. It will work on all systems without need for further manual installation steps.

如果将BouncyCastle安装到JRE中,则在必须更新JRE时总是会遇到问题。

If you install BouncyCastle into the JRE you always have problems in case you have to update the JRE.