public sealed class PublisherIdentityPermissionAttribute : CodeAccessSecurityAttribute { // Public Constructors public PublisherIdentityPermissionAttribute(SecurityAction action); // Public Instance Properties public string CertFile{set; get; } public string SignedFile{set; get; } public string X509Certificate{set; get; } // Public Instance Methods public override IPermission CreatePermission( ); // overrides SecurityAttribute }
PublisherIdentityPermissionAttribute provides declarative syntax support for the PublisherIdentityPermission class. The publisher certificate that represents the publisher of an assembly can be specified using three different properties. The CertFile property takes the name of a certificate file containing the publisher's X.509 certificate. The SignedFile property takes the name of a file that is already signed with the publisher's certificate (which will be extracted). The X509Certificate property takes a System.String containing a hexadecimal representation of the publisher's certificate.