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.
In JAVA you can just use JCE/JCA. Ask your provider for the implementation, you will need some jar files, and you're ready.