diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-07 23:04:19 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-07 23:04:19 +0100 |
commit | 3cfa8e9e20fa3d90d03ce1ae7dd6ec7508bdbea4 (patch) | |
tree | 85a5fe7d6f4d2eb7e82baedff2b7fbf8d63e9eaa /trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java | |
parent | e90835197c31c9f8167bfb4be8a7d8dc36635006 (diff) | |
download | pdf-over-3cfa8e9e20fa3d90d03ce1ae7dd6ec7508bdbea4.tar.gz pdf-over-3cfa8e9e20fa3d90d03ce1ae7dd6ec7508bdbea4.tar.bz2 pdf-over-3cfa8e9e20fa3d90d03ce1ae7dd6ec7508bdbea4.zip |
Enable signature block lang selection for PDF-AS
Diffstat (limited to 'trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java')
-rw-r--r-- | trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java index d613232f..e05a8ad5 100644 --- a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java +++ b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java @@ -34,17 +34,6 @@ public class PDFASSigner implements Signer { static final Logger log = LoggerFactory.getLogger(PDFASSigner.class); /** - * The profile ID - */ - protected static final String PROFILE_ID = "SIGNATURBLOCK_SMALL_DE"; - - /** - * The profile ID - * if a signature note is set - */ - protected static final String PROFILE_NOTE_ID = "SIGNATURBLOCK_SMALL_DE_NOTE"; - - /** * The template URL */ protected static final String URL_TEMPLATE = "http://pdfover.4.gv.at/template"; @@ -83,7 +72,8 @@ public class PDFASSigner implements Signer { // params.setSignatureDevice(Constants.SIGNATURE_DEVICE_MOBILETEST); } params.setSignatureType(Constants.SIGNATURE_TYPE_BINARY); - params.setSignatureProfileId(PROFILE_ID); + + params.setSignatureProfileId(sign_para.getSignatureProfileID()); params.setOutput(new ByteArrayDataSink()); if (parameter.getEmblem() != null) { @@ -93,7 +83,6 @@ public class PDFASSigner implements Signer { if(parameter.getProperty("SIG_NOTE") != null) { params.setProfileOverrideValue("SIG_NOTE", parameter.getProperty("SIG_NOTE")); - params.setSignatureProfileId(PROFILE_NOTE_ID); } // Prepare Output sink |