aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java10
1 files changed, 4 insertions, 6 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 94b2891..4dcd1b5 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,10 +58,8 @@ 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.");
- // 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);
+ log.debug("choosing locref detached MOA connector.");
+ return new DetachedLocRefMOAConnector(profile, loc_ref_url);
}
public static Connector chooseCommandlineConnectorForSign(String connector,
@@ -172,8 +170,8 @@ public final class ConnectorChooser
{
log.debug("sig_kz version is 1.1.0 -> choosing detached (loc ref) connector.");
- throw new ConnectorException(370, "The MOA detached connector is not suitable for verification.");
- //return new DetachedLocRefMOAConnector(profile, loc_ref_url);
+ //throw new ConnectorException(370, "The MOA detached connector is not suitable for verification.");
+ return new DetachedLocRefMOAConnector(profile, loc_ref_url);
}
throw new ConnectorException(310, "The SIG_KZ version '" + sig_kz.getVersion() + "' is unknown.");