aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-11-27 10:05:35 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-11-27 10:05:35 +0100
commit29ec10fb663523c4a18904c332199ce6e974dd2f (patch)
tree3d68c52ca1fd5e2cb2f90c1890db22e4fd943dcb /pdf-as-cli/src/main/java/at
parentf3476576c50efd922593c82656efda7aec5ae97f (diff)
downloadpdf-as-4-29ec10fb663523c4a18904c332199ce6e974dd2f.tar.gz
pdf-as-4-29ec10fb663523c4a18904c332199ce6e974dd2f.tar.bz2
pdf-as-4-29ec10fb663523c4a18904c332199ce6e974dd2f.zip
Support for QR Placeholders in PAdES
Diffstat (limited to 'pdf-as-cli/src/main/java/at')
-rw-r--r--pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java
index 4072e496..ed029aac 100644
--- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java
+++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java
@@ -41,16 +41,16 @@ public class DeveloperMain {
byte[] data;
try {
IPlainSigner signer = new PKCS7DetachedSigner(keyStoreFile, keyAlias, keyStorePass, keyPass, keyStoreType);
- data = StreamUtils.inputStreamToByteArray(new FileInputStream("/home/afitzek/tmp/pdf-a problem/TestGhostscriptPdfA.pdf"));
+ data = StreamUtils.inputStreamToByteArray(new FileInputStream("/home/afitzek/qr_2.pdf"));
SignParameter parameter = PdfAsFactory.createSignParameter(config, new ByteArrayDataSource(data));
ByteArrayDataSink bads = new ByteArrayDataSink();
parameter.setSignatureProfileId("SIGNATURBLOCK_DE_PDFA");
parameter.setOutput(bads);
//parameter.setPlainSigner(new PAdESSigner(new BKUSLConnector(config)));
- //parameter.setPlainSigner(signer);
- parameter.setPlainSigner(new PAdESSigner(new MOAConnector(config)));
- /*
- StatusRequest request = pdfas.startSign(parameter);
+ parameter.setPlainSigner(signer);
+ //parameter.setPlainSigner(new PAdESSigner(new MOAConnector(config)));
+
+ /*StatusRequest request = pdfas.startSign(parameter);
if(request.needCertificate()) {
request.setCertificate(signer.getCertificate().getEncoded());
@@ -78,12 +78,12 @@ public class DeveloperMain {
}
*/
pdfas.sign(parameter);
- FileOutputStream fos = new FileOutputStream("/home/afitzek/devel/pdfas_neu/simple_out3.pdf");
+ FileOutputStream fos = new FileOutputStream("/home/afitzek/qr_2_neu.pdf");
fos.write(bads.getData());
fos.close();
- VerifyParameter verify = new VerifyParameterImpl(config, new ByteArrayDataSource(bads.getData()));
- pdfas.verify(verify);
+ //VerifyParameter verify = new VerifyParameterImpl(config, new ByteArrayDataSource(bads.getData()));
+ //pdfas.verify(verify);
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block