From 50f354e021e41d1c3fac0e1d912c19546869dc83 Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 10 Oct 2008 11:38:36 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@297 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/knowcenter/wag/egov/egiz/sig/ConnectorFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); } /** -- cgit v1.2.3