Export (0) Print
Expand All

EnvelopedCms Methods

The EnvelopedCms type exposes the following members.

  Name Description
Public method Decode The Decode method decodes the specified enveloped CMS/PKCS #7 message and resets all member variables in the EnvelopedCms object.
Public method Decrypt() The Decrypt() method decrypts the contents of the decoded enveloped CMS/PKCS #7 message. The Decrypt() method searches the current user and computer My stores for the appropriate certificate and private key.
Public method Decrypt(RecipientInfo) The Decrypt(RecipientInfo) method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information.
Public method Decrypt(X509Certificate2Collection) The Decrypt(X509Certificate2Collection) method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the specified certificate collection. The Decrypt(X509Certificate2Collection) method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption.
Public method Decrypt(RecipientInfo, X509Certificate2Collection) The Decrypt(RecipientInfo, X509Certificate2Collection) method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information and by using the specified certificate collection. The Decrypt(RecipientInfo, X509Certificate2Collection) method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption.
Public method Encode The Encode method encodes the contents of the enveloped CMS/PKCS #7 message and returns it as an array of byte values. Encryption must be done before encoding.
Public method Encrypt() The Encrypt() method encrypts the contents of the CMS/PKCS #7 message.
Public method Encrypt(CmsRecipient) The Encrypt(CmsRecipient) method encrypts the contents of the CMS/PKCS #7 message by using the specified recipient information.
Public method Encrypt(CmsRecipientCollection) The Encrypt(CmsRecipientCollection) method encrypts the contents of the CMS/PKCS #7 message by using the information for the specified list of recipients. The message is encrypted by using a message encryption key with a symmetric encryption algorithm such as triple DES. The message encryption key is then encrypted with the public key of each recipient.
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 ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2015 Microsoft