Class
CmsSignedDataSigner
OfficeIMO.Security
Creates interoperable CMS SignedData without exporting a private key.
Inheritance
- object
- CmsSignedDataSigner
Methods
public static byte[] SignDetached(byte[] content, X509Certificate2 signingCertificate, CmsSigningOptions? options = null, IEnumerable<X509Certificate2>? certificateChain = null) #Creates a detached CMS signature over content.
Parameters
- content byte[]
- signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.CmsSigningOptions? = null
- certificateChain System.Collections.Generic.IEnumerable<System.Security.Cryptography.X509Certificates.X509Certificate2>? = null
Returns
byte[]public static byte[] SignEncapsulated(byte[] content, X509Certificate2 signingCertificate, CmsSigningOptions? options = null, IEnumerable<X509Certificate2>? certificateChain = null) #Creates an encapsulated CMS SignedData object containing content.
Parameters
- content byte[]
- signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
- options OfficeIMO.Security.CmsSigningOptions? = null
- certificateChain System.Collections.Generic.IEnumerable<System.Security.Cryptography.X509Certificates.X509Certificate2>? = null
Returns
byte[]