SecretKeys and KeyStore

Morten Helles (mhelles@post6.tele.dk)
Thu, 29 Oct 1998 19:10:28 +0100

Hi.

Looking at the APIs for JCA and JCE, I wonder how SecretKey instances
are stored in the KeyStore. Is it at all possible? (besides rewriting
the KeyStore class, of course!). The setKeyEntry() can only handle
private keys, right? If so, can a SecretKey somehow be converted to a
PrivateKey and then saved in the KeyStore?

Kind regards,

Morten.