.Net 是否有任何内置控件来确保消息完整性?
我知道我可以去阅读框架的源代码,但是为了节省时间并从社区获取一些东西,有谁知道是否有任何 .Net 类专门确保消息正确传递,或者协议本身是否处理这。
例如,我想确保以下场景:
- 我编写的 SQL 语句在服务器上被接收,并且返回的结果与服务器发送的结果完全相同
- 我的 Web 服务调用发送和接收的内容与预期完全一致
- 我的 .Net 远程调用发送和接收的内容与预期的一致
- WCF 相同
这是为了检查数据包是否未被篡改,网络中断并不意味着某些数据已丢失等。
这特别与 ISO 27001 有关,A12.2.3。
提前致谢。
I know I could go and read the source code of the Framework, but in the interests of saving time and getting something back fro mthe community, does anyone know if any .Net classes specifically ensure messages are delivered correctly, or if the protocols themselves handle this.
For example, I want to make sure of the following scenarios:
- My SQL statement is received at the server as I wrote it, and the results that arrive back are exactly as the server sent them
- My web service calls send and receive exactly what is expected
- My .Net remoting calls send and receive exactly what is expected
- Same for WCF
This is to check that the packets haven't been tampered with, that a network outage doesn't mean some data has been lost etc.
This specifically relates to ISO 27001, A12.2.3.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WCF TCP 绑定具有可靠消息传递的概念,这将确保您的数据契约可靠地交付。还有加密/签名功能,您可以在此处了解更多信息。
WCF TCP Binding has a notion of reliable messaging, which will ensure your data contracts are reliably delivered. There's also encryption/signing feature you can read more about here.