微软加密和压缩同步框架
我们已经开始使用同步框架进行原型设计...我想知道我们是否/如何使用加密、身份验证和压缩...
我们是否仅限于在 wcf 中使用 ssl 还是还有其他可能性...也想知道是否可以进行压缩或身份验证以及如何进行?任何带有示例的链接都很棒...
我假设它是基于 WCF 的,我们可以使用所有 WCF 身份验证机制,甚至可能是压缩传输通道等...但如果有一些示例,我太愚蠢而无法找到,请让我知道...
干杯亚历克斯
We have started prototyping with the sync framework...I would like to know if / how we can use encryption, authentication and compression...
Are we limited to using ssl in wcf or are there other possibilities...also would like to know if compression or authentication is possible and how? Any links with examples great...
I am presuming as its WCF based we can use all WCF authentication mechansims and maybe even a compression transport channel or such... but if there are examples floating around that I am too stupid to find please let me know...
Cheers alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于加密,您可以使用 WCF 绑定标记
对于身份验证,您可以在服务类中询问 ServiceSecurityContext.Current。 WindowsIdentity 了解谁是用户并执行身份验证程序。
对于压缩,您可以创建 WCF 通道,并在发送数据之前使用 GZip 压缩,并在接收之前解压缩。 (我今天将上传一个示例)。
您还可以在此处下载压缩的实现: http://weblogs.asp.net/cibrax/archive/2006/03/29/WS_2D00_Compression-for-WCF.aspx
For encryption you can use the WCF Binding tag
For authentication you can ask on the Service class for the ServiceSecurityContext.Current. WindowsIdentity to know who is the user and do you authentication rutine.
For compression you can create you WCF Channel with can use the GZip compression before sending the data and uncompress before receiving. (I will upload an example today).
Also you can download an implementation of compression here: http://weblogs.asp.net/cibrax/archive/2006/03/29/WS_2D00_Compression-for-WCF.aspx