aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web-client/src')
-rw-r--r--pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java5
-rw-r--r--pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java10
2 files changed, 8 insertions, 7 deletions
diff --git a/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java b/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java
index 456a3aaa..7fd6a189 100644
--- a/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java
+++ b/pdf-as-web-client/src/main/java/at/gv/egiz/pdfas/web/client/RemotePDFSigner.java
@@ -34,11 +34,6 @@ public class RemotePDFSigner implements PDFASSigning {
binding.setMTOMEnabled(useMTOM);
}
- public byte[] signPDFDokument(byte[] inputDocument,
- PDFASSignParameters parameters) {
- return proxy.signPDFDokument(inputDocument, parameters);
- }
-
public PDFASSignResponse signPDFDokument(PDFASSignRequest request) {
return proxy.signPDFDokument(request);
}
diff --git a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
index 8573b224..32c6dbad 100644
--- a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
+++ b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java
@@ -24,7 +24,7 @@ public class SimpleTest {
byte[] inputData = IOUtils.readFully(fis, -1, true);
PDFASSignParameters signParameters = new PDFASSignParameters();
- signParameters.setConnector(Connector.JKS);
+ signParameters.setConnector(Connector.BKU);
signParameters.setPosition(null);
signParameters.setProfile("SIGNATURBLOCK_DE");
@@ -42,8 +42,14 @@ public class SimpleTest {
RemotePDFSigner signer = new RemotePDFSigner(endpoint, false);
+ PDFASSignRequest signrequest = new PDFASSignRequest();
+ signrequest.setInputData(inputData);
+ signrequest.setParameters(signParameters);
+ signParameters.setTransactionId("MYID ....");
System.out.println("Simple Request:");
- byte[] outputFile = signer.signPDFDokument(inputData, signParameters);
+ PDFASSignResponse response = signer.signPDFDokument(signrequest);
+
+ System.out.println("User URL: " + response.getRedirectUrl());
/*
* System.out.println("Simple Request:"); byte[] outputFile =