Method Verify
- Namespace
- DocWright.Signatures
- Assembly
- DocWright.Signatures.dll
Verify(Stream)
Verifies every digital signature in the package read from package.
public static PackageSignatureVerificationResult Verify(Stream package)
Parameters
packageStreamA seekable stream positioned at an OPC package.
Returns
- PackageSignatureVerificationResult
The per-signature and per-part results. A package with no signatures yields a result whose IsSigned is false, which is not an error.
Exceptions
- ArgumentNullException
packageis null.- InvalidDocumentException
The stream is not a readable package, or a signature part is not well-formed XML.