O'Reilly logo

.NET Framework Security by Kevin T. Price, Rudi Martin, Matthew Lyons, Sebastian Lange, Brian A. LaMacchia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Different Sources of Evidence

I mentioned earlier that evidence is a collection of information. This was meant very literally. Evidence is represented by the System.Security.Policy.Evidence class, and this class implements the System.Collections.ICollection interface. This means that it is a container class for instances of other classes. Actually, each evidence object has two separate collections to cover two different sources of evidence:

  • Host-provided evidence

  • Assembly-provided evidence

TIP

To gain a more practical understanding of what evidence looks like on an assembly, compile and run the program from Listing 5.1. It simply looks at the Evidence property on a System.Reflection.Assembly object.

Listing 5.1. Program That Prints Out Its Own ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required