From d96c401b9a1cdbe433412f7a614d34bf429811f5 Mon Sep 17 00:00:00 2001 From: knowcenter Date: Fri, 18 May 2007 15:55:40 +0000 Subject: minor changes git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@94 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java | 6 ++++-- .../egov/egiz/sig/connectors/moa/DetachedLocRefMOAConnector.java | 2 +- .../egov/egiz/sig/connectors/moa/EnvelopingBase64MOAConnector.java | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/knowcenter') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java index af94f94..94b2891 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java @@ -58,8 +58,10 @@ public final class ConnectorChooser log.error("Currently only the MOA connector is available for non local WEB signation."); } - log.debug("choosing locref detached MOA connector."); - return new DetachedLocRefMOAConnector(profile, loc_ref_url); + //log.debug("choosing locref detached MOA connector."); + // TODO MOA detached signing is not allowed at the commandline + log.warn("Detached MOA is not supported on the commandline. -> choosing Base64 temporarily."); + return new EnvelopingBase64MOAConnector(profile); } public static Connector chooseCommandlineConnectorForSign(String connector, diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/DetachedLocRefMOAConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/DetachedLocRefMOAConnector.java index 7c326f5..8ab34a1 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/DetachedLocRefMOAConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/DetachedLocRefMOAConnector.java @@ -199,7 +199,7 @@ public class DetachedLocRefMOAConnector implements Connector } catch (Exception e) { - throw new ConnectorException(320, e); + throw new ConnectorException(330, e); } } diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/EnvelopingBase64MOAConnector.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/EnvelopingBase64MOAConnector.java index a29df2a..318f215 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/EnvelopingBase64MOAConnector.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/EnvelopingBase64MOAConnector.java @@ -116,7 +116,7 @@ public class EnvelopingBase64MOAConnector implements Connector } catch (Exception e) { - throw new ConnectorException(320, e); + throw new ConnectorException(330, e); } } -- cgit v1.2.3