PrepAway - Latest Free Exam Questions & Answers

You are required to additionally configure code access permissions for the TestScrapData classWhat should you

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You use a Windwos XP Professional client computer named Certkiller -WS536 as your development computer.
You are developing a .NET Framework 2.0 application on Certkiller -WS536. You write the class named TestScrapData.
You are required to configure the TestScrapData class and limit its access to only the code originating from a specific Web site, www. Domain.com and its subdomains.
The Web sites will be required to be access using HTTP, HTTPS and the FTP protocols.
You are required to additionally configure code access permissions for the TestScrapData class
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
The SiteIdentityPermission class should be used in the scenario.

B.
The PublisherIdentityPermission class should be used in the scenario.

C.
The ZoneIdentityPermission class should be used in the scenario.

D.
The UrlIdentityPermission class should be used in the scenario.

Explanation:
To successfully achieve your scenario objective you must use the SiteIdentityPermission class to configure code access permissions for the callers from a specific Web site.
Incorrect Answers:
B: This class should not be used as it is designed for usage to configure permissions based on the identity of the software publisher.
C: This class should not be used because it is used to configure code access permissions for the zone where the code originates and the Internet zone may contain to many Web-sites.
D: This class should not be considered for use as it is used to configure access permissions for a Uniform Resource Locator (URL).

One Comment on “You are required to additionally configure code access permissions for the TestScrapData classWhat should you


Leave a Reply