diff --git a/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java b/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java index 35d1e47495f..10a95850cc5 100644 --- a/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java +++ b/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java @@ -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);