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

Publisher

Synopsis

public sealed class Publisher : IIdentityPermissionFactory, IBuiltInEvidence {
// Public Constructors
   public Publisher(System.Security.Cryptography.X509Certificates.X509Certificate cert);
// Public Instance Properties
   public X509Certificate Certificate{get; }
// Public Instance Methods
   public object Copy(  );
   public IPermission CreateIdentityPermission(Evidence evidence);
 // implements IIdentityPermissionFactory
   public override bool Equals(object o);        
// overrides object
   public override int GetHashCode(  );    
// overrides object
   public override string ToString(  );    
// overrides object
}

This evidence class represents the Authenticode X.509v3 digital signature used to sign an assembly. The digital signature is passed as a System.Security.Cryptography.X509Certificates.X509Certificate argument to the Publisher constructor and is accessible after creation through the Certificate property.

The PublisherMembershipCondition class uses Publisher evidence during policy resolution to evaluate whether an assembly or application domain qualifies for membership of a CodeGroup.

Because the Publisher class implements the IIdentityPermissionFactory interface, an assembly or application domain with Publisher evidence will contain an appropriately configured System.Security.Permissions.PublisherIdentityPermission object in its grant set.

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