How do I integrate HSM encryption with JAVA?

百般思念 提交于 2019-12-21 03:49:27

问题


How do i integrate Hardware Security Module encryption with a java application? I'm looking for code samples to connect to HSMs, generate keys(asymmetric, symmetric), encrypt and decrypt data (asymmetric, symmetric) and store keys.


回答1:


In JAVA you can just use JCE/JCA. Ask you provider for the implementation, you will need some jar files, and you're ready.




回答2:


All HSM should support common API interfaces, such as PKCS11, JCE or MSCAPI. For Java integration, they would offers JCE CSP provider as well. Simply configure the provider, and they you can use the Keystore/KeyGenerator as per normal.



来源:https://stackoverflow.com/questions/12981977/how-do-i-integrate-hsm-encryption-with-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!