System.Security.Cryptography.Pkcs.SignerInfo: Method Members

The methods of System.Security.Cryptography.Pkcs.SignerInfo are listed below. For a list of all members, see the SignerInfo Members list.

See Also: Inherited members from System.Object

Public Methods

CheckHash()

The SignerInfo.CheckHash method verifies the data integrity of the CMS/PKCS #7 message signer information. SignerInfo.CheckHash is a specialized method used in specific security infrastructure applications in which the subject uses the HashOnly member of the System.Security.Cryptography.Pkcs.SubjectIdentifierType enumeration when setting up a System.Security.Cryptography.Pkcs.CmsSigner object. SignerInfo.CheckHash does not authenticate the signer information because this method does not involve verifying a digital signature. For general-purpose checking of the integrity and authenticity of CMS/PKCS #7 message signer information and countersignatures, use the SignerInfo.CheckSignature(bool) or SignerInfo.CheckSignature(System.Security.Cryptography.X509Certificates.X509Certificate2Collection, bool) methods.

CheckSignature(bool)

The SignerInfo.CheckSignature(bool) method verifies the digital signature of the message and, optionally, validates the certificate.

CheckSignature(System.Security.Cryptography.X509Certificates.X509Certificate2Collection, bool)

The SignerInfo.CheckSignature(System.Security.Cryptography.X509Certificates.X509Certificate2Collection, bool) method verifies the digital signature of the message by using the specified collection of certificates and, optionally, validates the certificate.

ComputeCounterSignature()

The SignerInfo.ComputeCounterSignature method prompts the user to select a signing certificate, creates a countersignature, and adds the signature to the CMS/PKCS #7 message. Countersignatures are restricted to one level.

ComputeCounterSignature(CmsSigner)

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.

RemoveCounterSignature(int)

The SignerInfo.RemoveCounterSignature(int) method removes the countersignature at the specified index of the SignerInfo.CounterSignerInfos collection.

RemoveCounterSignature(SignerInfo)

The SignerInfo.RemoveCounterSignature(SignerInfo) method removes the countersignature for the specified System.Security.Cryptography.Pkcs.SignerInfo object.