diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-30 13:56:31 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-30 13:56:31 +0200 |
commit | f5d1de1e0bd56b2c61953b1688e53b6efe249ddb (patch) | |
tree | 8353507673e1f3a82e993dcfb7232802aab7a930 /pdf-over-signer | |
parent | 529e08cd21115834dc9887305a8d199ea83638d2 (diff) | |
download | pdf-over-f5d1de1e0bd56b2c61953b1688e53b6efe249ddb.tar.gz pdf-over-f5d1de1e0bd56b2c61953b1688e53b6efe249ddb.tar.bz2 pdf-over-f5d1de1e0bd56b2c61953b1688e53b6efe249ddb.zip |
remove SLResponse outright
since it's just a glorified string now
Diffstat (limited to 'pdf-over-signer')
-rw-r--r-- | pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4BKUSLConnector.java | 7 | ||||
-rw-r--r-- | pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SigningState.java | 3 |
2 files changed, 4 insertions, 6 deletions
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 |