Utility class that provides several convenience methods concerning digital signatures. More...
Utility class that provides several convenience methods concerning digital signatures.
virtual PdfPKCS7 iText.Signatures.SignatureUtil.ReadSignatureData |
( |
String |
signatureFieldName |
) |
|
|
inlinevirtual |
Prepares an PdfPKCS7 instance for the given signature.
Prepares an PdfPKCS7 instance for the given signature. This method handles signature parsing and might throw an exception if signature is malformed.
The returned PdfPKCS7 can be used to fetch additional info about the signature and also to perform integrity check of data signed by the given signature field.
Prepared PdfPKCS7 instance calculates digest based on signature's /ByteRange entry. In order to check that /ByteRange is properly defined and given signature indeed covers the current PDF document revision please use SignatureCoversWholeDocument(System.String) method.
-
Parameters
-
signatureFieldName |
the signature field name |
-
Returns
-
a PdfPKCS7 instance which can be used to fetch additional info about the signature and also to perform integrity check of data signed by the given signature field.
virtual bool iText.Signatures.SignatureUtil.SignatureCoversWholeDocument |
( |
String |
name |
) |
|
|
inlinevirtual |
Checks if the signature covers the entire document (except for signature's Contents) or just a part of it.
Checks if the signature covers the entire document (except for signature's Contents) or just a part of it.
If this method does not return true
it means that signature in question does not cover the entire contents of current iText.Kernel.Pdf.PdfDocument . Such signatures cannot be considered as verifying the PDF document, because content that is not covered by signature might have been modified since the signature creation.
-
Parameters
-
name |
the signature field name |
-
Returns
-
true if the signature covers the entire document, false if it doesn't