From f5d1de1e0bd56b2c61953b1688e53b6efe249ddb Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 30 Sep 2022 13:56:31 +0200 Subject: remove SLResponse outright since it's just a glorified string now --- .../java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java | 7 +++---- .../main/java/at/asit/pdfover/signer/pdfas/PdfAs4SigningState.java | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'pdf-over-signer/src/main/java/at/asit') 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 df094718..4c87542d 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 @@ -71,7 +71,7 @@ public class PdfAs4BKUSLConnector extends BaseSLConnector { String slRequestString = SLMarschaller.marshalToString(this.of.createInfoboxReadRequest(request)); PdfAs4SLRequest slRequest = new PdfAs4SLRequest(slRequestString, null); - String slResponse = this.connector.handleSLRequest(slRequest).getSLResponse(); + String slResponse = this.connector.handleSLRequest(slRequest); element = (JAXBElement) SLMarschaller.unmarshalFromString(slResponse); } catch (JAXBException e) { @@ -116,10 +116,9 @@ public class PdfAs4BKUSLConnector extends BaseSLConnector { signatureData = PDFUtils.blackOutSignature(signatureData, pack.getByteRange()); PdfAs4SLRequest slRequest = new PdfAs4SLRequest(slRequestString, signatureData); - String slResponse = this.connector.handleSLRequest(slRequest).getSLResponse(); + String slResponse = this.connector.handleSLRequest(slRequest); - element = (JAXBElement) SLMarschaller - .unmarshalFromString(slResponse); + element = (JAXBElement) SLMarschaller.unmarshalFromString(slResponse); } catch (JAXBException e) { throw new PDFIOException("error.pdf.io.03", e); } catch (PdfAs4SLRequestException e) { diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SigningState.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SigningState.java index 7d0ea318..5312e582 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SigningState.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SigningState.java @@ -20,7 +20,6 @@ import java.io.ByteArrayOutputStream; import at.asit.pdfover.signator.BkuSlConnector; import at.asit.pdfover.signator.SLRequest; -import at.asit.pdfover.signator.SLResponse; import at.asit.pdfover.signator.SignatureException; import at.gv.egiz.pdfas.common.exceptions.PDFASError; import at.gv.egiz.pdfas.lib.api.sign.IPlainSigner; @@ -40,7 +39,7 @@ public class PdfAs4SigningState { /** * The Signature Layer response */ - public SLResponse signatureResponse; + public String signatureResponse; /** * The Sign Parameters -- cgit v1.2.3