From 93d2c95c8bbf8c5a482ca7c29b97868e01bf4a88 Mon Sep 17 00:00:00 2001 From: ferbas Date: Tue, 5 Jan 2010 14:25:01 +0000 Subject: added text sig version 1.2.0 fixed text extraction encoding bug git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@524 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/framework/SignatorFactory.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/at/gv/egiz/pdfas/framework/SignatorFactory.java b/src/main/java/at/gv/egiz/pdfas/framework/SignatorFactory.java index d4ecc26..52bc149 100644 --- a/src/main/java/at/gv/egiz/pdfas/framework/SignatorFactory.java +++ b/src/main/java/at/gv/egiz/pdfas/framework/SignatorFactory.java @@ -10,6 +10,7 @@ import at.gv.egiz.pdfas.impl.signator.binary.BinarySignator_1_1_0; import at.gv.egiz.pdfas.impl.signator.detached.DetachedTextualSignator_1_0_0; import at.gv.egiz.pdfas.impl.signator.textual.TextualSignator_1_0_0; import at.gv.egiz.pdfas.impl.signator.textual.TextualSignator_1_1_0; +import at.gv.egiz.pdfas.impl.signator.textual.TextualSignator_1_2_0; import at.gv.egiz.pdfas.framework.signator.Signator; /** @@ -47,6 +48,11 @@ public class SignatorFactory * This application's current algorithm versions. */ public static final String VERSION_1_1_0 = "v1.1.0"; //$NON-NLS-1$ + + /** + * This application's current algorithm versions. + */ + public static final String VERSION_1_2_0 = "v1.2.0"; //$NON-NLS-1$ public static Signator createSignator (PdfASID id) throws SignatorFactoryException @@ -80,6 +86,11 @@ public class SignatorFactory { return new TextualSignator_1_1_0(); } + if (id.getVersion().equals(VERSION_1_2_0)) + { + return new TextualSignator_1_2_0(); + } + throw new SignatorFactoryException("The version '" + id.getVersion() + "' of type '" + id.getType() + "' is not supported by this SignatorFactory. (id='" + id + "')"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } -- cgit v1.2.3