iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  ASP (26)
  ASP.NET (19)
  C and C++ (4)
  CFML (2)
  CGI and Perl (16)
  Flash (2)
  Java (7)
  JavaScript (28)
  PHP (92)
  MySQL (13)
  MSSQL (3)
  HTML (35)
  SEO (9)
  Visual Basic (12)
  CSS (13)
  SSI (5)
  XML (12)
  C# (14)

  Developer News

July 20, 2008
Wiki: A Solution to the Web Design Problem
About
 
July 19, 2008
Plurk or Twitter: Which one is Better?
About
 
July 19, 2008
Top 10 Social Networking Sites
About
 
July 19, 2008
Create Menus with Lists and CSS
About
 
July 17, 2008
Poll: What do you do when you can't design?
About
 
July 17, 2008
22 Reasons to Plurk
About
 
Courtesy of moreover.com
 
Want to receive new articles via e-mail? Click here!
/Home /Visual Basic

Security and the .NET 

  Views:    7960
  Votes:    2
by Pawan Bangar 10/09/04 Rating: 

Synopsis:

Most application and component developers should not need anything special in order to work with the .NET security system and take advantage from the safety protection it provides.
Pages: firstback1 forwardlast
The Article

.Net security allows code to use protected resources only if it has "permission" to do so.

To express this, .NET uses the concept of permissions, which represents the right to code to access protected resources. Code requests the permissions it needs, and the security policy applied by .NET determines which permissions the code is actually granted.

.NET provides code access permission classes. Each of these classes encapsulates the ability to access a particular resource. You use these permissions to indicate to ..NET what your code needs to be allowed to do and to indicate what your code caller's must be authorized to.

POLICY ALSO USES THESE OBJECTS TO DETERMINE WHAT PERMISSIONS TO GRANT TO CODE.

Policy Enforcement of security policy is what makes..NET managed code safe. Every assembly that loads is subject to security policy that grants code permissions based on trust, with trust based on evidence about the code.

There are two ways to modify security permissions in C# by using calls to permission classes in the .NET frameworks, or by using security permission attributes.

The .NET security system prevents malicious code downloaded from the network from damaging your computer. However, these security checks are not without cost, even if your code never throws a security exception.

You can disable the unmanaged code security demand when making calls to unmanaged code by using the SuppressUnmanagedCodeSecurity attribute.

Pages: firstback1 forwardlast

Similar/related articles:


 
  Sponsors