From e5316db083e46c8ae9e4b07bff57812d9314200b Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 12 Dec 2013 17:00:00 +0100 Subject: MOA SS integration OK --- pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java | 4 ++-- pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'pdf-as-cli/src/main/java/at/gv/egiz/pdfas') 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 808d0b80..2c8114a8 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 @@ -47,8 +47,8 @@ public class DeveloperMain { parameter.setSignatureProfileId("AMTSSIGNATURBLOCK_DE"); parameter.setOutput(bads); //parameter.setPlainSigner(new PAdESSigner(new BKUSLConnector(config))); - parameter.setPlainSigner(signer); - //parameter.setPlainSigner(new PAdESSigner(new MOAConnector(config))); + //parameter.setPlainSigner(signer); + parameter.setPlainSigner(new PAdESSigner(new MOAConnector(config))); /* StatusRequest request = pdfas.startSign(parameter); diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java index 578175a8..db655268 100644 --- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java +++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java @@ -186,8 +186,7 @@ public class Main { } if (mode == ModeOfOperation.INVALID && !cli.hasOption(CLI_ARG_DEPLOY_SHORT)) { - throw new ParseException("Missing required option: " - + CLI_ARG_MODE_SHORT); + usage(); } else if (mode == ModeOfOperation.SIGN) { perform_sign(cli); } else if (mode == ModeOfOperation.VERIFY) { @@ -284,7 +283,7 @@ public class Main { ByteArrayDataSink dataSink = new ByteArrayDataSink(); PdfAs pdfAs = null; - + pdfAs = PdfAsFactory.createPdfAs(new File(configurationFile)); Configuration configuration = pdfAs.getConfiguration(); -- cgit v1.2.3