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 a55d92c951e..35d1e47495f 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 @@ -936,7 +936,7 @@ private void checkLTV(File outFile) byte[] contents = signature.getContents(); PDDocumentCatalog docCatalog = doc.getDocumentCatalog(); COSDictionary dssDict = docCatalog.getCOSObject().getCOSDictionary(COSName.getPDFName("DSS")); - COSArray dssCertArray = dssDict.getCOSArray(COSName.getPDFName("Certs")); + COSArray dssCertArray = dssDict.getCOSArray(COSName.CERTS); COSDictionary vriDict = dssDict.getCOSDictionary(COSName.getPDFName("VRI")); // Check that all known signature certificates are in the VRI/signaturehash/Cert array byte[] signatureHash = MessageDigest.getInstance("SHA-1").digest(contents);