Improve PDF signing and validation logic
Updated `.gitignore` to exclude new files and directories, including `FodyWeavers.xsd` and `appsettings.Secrets.json`. Refactored `PdfDigitalSignatureService`: - Improved signing time handling by calculating fallback inline. - Simplified `SignPdfAsync` by inlining signature building. - Added `ParseByteRanges` to extract `/ByteRange` values from PDFs. - Introduced `CoversWholeDocument` to validate document coverage. Enhanced signature validation: - Integrated `ParseByteRanges` and `CoversWholeDocument`. - Streamlined `PdfSignatureCheckItemDto` construction. - Updated properties to calculate values inline. - Improved `Unchanged` property to check cryptographic validity and document coverage. These changes enhance maintainability, readability, and functionality.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -370,3 +370,4 @@ FodyWeavers.xsd
|
||||
/EnvelopeGenerator.Server/EnvelopeGenerator.Server/publish-output
|
||||
/EnvelopeGenerator.Server/EnvelopeGenerator.Server/tekh_softHSM_test.md
|
||||
/ignore/EnvelopeGenerator.Form
|
||||
/EnvelopeGenerator.Server/EnvelopeGenerator.Server/appsettings.Secrets.json
|
||||
|
||||
Reference in New Issue
Block a user