使用 NetTcpBinding 在 WCF 中进行 Windows 身份验证/加密

编程入门 行业动态 更新时间:2024-10-07 22:19:13
本文介绍了使用 NetTcpBinding 在 WCF 中进行 Windows 身份验证/加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试了解 Windows 身份验证/加密如何与 WCF 中的 NetTcpBinding 配合使用.我需要确切地知道使用什么加密算法来加密通过线路传输的数据(以及一些证明它的文档).如果客户端和/或主机不在域中,Windows 身份验证/加密仍然有效吗?

I'm trying to understand how windows authentication / encryption works with the NetTcpBinding in WCF. I need to know exactly what encryption algorithm is used to encrypt the data going across the wire (and some documentation to prove it). Will windows authentication / encryption still work if the client and or host is not on a domain?

推荐答案

使用 Windows 凭据的 netTcpBinding 要求调用方和服务位于同一域中 - 或至少位于相互信任的域中.否则,服务器将无法验证 Windows 凭据并拒绝服务调用.

The netTcpBinding using Windows Credentials requires the caller and the service to be on the same domain - or at least on mutually trusting domains. Otherwise, the server won't be able to verify the Windows credentials and will refuse the service call.

至于加密:您甚至可以挑选您想要的!:-) TripleDES、AES - 随你命名,也有不同的密钥长度.

As for encryption : you can even pick and choose which one you'd like ! :-) TripleDES, AES - you name it, with varying key lengths, too.

请参阅 WCF 安全基础文章 -它讨论了安全和加密的所有方面;另请参阅 Securing Services 上的 MSDN 文档,其中有更详细的介绍;可以在此处找到一个很好的概述,其中显示了basicHttp 传输安全元素的属性.

See the Fundamentals of WCF Security article - it talks about all aspects of security and encryption; also see the MSDN Docs on Securing Services which goes into some more detail; a good overview can be found here showing the properties of the basicHttp transport security element.

这篇关于使用 NetTcpBinding 在 WCF 中进行 Windows 身份验证/加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 20:18:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1142748.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   NetTcpBinding   WCF   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!