Table of Contents

Method Sign

Namespace
DocWright.Signatures
Assembly
DocWright.Signatures.dll

Sign(Stream, Stream, ISignatureProvider, PackageSigningOptions?)

Reads the package from source and writes a signed copy to destination.

public static void Sign(Stream source, Stream destination, ISignatureProvider provider, PackageSigningOptions? options = null)

Parameters

source Stream

The package to sign. Not modified.

destination Stream

Receives the signed package.

provider ISignatureProvider

The host's signing provider. DocWright never holds the key.

options PackageSigningOptions

Signing options, or null for the defaults.

Exceptions

ArgumentNullException

A required argument is null.

InvalidDocumentException

source is not a readable OPC package, or declares no content types.