Читати англійською Редагувати

Поділитися через


Publisher Class

Definition

Caution

Code Access Security is not supported or honored by the runtime.

Provides the Authenticode X.509v3 digital signature of a code assembly as evidence for policy evaluation. This class cannot be inherited.

[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class Publisher : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
public sealed class Publisher : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Publisher : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Publisher : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
public sealed class Publisher : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
Inheritance
Publisher
Inheritance
Publisher
Attributes
Implements

Remarks

Застереження

Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.

The presence of Publisher evidence produces a PublisherIdentityPermission in the grant set. If there is a Demand for PublisherIdentityPermission, the PublisherIdentityPermission that corresponds to the Publisher evidence will be compared with the demanded permission.

Publisher evidence is based on Authenticode X.509v3 signatures.

By default, code access security (CAS) does not check for Publisher evidence. Unless your computer has a custom code group based on the PublisherMembershipCondition class, you can improve performance by bypassing Authenticode signature verification. This is accomplished by configuring the runtime to not provide Publisher evidence for CAS. For more information about how to configure this option and which applications can use it, see the <generatePublisherEvidence> element.

Constructors

Publisher(X509Certificate)

Initializes a new instance of the Publisher class with the Authenticode X.509v3 certificate containing the publisher's public key.

Properties

Certificate

Gets the publisher's Authenticode X.509v3 certificate.

Methods

Clone()

Creates a new object that is a copy of the current instance.

Clone()

Creates a new object that is a complete copy of the current instance.

(Inherited from EvidenceBase)
Copy()

Creates an equivalent copy of the Publisher.

CreateIdentityPermission(Evidence)

Creates an identity permission that corresponds to the current instance of the Publisher class.

Equals(Object)

Compares the current Publisher to the specified object for equivalence.

GetHashCode()

Gets the hash code of the current Certificate.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string representation of the current Publisher.

Applies to

Продукт Версії (Застаріло.)
.NET (8 (package-provided), 9 (package-provided))
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1 (5, 6, 7, 8, 9)

See also