From a0ee0d7562bbdefcc25a7303cbd59e3b75dfe60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Tue, 2 Jul 2024 14:27:05 +0200 Subject: [PATCH] ignore signature verification for now (#8) --- src/main/java/digital/slovensko/avm/core/SigningJob.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/digital/slovensko/avm/core/SigningJob.java b/src/main/java/digital/slovensko/avm/core/SigningJob.java index 8923bc4..d7a9f8a 100644 --- a/src/main/java/digital/slovensko/avm/core/SigningJob.java +++ b/src/main/java/digital/slovensko/avm/core/SigningJob.java @@ -74,12 +74,6 @@ public SignedDocument signDocument(DataToSignStructure dataToSignStructure, Stri throw e; } - var documentValidator = createDocumentValidator(doc); - documentValidator.setCertificateVerifier(commonCertificateVerifier); - var reports = documentValidator.validateDocument().getSimpleReport(); - if (!reports.isValid(reports.getSignatureIdList().get(reports.getSignatureIdList().size() - 1))) - throw new CryptographicSignatureVerificationException(); - return new SignedDocument(doc, token); }