System.Security.Cryptography.Pkcs.SignedCms
The SignedCms class enables signing and verifying of CMS/PKCS #7 messages.
The Certificates property retrieves the certificates associated with the encoded CMS/PKCS #7 message.
The ContentInfo property retrieves the inner contents of the encoded CMS/PKCS #7 message.
The SignerInfos property retrieves the SignerInfoCollection collection associated with the CMS/PKCS #7 message.
The Version property retrieves the version of the CMS/PKCS #7 message.
public SignedCms(SubjectIdentifierType signerIdentifierType, ContentInfo contentInfo, bool detached)
The #ctor constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers, the content information as the inner content, and by using the detached state.
public SignedCms()
The #ctor constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers.
The #ctor constructor creates an instance of the SignedCms class by using the specified content information as the inner content.
The #ctor constructor creates an instance of the SignedCms class by using the specified subject identifier type as the default subject identifier type for signers and content information as the inner content.
The #ctor constructor creates an instance of the SignedCms class by using the specified content information as the inner content and by using the detached state.
Adds a certificate to the collection of certificates for the encoded CMS/PKCS #7 message.
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 or CheckSignature methods.
The CheckSignature method verifies the digital signatures on the signed CMS/PKCS #7 message and, optionally, validates the signers' certificates.
The CheckSignature 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.
Creates a signature and adds the signature to the CMS/PKCS #7 message.
Creates a signature using the specified signer and adds the signature to the CMS/PKCS #7 message.
Creates a signature using the specified signer and adds the signature to the CMS/PKCS #7 message.
Decodes an encoded SignedCms message.
The Encode method encodes the information in the object into a CMS/PKCS #7 message.
Removes the specified certificate from the collection of certificates for the encoded CMS/PKCS #7 message.
Removes the signature at the specified index of the SignerInfos collection.
The RemoveSignature method removes the signature for the specified SignerInfo object.