How to ensure data integrity when sending serialized objects across networks. Implemented example would be helpful. One way could be to use java.io.Externalizable with java.security.MessageDigest But this is requires a manual serialization. I think that is bit risky, so i would not want to use it. Is there any other way?
Asked
Active
Viewed 151 times
1 Answers
1
What you are looking for is javax.crypto.SealedObject
or java.security.SignedObject
.

user207421
- 305,947
- 44
- 307
- 483
-
encryption != signature. It seems like the OP wants to ensure that no man in the middle changed what has been sent, and doesn't want to make it confidential. – JB Nizet Jan 16 '14 at 10:02
-
@JB Nizet is correct.. I am trying to come up with a code to clarify my question – vartika Jan 16 '14 at 10:11