Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CmsSignedDataSigner

OfficeIMO.Security

Namespace
OfficeIMO.Security
Assembly
OfficeIMO.Security
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

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[] required
signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 required
options OfficeIMO.Security.CmsSigningOptions? = null optional
certificateChain System.Collections.Generic.IEnumerable<System.Security.Cryptography.X509Certificates.X509Certificate2>? = null optional

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[] required
signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 required
options OfficeIMO.Security.CmsSigningOptions? = null optional
certificateChain System.Collections.Generic.IEnumerable<System.Security.Cryptography.X509Certificates.X509Certificate2>? = null optional

Returns

byte[]