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
sourceStreamThe package to sign. Not modified.
destinationStreamReceives the signed package.
providerISignatureProviderThe host's signing provider. DocWright never holds the key.
optionsPackageSigningOptionsSigning options, or null for the defaults.
Exceptions
- ArgumentNullException
A required argument is null.
- InvalidDocumentException
sourceis not a readable OPC package, or declares no content types.