Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert a PKCS11 symmetric key into a javax.crypto symmetric key?

843811Jul 28 2008 — edited Jul 30 2008
Hi. I am trying to convert a iaik.pkcs.pkcs11.objects.SecretKey+ into a javax.crypto.SecretKey* object but am unable to do so. My objective is to extract a PKCS11 SecretKey object from a SmartCard (done already) and then use it with a different piece of code which assumes that the key is a javax.crypto.SecretKey* object.

Thanks in advance to anyone who may help!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2008
Added on Jul 28 2008
7 comments
285 views