From 3899d278a6b91d70568841eeed079534a19db6dc Mon Sep 17 00:00:00 2001 From: knowcenter Date: Fri, 1 Jun 2007 08:33:13 +0000 Subject: detached moa git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@113 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../wag/egov/egiz/sig/connectors/ConnectorChooser.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/knowcenter/wag/egov/egiz') 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."); -- cgit v1.2.3