From 61a2d23ef72630934c603fe9ffb96ebebff6ee09 Mon Sep 17 00:00:00 2001 From: netconomy Date: Thu, 29 Nov 2007 12:00:22 +0000 Subject: PDF-AS API git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@233 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../egov/egiz/sig/connectors/ConnectorChooser.java | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/ConnectorChooser.java') 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 5b16211..cbdee42 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 @@ -6,6 +6,7 @@ package at.knowcenter.wag.egov.egiz.sig.connectors; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import at.gv.egiz.pdfas.framework.ConnectorParameters; import at.knowcenter.wag.egov.egiz.PdfASID; import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException; import at.knowcenter.wag.egov.egiz.framework.SignatorFactory; @@ -46,7 +47,9 @@ public final class ConnectorChooser } log.debug("choosing locref detached BKU connector."); - return new LocRefDetachedBKUConnector(profile, loc_ref_url); + ConnectorParameters cp = new ConnectorParameters(); + cp.setProfileId(profile); + return new LocRefDetachedBKUConnector(cp, loc_ref_url); } public static Connector chooseWebConnectorForSign(String connector, @@ -67,7 +70,9 @@ public final class ConnectorChooser // Loc_Ref-Connector // return new DetachedLocRefMOAConnector(profile, loc_ref_url); // SwA-Connector - return new MOASoapWithAttachmentConnector(profile); + ConnectorParameters cp = new ConnectorParameters(); + cp.setProfileId(profile); + return new MOASoapWithAttachmentConnector(cp); } // public static Connector chooseCommandlineConnectorForSign(String connector, @@ -147,7 +152,9 @@ public final class ConnectorChooser { log.debug("sig_kz version is 1.1.0 -> choosing detached (loc ref) connector."); - return new LocRefDetachedBKUConnector(profile, loc_ref_url); + ConnectorParameters cp = new ConnectorParameters(); + cp.setProfileId(profile); + return new LocRefDetachedBKUConnector(cp, loc_ref_url); } throw new ConnectorException(310, "The SIG_KZ version '" + sig_kz.getVersion() + "' is unknown."); @@ -183,7 +190,9 @@ public final class ConnectorChooser // the following line is used in connection with LocRef-Connector // return new DetachedLocRefMOAConnector(profile, loc_ref_url); // the following line is uesed in connection with SwA-Connector - return new MOASoapWithAttachmentConnector(profile); + ConnectorParameters cp = new ConnectorParameters(); + cp.setProfileId(profile); + return new MOASoapWithAttachmentConnector(cp); } throw new ConnectorException(310, "The SIG_KZ version '" + sig_kz.getVersion() + "' is unknown."); @@ -293,7 +302,9 @@ public final class ConnectorChooser { log.debug("sig_app is BKU ==> DetachedMultipartBKUConnector"); //$NON-NLS-1$ - return new MultipartDetachedBKUConnector(profile); + ConnectorParameters cp = new ConnectorParameters(); + cp.setProfileId(profile); + return new MultipartDetachedBKUConnector(cp); } if (sig_app.equals(MOA)) { -- cgit v1.2.3