Düzenle

Aracılığıyla paylaş


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.

public ref class Publisher sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public ref class Publisher sealed : System::Security::Policy::IIdentityPermissionFactory
[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
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type Publisher = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
[<System.Serializable>]
type Publisher = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Publisher = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Publisher = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
type Publisher = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
Public NotInheritable Class Publisher
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class Publisher
Implements IIdentityPermissionFactory
Inheritance
Publisher
Inheritance
Publisher
Attributes
Implements

Remarks

Caution

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

See also