Skip to Content
Programming .NET Security
book

Programming .NET Security

by Adam Freeman, Allen Jones
June 2003
Intermediate to advanced
714 pages
22h 8m
English
O'Reilly Media, Inc.
Content preview from Programming .NET Security

Name

Evidence

Synopsis

public sealed class Evidence : ICollection, IEnumerable {
// Public Constructors
   public Evidence(  );
   public Evidence(Evidence evidence);
   public Evidence(object[  ] hostEvidence, object[  ] assemblyEvidence);
// Public Instance Properties
   public int Count{get; }      
// implements ICollection
   public bool IsReadOnly{get; }
   public bool IsSynchronized{get; }     
// implements ICollection
   public bool Locked{set; get; }
   public object SyncRoot{get; }
// implements ICollection
                  // Public Instance Methods
   public void AddAssembly(object id);
   public void AddHost(object id);
   public void CopyTo(Array array, int index);   
// implements ICollection
   public IEnumerator GetAssemblyEnumerator(  );
   public IEnumerator GetEnumerator(  );   
// implements IEnumerable
   public IEnumerator GetHostEnumerator(  );
   public void Merge(Evidence evidence);
}

The Evidence class is a specialized collection used to contain evidence objects. The Evidence class actually contains two sets of evidence objects: a collection of host evidence and a collection of assembly evidence. Host evidence is the primary type of evidence used as input by the runtime to drive security policy resolution. The runtime, or possibly a trusted host, specifies the host evidence. Host evidence is added to the Evidence collection using the AddHost( ) method and accessed through the GetHostEnumerator( ) method.

Assembly evidence is normally specified at build time by the assembly developer and embedded in the assembly file as a serialized resource. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET Framework Security

.NET Framework Security

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

.NET Security and Cryptography

Peter Thorsteinson, G. Gnana Arun Ganesh
ASP.NET Core Security

ASP.NET Core Security

Christian Wenz

Publisher Resources

ISBN: 0596004427Supplemental ContentErrata Page