Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordPackageSigningOptions

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
089f66d6d97a with working tree changes
Modifiers
sealed

Options for signing a DOCX package through the cross-platform OPC XML-signature engine.

Inheritance

  • object
  • WordPackageSigningOptions

Usage

Explore 4 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.

Accepted by parameters 4

Constructors

public WordPackageSigningOptions() #

Properties

public IReadOnlyCollection<string>? PartUris { get; set; } #

Gets or sets explicit package-part URIs to sign. When null, all existing non-signature package parts are signed.

public bool IncludePackageRelationships { get; set; } #

Gets or sets whether package-level relationships are included in the signature.

public bool IncludePartRelationships { get; set; } #

Gets or sets whether relationships owned by individual package parts are included in the signature.

public string HashAlgorithm { get; set; } #

Gets or sets the XML DSig hash algorithm URI.

public string? SignatureId { get; set; } #

Gets or sets an optional signature id.

public DateTimeOffset? SigningTime { get; set; } #

Gets or sets the claimed OPC signing time. Current UTC time is used when omitted. This is signed metadata, not an RFC 3161 timestamp-authority token.

public IReadOnlyCollection<X509Certificate2>? AdditionalCertificates { get; set; } #

Gets or sets optional intermediate or root certificates embedded with the signer certificate.

public int MaxPackageParts { get; set; } #

Gets or sets the maximum number of ZIP entries accepted while signing. Defaults to 10,000.

public long MaxPackageBytes { get; set; } #

Gets or sets the maximum encoded package bytes accepted while signing. Defaults to 512 MiB.

public long MaxPartBytes { get; set; } #

Gets or sets the maximum uncompressed bytes read from one signed part. Defaults to 256 MiB.

public long MaxTotalDigestBytes { get; set; } #

Gets or sets the maximum aggregate uncompressed package-part bytes digested while signing. Defaults to 512 MiB.

public int MaxSignedReferences { get; set; } #

Gets or sets the maximum authenticated XML signature references and relationship selectors created per signature. Defaults to 4,096.

public long MaxSignatureBytes { get; set; } #

Gets or sets the maximum encoded bytes for the generated XML signature part. Defaults to 16 MiB.

public int MaxCertificates { get; set; } #

Gets or sets the maximum signer and additional certificates embedded in the created signature. Defaults to 64.

public long MaxCertificateBytes { get; set; } #

Gets or sets the maximum encoded bytes for one embedded certificate. Defaults to 4 MiB.

public long MaxTotalCertificateBytes { get; set; } #

Gets or sets the maximum aggregate encoded certificate bytes embedded in the created signature. Defaults to 64 MiB.

Fields

public const string Sha256HashAlgorithm #

Gets the SHA-256 XML DSig hash algorithm URI used by default.

Value: http://www.w3.org/2001/04/xmlenc#sha256