Export (0) Print
Expand All

SignedCms Methods

The SignedCms type exposes the following members.

  Name Description
Public method CheckHash The CheckHash method verifies the data integrity of the CMS/PKCS #7 message. CheckHash is a specialized method used in specific security infrastructure applications that only wish to check the hash of the CMS message, rather than perform a full digital signature verification. CheckHash does not authenticate the author nor sender of the message because this method does not involve verifying a digital signature. For general-purpose checking of the integrity and authenticity of a CMS/PKCS #7 message, use the CheckSignature(Boolean) or CheckSignature(X509Certificate2Collection, Boolean) methods.
Public method CheckSignature(Boolean) The CheckSignature(Boolean) method verifies the digital signatures on the signed CMS/PKCS #7 message and, optionally, validates the signers' certificates.
Public method CheckSignature(X509Certificate2Collection, Boolean) The CheckSignature(X509Certificate2Collection, Boolean) method verifies the digital signatures on the signed CMS/PKCS #7 message by using the specified collection of certificates and, optionally, validates the signers' certificates.
Public method ComputeSignature() The ComputeSignature() method prompts the user to select a signing certificate, creates a signature, and adds the signature to the CMS/PKCS #7 message.
Public method ComputeSignature(CmsSigner) The ComputeSignature(CmsSigner) method creates a signature using the specified signer and adds the signature to the CMS/PKCS #7 message.
Public method ComputeSignature(CmsSigner, Boolean) Creates a signature using the specified signer and adds the signature to the CMS/PKCS #7 message. If the value of the silent parameter is false and the Certificate property of the CmsSigner object specified by the signer parameter is not set to a valid certificate, this method prompts the user to select a signing certificate.
Public method Decode The Decode method decodes an encoded SignedCms message. Upon successful decoding, the decoded information can be retrieved from the properties of the SignedCms object.
Public method Encode The Encode method encodes the information in the object into a CMS/PKCS #7 message.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method RemoveSignature(Int32) Removes the signature at the specified index of the SignerInfos collection.
Public method RemoveSignature(SignerInfo) The RemoveSignature method removes the signature for the specified SignerInfo object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2015 Microsoft