From 529e08cd21115834dc9887305a8d199ea83638d2 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 30 Sep 2022 13:51:08 +0200 Subject: get rid of unneeded fields in SLResponse --- .../main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pdf-over-signer/src/main/java/at/asit/pdfover') diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java index a78e33c6..df094718 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java @@ -79,6 +79,11 @@ public class PdfAs4BKUSLConnector extends BaseSLConnector { } catch (PdfAs4SLRequestException e) { throw new PDFIOException("error.pdf.io.03", e); } catch (SignatureException e) { + Throwable e2 = e; + while (e2.getCause() != null) + e2 = e2.getCause(); + /*if (e2 instanceof IllegalStateException) // user cancelled (TODO: this is a pretty big hack honestly) + return null;*/ throw new PDFIOException("error.pdf.io.03", e); } -- cgit v1.2.3