aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-05-18 15:55:40 +0000
committerknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-05-18 15:55:40 +0000
commitd96c401b9a1cdbe433412f7a614d34bf429811f5 (patch)
tree68b23c6efb157bd0a08ece2873d9037571f9b28a /src/main
parentc2d79b7cd88fcbab3625a9fc549d3c998e814f54 (diff)
downloadpdf-as-3-d96c401b9a1cdbe433412f7a614d34bf429811f5.tar.gz
pdf-as-3-d96c401b9a1cdbe433412f7a614d34bf429811f5.tar.bz2
pdf-as-3-d96c401b9a1cdbe433412f7a614d34bf429811f5.zip
minor changes
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@94 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java6
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/DetachedLocRefMOAConnector.java2
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/EnvelopingBase64MOAConnector.java2
3 files changed, 6 insertions, 4 deletions
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);
}
}