aws-samples / aws-cloudhsm-jce-examples

Sample applications demonstrating how to use the CloudHSM JCE
MIT No Attribution
37 stars 57 forks source link

Util.findKey() deprecated #32

Closed ArtemShypotilov closed 3 years ago

ArtemShypotilov commented 4 years ago

Hi Guys!

Can you please advise why com.cavium.cfm2.Util.findKey() is deprecated?

What should I use instead to get key handle by key label?

Thanks.

mayankambaliya commented 4 years ago

You could use KeyStore's getKey function to get a CaviumKey object and call getHandle() on it. You can find the example usage in KeyStoreExampleRunner.java or CloudHSMKeyStoreExampleRunner.java

rday commented 3 years ago

I'll close this as the sample gives a way to get the handle from the KeyStore, please re-open if there is still an issue!