Armin
Armin

Reputation: 609

How do I integrate HSM encryption with JAVA?

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.

Upvotes: 16

Views: 17247

Answers (2)

Frank
Frank

Reputation: 15641

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

Upvotes: 16

Zhenxin Sun
Zhenxin Sun

Reputation: 39

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.

Upvotes: 2

Related Questions