Skip to content

Commit

Permalink
ignore signature verification for now (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
celuchmarek authored Jul 2, 2024
1 parent d67d1a5 commit a0ee0d7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/digital/slovensko/avm/core/SigningJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a0ee0d7

Please sign in to comment.