There's no way to do this currently. The next version of JSS will allow this for JCA compatibility.
It could be argued that this functionality is not needed; that existing protocols only require that a key can be unwrapped from an encrypted form, but not imported in plaintext. Keeping key data in plaintext is less secure than handling wrapped versions and is usually not necessary. May I ask what you are doing that you are handling plaintext key data? Swaminathan Seetharaman wrote: > Hi, > How do I go about creating a SymmetricKey (PK11SymKey) object from Raw > bytes using JSS api's. It looks like it can be done only by using > KeyGenerator.generate() method. But is there any way to create a > SymmetricKey object out of raw bytes similar to RawSecretKey in JCE. > > regards > cheers swamy >
