Skip to content

Commit b10b616

Browse files
committed
PDFBOX-5660: use constant
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923231 13f79535-47bb-0310-9956-ffa450edef68
1 parent 58ab688 commit b10b616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,9 +935,9 @@ private void checkLTV(File outFile)
935935
PDSignature signature = doc.getLastSignatureDictionary();
936936
byte[] contents = signature.getContents();
937937
PDDocumentCatalog docCatalog = doc.getDocumentCatalog();
938-
COSDictionary dssDict = docCatalog.getCOSObject().getCOSDictionary(COSName.getPDFName("DSS"));
938+
COSDictionary dssDict = docCatalog.getCOSObject().getCOSDictionary(COSName.DSS);
939939
COSArray dssCertArray = dssDict.getCOSArray(COSName.CERTS);
940-
COSDictionary vriDict = dssDict.getCOSDictionary(COSName.getPDFName("VRI"));
940+
COSDictionary vriDict = dssDict.getCOSDictionary(COSName.VRI);
941941
// Check that all known signature certificates are in the VRI/signaturehash/Cert array
942942
byte[] signatureHash = MessageDigest.getInstance("SHA-1").digest(contents);
943943
String hexSignatureHash = Hex.getString(signatureHash);

0 commit comments

Comments
 (0)