问题描述:

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?

网友答案:

What you are looking for is javax.crypto.SealedObject or java.security.SignedObject.

相关阅读:
Top