aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-01-05 14:25:01 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-01-05 14:25:01 +0000
commit93d2c95c8bbf8c5a482ca7c29b97868e01bf4a88 (patch)
tree979d9f1abbe58de61593fd94add5a18ea3dc1278 /src/main/java/at/gv/egiz
parent48fce47ee8da467b0a7ed350b68b80acadc99cd2 (diff)
downloadpdf-as-3-93d2c95c8bbf8c5a482ca7c29b97868e01bf4a88.tar.gz
pdf-as-3-93d2c95c8bbf8c5a482ca7c29b97868e01bf4a88.tar.bz2
pdf-as-3-93d2c95c8bbf8c5a482ca7c29b97868e01bf4a88.zip
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
Diffstat (limited to 'src/main/java/at/gv/egiz')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/framework/SignatorFactory.java11
1 files changed, 11 insertions, 0 deletions
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$
}