当前位置: 动力学知识库 > 问答 > 编程问答 >

java serialization across networks data integrity

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: