Bewerken

Delen via


ManifestSignatureInformation.VerifySignature Method

Definition

Gathers and verifies information about the signatures of the specified manifests.

Overloads

VerifySignature(ActivationContext)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context.

VerifySignature(ActivationContext, ManifestKinds)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type.

VerifySignature(ActivationContext, ManifestKinds, X509RevocationFlag, X509RevocationMode)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type, and allows certificates to be selected for revocation.

VerifySignature(ActivationContext)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context.

public:
 static System::Security::Cryptography::ManifestSignatureInformationCollection ^ VerifySignature(ActivationContext ^ application);
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature (ActivationContext application);
static member VerifySignature : ActivationContext -> System.Security.Cryptography.ManifestSignatureInformationCollection
Public Shared Function VerifySignature (application As ActivationContext) As ManifestSignatureInformationCollection

Parameters

application
ActivationContext

The activation context of the manifest. Activation contexts belong to an application and contain multiple manifests.

Returns

A collection that contains a ManifestSignatureInformation object for each manifest that is verified.

Exceptions

The application parameter is null.

Applies to

VerifySignature(ActivationContext, ManifestKinds)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type.

public:
 static System::Security::Cryptography::ManifestSignatureInformationCollection ^ VerifySignature(ActivationContext ^ application, System::Security::ManifestKinds manifests);
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature (ActivationContext application, System.Security.ManifestKinds manifests);
static member VerifySignature : ActivationContext * System.Security.ManifestKinds -> System.Security.Cryptography.ManifestSignatureInformationCollection
Public Shared Function VerifySignature (application As ActivationContext, manifests As ManifestKinds) As ManifestSignatureInformationCollection

Parameters

application
ActivationContext

The activation context of the manifest. Activation contexts belong to an application and contain multiple manifests.

manifests
ManifestKinds

The type of manifest. This parameter specifies which manifests in the activation context you want to verify.

Returns

A collection that contains a ManifestSignatureInformation object for each manifest that is verified.

Exceptions

The application parameter is null.

Applies to

VerifySignature(ActivationContext, ManifestKinds, X509RevocationFlag, X509RevocationMode)

Gathers and verifies information about the signatures of manifests that belong to a specified activation context and manifest type, and allows certificates to be selected for revocation.

public:
 static System::Security::Cryptography::ManifestSignatureInformationCollection ^ VerifySignature(ActivationContext ^ application, System::Security::ManifestKinds manifests, System::Security::Cryptography::X509Certificates::X509RevocationFlag revocationFlag, System::Security::Cryptography::X509Certificates::X509RevocationMode revocationMode);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature (ActivationContext application, System.Security.ManifestKinds manifests, System.Security.Cryptography.X509Certificates.X509RevocationFlag revocationFlag, System.Security.Cryptography.X509Certificates.X509RevocationMode revocationMode);
public static System.Security.Cryptography.ManifestSignatureInformationCollection VerifySignature (ActivationContext application, System.Security.ManifestKinds manifests, System.Security.Cryptography.X509Certificates.X509RevocationFlag revocationFlag, System.Security.Cryptography.X509Certificates.X509RevocationMode revocationMode);
[<System.Security.SecurityCritical>]
static member VerifySignature : ActivationContext * System.Security.ManifestKinds * System.Security.Cryptography.X509Certificates.X509RevocationFlag * System.Security.Cryptography.X509Certificates.X509RevocationMode -> System.Security.Cryptography.ManifestSignatureInformationCollection
static member VerifySignature : ActivationContext * System.Security.ManifestKinds * System.Security.Cryptography.X509Certificates.X509RevocationFlag * System.Security.Cryptography.X509Certificates.X509RevocationMode -> System.Security.Cryptography.ManifestSignatureInformationCollection
Public Shared Function VerifySignature (application As ActivationContext, manifests As ManifestKinds, revocationFlag As X509RevocationFlag, revocationMode As X509RevocationMode) As ManifestSignatureInformationCollection

Parameters

application
ActivationContext

The application context of the manifests. Activation contexts belong to an application and contain multiple manifests.

manifests
ManifestKinds

The type of manifest. This parameter specifies which manifests in the activation context you want to verify.

revocationFlag
X509RevocationFlag

One of the enumeration values that specifies which certificates in the chain are checked for revocation. The default is ExcludeRoot.

revocationMode
X509RevocationMode

Determines whether the X.509 verification should look online for revocation lists.

Returns

A collection that contains a ManifestSignatureInformation object for each manifest that is verified.

Attributes

Exceptions

The application parameter is null.

A value specified for the revocationFlag or revocationMode parameter is invalid.

Applies to