aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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$
}