Hi!
I've started using the javax.crypto.SealedObject class for storing
sensitive information. When retrieving the Object, you need to supply at
least the key used for encryption.
If I construct a Key with the same algorithm, padding etc, but from
another seed, I have seen that I get a IOException when trying to
deserialize the stored Object.
Is this guaranteed to happen if the Key is the wrong one?
The documentation just says the IOException is thrown if the
deserializing fails, but doesn't explicitly tells on what occasions this
will happen. Can anyone shed some light on the issue.
Yours,
--
_/ _/_/_/ _/ _/ _/_/_/ | Jens Carlberg
_/ _/ _/_/ _/ _/ | UNIT, Linköpings universitet
_/ _/_/ _/ _/_/ _/ | Tel: +xx xx xxxxxx
_/_/ _/_/_/ _/ _/ _/_/_/ | Fax: +xx xx xxxxxx