aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java4
-rw-r--r--test-files/blindtext.pdfbin116376 -> 44339 bytes
-rw-r--r--test-files/blindtext_mit_leerer_seite.pdfbin116996 -> 0 bytes
3 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
index e8deb39..450cb3c 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java
@@ -21,6 +21,7 @@ import java.lang.reflect.Field;
import org.apache.log4j.Logger;
+import at.gv.egiz.pdfas.api.commons.Constants;
import at.knowcenter.wag.egov.egiz.cfg.ConfigLogger;
import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
import at.knowcenter.wag.egov.egiz.exceptions.ConnectorFactoryException;
@@ -29,6 +30,7 @@ import at.knowcenter.wag.egov.egiz.sig.connectors.A1Connector;
import at.knowcenter.wag.egov.egiz.sig.connectors.BKUConnector;
import at.knowcenter.wag.egov.egiz.sig.connectors.ConnectorConfigurationKeys;
import at.knowcenter.wag.egov.egiz.sig.connectors.MOAConnector;
+import at.knowcenter.wag.egov.egiz.sig.connectors.mocca.LocRefDetachedMOCCAConnector;
/**
* This is a factory for creating the appropriate connector according to the
@@ -306,7 +308,7 @@ public abstract class ConnectorFactory
*/
public static boolean isConnectorLocal(String connector_identifier) throws ConnectorFactoryException
{
- return connector_identifier.equals("bku") || connector_identifier.equals("a1");
+ return connector_identifier.equals(Constants.SIGNATURE_DEVICE_BKU) || connector_identifier.equals(Constants.SIGNATURE_DEVICE_A1) || connector_identifier.equals(Constants.SIGNATURE_DEVICE_MOC);
}
/**
diff --git a/test-files/blindtext.pdf b/test-files/blindtext.pdf
index f8f5a38..d53d766 100644
--- a/test-files/blindtext.pdf
+++ b/test-files/blindtext.pdf
Binary files differ
diff --git a/test-files/blindtext_mit_leerer_seite.pdf b/test-files/blindtext_mit_leerer_seite.pdf
deleted file mode 100644
index c68c448..0000000
--- a/test-files/blindtext_mit_leerer_seite.pdf
+++ /dev/null
Binary files differ