You work as the application developer at Certkiller .com. The global cache contains an assembly named Certkiller Ass10. You are busy working on an assembly named Certkiller Ass09. Certkiller Ass9 includes a public method.
You want the public method to be called from only Certkiller Ass10.
Choose the permission class which you should use.
A. Use the GacIdentityPermission
B. Use the PublisherIdentityPermission
C. Use the DataProtectionPermission
D. Use the StrongNameIdentityPermission
Answer: D
Explanation: StrongNameIdentityPermission can be used to verify the identity of a calling assembly.
GACIdentityPermission can be used to test whether a file is in the global assembly cache or not.
PublisherIdentityPermission can be used to verify the identity of a publisher.
DataPublisherPermission is used to control the ability to access encrypted data and memory.
Comments