Class PackageSigner
- Namespace
- DocWright.Signatures
- Assembly
- DocWright.Signatures.dll
Signs an OPC package, composing the signature from the package's own bytes and delegating the private-key operation to an ISignatureProvider.
public static class PackageSigner
- Inheritance
-
PackageSigner
- Inherited Members
Remarks
Signs every part the package declares a content type for, plus every relationship
part, and nothing else. [Content_Types].xml is not a part and is not signed — that
is the OPC rule, not an omission.
The output is deterministic: two runs over the same package, with the same options and a deterministic provider, produce identical bytes. Zip entry timestamps are carried over from the source or fixed, never taken from the clock.
Methods
- Sign(Stream, Stream, ISignatureProvider, PackageSigningOptions?)
Reads the package from
sourceand writes a signed copy todestination.