API Reference
Class
CmsEnvelopedDataService
Creates and decrypts CMS EnvelopedData for X.509 recipients.
Inheritance
- Object
- CmsEnvelopedDataService
Methods
public static CmsDecryptionResult Decrypt(Byte[] encodedCms, X509Certificate2 recipientCertificate, CmsEnvelopeOptions options = null) #Returns:
CmsDecryptionResultDecrypts content for a matching RSA recipient certificate.
Parameters
- encodedCms System.Byte[]
- recipientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.CmsEnvelopeOptions = null
public static Byte[] Encrypt(Byte[] content, IEnumerable<X509Certificate2> recipients, CmsEnvelopeOptions options = null) #Returns:
Byte[]Encrypts content for every supplied recipient certificate.
Parameters
- content System.Byte[]
- recipients System.Collections.Generic.IEnumerable{System.Security.Cryptography.X509Certificates.X509Certificate2}
- options OfficeIMO.Security.CmsEnvelopeOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object