Interface IIntegrityVerifier
- Namespace
- SimpleSign.PAdES.Validation
- Assembly
- SimpleSign.PAdES.dll
Verifies document integrity: ByteRange validation and hash comparison.
public interface IIntegrityVerifier
Methods
ValidateByteRangeAsync(Stream, PdfSignatureField, CmsSignedData, List<string>, List<string>, CancellationToken, ILogger?, bool)
Validates ByteRange structure and verifies document hash matches the CMS messageDigest.
Task<bool> ValidateByteRangeAsync(Stream pdfStream, PdfSignatureField field, CmsSignedData cmsData, List<string> errors, List<string> warnings, CancellationToken cancellationToken, ILogger? logger = null, bool isLastSignature = true)
Parameters
pdfStreamStreamfieldPdfSignatureFieldcmsDataCmsSignedDataerrorsList<string>warningsList<string>cancellationTokenCancellationTokenloggerILoggerisLastSignaturebool
Returns
ValidateTimestampByteRangeAsync(Stream, PdfSignatureField, string, byte[], List<string>, List<string>, bool, CancellationToken, ILogger?)
Validates ByteRange for a document-level timestamp.
Task<bool> ValidateTimestampByteRangeAsync(Stream pdfStream, PdfSignatureField field, string tstHashAlgOid, byte[] expectedHash, List<string> errors, List<string> warnings, bool isLastSignature, CancellationToken cancellationToken, ILogger? logger = null)
Parameters
pdfStreamStreamfieldPdfSignatureFieldtstHashAlgOidstringexpectedHashbyte[]errorsList<string>warningsList<string>isLastSignatureboolcancellationTokenCancellationTokenloggerILogger