reinitializing key object from encoded byte array

Dave Miller (dmiller@preEmptive.com)
Wed, 02 Jul 1997 12:03:25 -0400

Message-Id: <3.0.2.32.19970702120325.007b5d50@preemptive.com>
Date: Wed, 02 Jul 1997 12:03:25 -0400
To: java-security@web2.javasoft.com
From: Dave Miller <dmiller@preEmptive.com>
Subject: reinitializing key object from encoded byte array

hi -

is it possible to create/reinitialize an object implementing
the Key interface from a byte array generated using the
getEncoded() method of that object? my question really is,
if is use the getEncoded() method to store a PublicKey in
a database as a byte array, would it be possible to read
in that byte array from the database and initialize a
Key object. ...or would storage of a serialized key
be more ideal? thanks for any help.

dave