# CmsSigningOptions

Options for CMS signing. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Core API Reference.

Class 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[SecurityValidationModels.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L116)

**Modifiers**

sealed

Options for CMS signing.

## Inheritance

- object
- CmsSigningOptions

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OfficeVbaSigningOptions.CmsSigning](/api/core/officeimo-security-officevbasigningoptions/#property-cmssigning)

### Accepted by parameters 2

- Method [IOfficeSecurityProvider.SignCmsDetached](/api/core/officeimo-security-iofficesecurityprovider/#method-signcmsdetached-byte-security-cryptography-x509certificates-x509certificate2-officeimo-security-cmssigningoptions-collections-generic-ienumerable-system-security-cryptography-x509certificates-x509certificate2) parameter `options`
- Method [IOfficeSecurityProvider.SignCmsEncapsulated](/api/core/officeimo-security-iofficesecurityprovider/#method-signcmsencapsulated-byte-security-cryptography-x509certificates-x509certificate2-officeimo-security-cmssigningoptions-collections-generic-ienumerable-system-security-cryptography-x509certificates-x509certificate2) parameter `options`

Filter members 

Show inherited

## Constructors

`public CmsSigningOptions()` [#](#constructor-ctor)

[SecurityValidationModels.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L116)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public HashAlgorithmName DigestAlgorithm { get; set; }` [#](#property-digestalgorithm)

[SecurityValidationModels.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L116)

Digest algorithm. SHA-256 is the default.

`public string? ContentTypeOid { get; set; }` [#](#property-contenttypeoid)

[SecurityValidationModels.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L120)

Optional ASN.1 object identifier for the signed content type. CMS data is used when omitted.

`public bool UsePadesBaseline { get; set; }` [#](#property-usepadesbaseline)

[SecurityValidationModels.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L122)

Creates detached PAdES baseline CMS with signing-certificate-v2 and without CMS signing-time. Requires SHA-256 or stronger.

`public Func<byte[], byte[]>? SignatureTimestampProvider { get; set; }` [#](#property-signaturetimestampprovider)

[SecurityValidationModels.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L128)

Optional RFC 3161 timestamp provider. Receives a copy of the raw signature value and returns a DER timestamp token covering that value. The caller owns transport and TSA trust policy; the signer checks the token signature, TSA certificate profile and imprint before embedding it as an unsigned attribute.

`public bool IncludeSigningTime { get; set; }` [#](#property-includesigningtime)

[SecurityValidationModels.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L130)

Whether to include the CMS signing-time attribute. Defaults to true; ignored when UsePadesBaseline is true.

`public DateTimeOffset? SigningTime { get; set; }` [#](#property-signingtime)

[SecurityValidationModels.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L132)

Optional signing time. Current UTC time is used when omitted.

`public bool IncludeCertificateChain { get; set; }` [#](#property-includecertificatechain)

[SecurityValidationModels.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L134)

Whether supplied chain certificates are embedded. Defaults to true.

`public long MaxContentBytes { get; set; }` [#](#property-maxcontentbytes)

[SecurityValidationModels.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/SecurityValidationModels.cs#L136)

Maximum content bytes accepted. Defaults to 512 MiB.

<!-- PowerForge markdown artifact sha256:679D71E7CC04CCF3EA2E75BE26DAE096D1A15A547181500314573DAE60C65B9A -->
