System.Security.Cryptography.Pkcs.SignerInfo.ComputeCounterSignature Method

The SignerInfo.ComputeCounterSignature(CmsSigner) method creates a countersignature by using the specified signer and adds the signature to the CMS/PKCS #7 message. Countersignatures are restricted to one level.

Syntax

public void ComputeCounterSignature (CmsSigner signer)

Parameters

signer
A System.Security.Cryptography.Pkcs.CmsSigner object that represents the counter signer.

Remarks

This implementation of CMS/PKCS #7 supports only one level of countersignature. That is, a signature can be signed, which forms a countersignature, but that countersignature cannot be signed again.

.NET Framework Security

The following permissions are required to access the signature key:

Requirements

Namespace: System.Security.Cryptography.Pkcs
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0