网站大量收购独家精品文档,联系QQ:2885784924

代码访问流程解读.doc

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
要在您的ASP.NET应用程序中使用代码访问安全性: Step 1. 第1步。 Identify the permissions your application needs . 确定您的应用程序需要的权限。 Step 2. 第2步。 Choose an appropriate trust level . 选择适当的信任级别 。 Step 3. 第3步。 Configure your ASP.NET application . 配置您的ASP.NET应用程序。 Step 4. 第4步。 Optionally create a custom trust level . 也可以创建一个自定义的信任级别。 Step 1.第1步。 Identify the Permissions Your Application Needs您的应用需求确定权限 Identify the precise set of code access security permissions that your application requires.确定精确的代码访问安全权限设置,您的应用需要。 You can do this by manually reviewing your code or by using the Permissions Calculator tool (Permcalc.exe).您可以通过手动检查你的代码,或使用权限计算器工具(Permcalc.exe)。 Manually Reviewing Code to Identity Permission Requirements手动审查代码标识权限要求 To manually identify permission requirements, you need to analyze your code and determine the types of resources it accesses, the kind of resource access it requires (such as read/write), and the privileged operations it performs.要手动确定的权限要求,你需要分析代码并确定资源访问,资源访问的要求(如读/写),它执行特权操作的类型。 The main difficulty with trying to manually identify permission requirements occurs if your code calls other assemblies, such as third-party assemblies or system assemblies.如果您的代码调用其他组件,如第三方组件或系统组件,试图手动识别权限要求的主要困难。 Identifying their permission requirements can be very difficult.确定其权限要求是非常困难的。 This is where the PermCalc tool can help.这是PermCalc工具可以帮助。 For more information about the permissions you need to be able to access specific resources types, see the Resource Access Permissions Summary section later in this document.的权限,你需要能够访问特定的资源类型的更多信息,请参阅本文档后面的“资源访问权限概要”一节。 For more information about privileged operations and the permissions you need to be able to perform them, see the Privileged Operation Permissions Summary section later in this document.有关特权操作的权限,你需要能够执行他们的详细信息,请参阅本文档后面的“特权操作权限概要”一节。 Using the Permissions Calculator Tool使用权限计算器工具 If you use separate assemblies for your applications business and data access logic and place them either in your applications \bin directory

您可能关注的文档

文档评论(0)

xiaofei2001128 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档