什么是.NET code使用安全 [英] What is Code Access Security in .NET

查看:410
本文介绍了什么是.NET code使用安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是 CAS 在.NET($ C C访问安全性$),以及如何实现呢?什么是使用它的好处是什么?

What is CAS (Code Access Security) in .NET, and how to achieve it? What are the benefits of using it?

推荐答案

最好的链接,我发现学习有关CAS,你可以找到我的美味关于这个问题页。

The best links I found for learning about CAS you can find on my Delicious page on the subject.

总之,CAS的安全沙箱的.NET。本地应用程序通常具有完全信任,这意味着他们可以做任何事情。中承载浏览器的应用程序。NET可以做的不多。在这期间,几乎所有的安全设置,可以进行微调使用CAS。

In short, CAS is the security sandbox for .NET. Local apps typically have full trust which means they can do anything. .NET apps that are hosted in the browser can't do much. In between, just about any security setting can be fine-tuned using CAS.

它的优点:伟大的控制哪些应用程序。NET可以做,即使在已登录用户的上下文中。关于它的最好的部分,国际海事组织,是安全检查走栈,这样即使有些code有权限做一些事情,如果该方法被调用由的其他程序不的有权限做一些事情,该请求将失败(除非采取特别措施)。

It's benefits: great control over what .NET apps can do, even within the context of the logged in user. The best part about it, IMO, is that security checks walk the stack, so that even if some code has permission to do something, if that method was called by another program that doesn't have permission to do something, that request will fail (unless special measures are taken).

的缺点:它是一个pretty的复杂的野兽学习。很多陷阱的。但希望我提供的链接将带领您了解什么细节你需要知道的。

The downsides: it's a pretty complex beast to learn. Lots of gotchas. But hopefully the links I've provided will lead you to learn whatever details you need to know.

这篇关于什么是.NET code使用安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆