Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

CmsSignedDataSigner

Namespace OfficeIMO.Security
Assembly OfficeIMO.Security
Modifiers static

Creates interoperable CMS SignedData without exporting an RSA private key.

Inheritance

  • Object
  • CmsSignedDataSigner

Methods

public static Byte[] SignDetached(Byte[] content, X509Certificate2 signingCertificate, CmsSigningOptions options = null, IEnumerable<X509Certificate2> certificateChain = null) #
Returns: Byte[]

Creates a detached CMS signature over content.

Parameters

content System.Byte[] requiredposition: 0
signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 requiredposition: 1
options OfficeIMO.Security.CmsSigningOptions = null optionalposition: 2
certificateChain System.Collections.Generic.IEnumerable{System.Security.Cryptography.X509Certificates.X509Certificate2} = null optionalposition: 3
public static Byte[] SignEncapsulated(Byte[] content, X509Certificate2 signingCertificate, CmsSigningOptions options = null, IEnumerable<X509Certificate2> certificateChain = null) #
Returns: Byte[]

Creates an encapsulated CMS SignedData object containing content.

Parameters

content System.Byte[] requiredposition: 0
signingCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 requiredposition: 1
options OfficeIMO.Security.CmsSigningOptions = null optionalposition: 2
certificateChain System.Collections.Generic.IEnumerable{System.Security.Cryptography.X509Certificates.X509Certificate2} = null optionalposition: 3