<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.7.25380.108" />

PublisherIdentityPermissionAttribute

Allows security actions for PublisherIdentityPermission to be applied to code using declarative security. This class cannot be inherited.
public string CertFile { get; set; }

Gets or sets a certification file containing an Authenticode X.509v3 certificate.

public string SignedFile { get; set; }

Gets or sets a signed file from which to extract an Authenticode X.509v3 certificate.

public string X509Certificate { get; set; }

Gets or sets an Authenticode X.509v3 certificate that identifies the publisher of the calling code.

Initializes a new instance of the PublisherIdentityPermissionAttribute class with the specified SecurityAction.