The .NET Framework(非原创---外教讲义)[11]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

                                                                                                                 The System namespace also contains 24 second-level namespaces.

 

Security in .NET

 

The .NET Framework provides two mechanisms for protecting resources and code from unauthorized code and users:

 

Code access security

 

It uses permissions to control the access code that has to protect resources and operations. It helps

protect computer systems from malicious mobile code and provides a way to allow mobile code to run safely. Code access security allows code to be trusted to varying degrees, depending on where the code comes from and on other aspects of the code's identity. Code access security also enforces these varying levels of trust on code, which minimizes the amount of code that must be fully trusted in order to run. Using code access security can reduce the likelihood that your code can be misused by malicious code.

 

Role-based security

 

It provides information needed to make decisions about what a user is allowed to do. These decisions can be based on either the user's identity or role membership or both. Roles are often used in financial business applications as a means of policy enforcement..NET Framework role-based security provides support for authorization by making information about the principal available to the current thread..NET applications can make authorization decisions based on either the principal's identity or role membership or both. A role is a named set of users that have the same privileges with respect to security,

 

本文关键:The .NET Framework(非原创---外教讲义)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top