Skip to content

Commit

Permalink
PDFBOX-5660: use constant
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923231 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jan 19, 2025
1 parent 58ab688 commit b10b616
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -935,9 +935,9 @@ private void checkLTV(File outFile)
PDSignature signature = doc.getLastSignatureDictionary();
byte[] contents = signature.getContents();
PDDocumentCatalog docCatalog = doc.getDocumentCatalog();
COSDictionary dssDict = docCatalog.getCOSObject().getCOSDictionary(COSName.getPDFName("DSS"));
COSDictionary dssDict = docCatalog.getCOSObject().getCOSDictionary(COSName.DSS);
COSArray dssCertArray = dssDict.getCOSArray(COSName.CERTS);
COSDictionary vriDict = dssDict.getCOSDictionary(COSName.getPDFName("VRI"));
COSDictionary vriDict = dssDict.getCOSDictionary(COSName.VRI);
// Check that all known signature certificates are in the VRI/signaturehash/Cert array
byte[] signatureHash = MessageDigest.getInstance("SHA-1").digest(contents);
String hexSignatureHash = Hex.getString(signatureHash);
Expand Down

0 comments on commit b10b616

Please sign in to comment.