From 075463c79ab00f0a700d7260b28c470b5b56e669 Mon Sep 17 00:00:00 2001 From: ferbas Date: Mon, 2 Nov 2009 09:23:09 +0000 Subject: dynamic algorithm support, compatibility mode git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@383 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sig/signaturelayout/mocca/MOCCASignatureLayout10Handler.java | 5 +++-- .../sig/signaturelayout/mocca/OldMOCCASignatureLayoutHandler.java | 5 +++-- .../egiz/sig/signaturelayout/td/TrustDeskSignatureLayoutHandler.java | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/MOCCASignatureLayout10Handler.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/MOCCASignatureLayout10Handler.java index 0913b49..86c4802 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/MOCCASignatureLayout10Handler.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/MOCCASignatureLayout10Handler.java @@ -1,6 +1,7 @@ package at.knowcenter.wag.egov.egiz.sig.signaturelayout.mocca; import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException; +import at.knowcenter.wag.egov.egiz.sig.connectors.ConnectorEnvironment; import at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject; import at.knowcenter.wag.egov.egiz.sig.connectors.mocca.MOCCAHelper; import at.knowcenter.wag.egov.egiz.sig.sigid.DetachedMOCIdFormatter; @@ -17,8 +18,8 @@ public class MOCCASignatureLayout10Handler implements SignatureLayoutHandler { /** * Parses the given xmlResponse with respect to the specific signature layout of mocca. */ - public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse) throws ConnectorException { - return MOCCAHelper.parseCreateXMLResponse(xmlResponse, new DetachedMOCIdFormatter(ALGORITHM_ID)); + public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse, ConnectorEnvironment env) throws ConnectorException { + return MOCCAHelper.parseCreateXMLResponse(xmlResponse, new DetachedMOCIdFormatter(ALGORITHM_ID), env); } } diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/OldMOCCASignatureLayoutHandler.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/OldMOCCASignatureLayoutHandler.java index 958370e..e4e6d0d 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/OldMOCCASignatureLayoutHandler.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/mocca/OldMOCCASignatureLayoutHandler.java @@ -1,6 +1,7 @@ package at.knowcenter.wag.egov.egiz.sig.signaturelayout.mocca; import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException; +import at.knowcenter.wag.egov.egiz.sig.connectors.ConnectorEnvironment; import at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject; import at.knowcenter.wag.egov.egiz.sig.connectors.mocca.MOCCAHelper; import at.knowcenter.wag.egov.egiz.sig.sigid.DetachedMOCIdFormatter; @@ -17,8 +18,8 @@ public class OldMOCCASignatureLayoutHandler implements SignatureLayoutHandler { /** * Parses the given xmlResponse with respect to the specific signature layout of mocca. */ - public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse) throws ConnectorException { - return MOCCAHelper.parseCreateXMLResponse(xmlResponse, new DetachedMOCIdFormatter(ALGORITHM_ID)); + public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse, ConnectorEnvironment env) throws ConnectorException { + return MOCCAHelper.parseCreateXMLResponse(xmlResponse, new DetachedMOCIdFormatter(ALGORITHM_ID), env); } } diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/td/TrustDeskSignatureLayoutHandler.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/td/TrustDeskSignatureLayoutHandler.java index 5d6eb96..9f231f8 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/td/TrustDeskSignatureLayoutHandler.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/td/TrustDeskSignatureLayoutHandler.java @@ -1,6 +1,7 @@ package at.knowcenter.wag.egov.egiz.sig.signaturelayout.td; import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException; +import at.knowcenter.wag.egov.egiz.sig.connectors.ConnectorEnvironment; import at.knowcenter.wag.egov.egiz.sig.connectors.bku.BKUHelper; import at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject; import at.knowcenter.wag.egov.egiz.sig.sigid.DetachedIdFormatter; @@ -15,8 +16,8 @@ public class TrustDeskSignatureLayoutHandler implements SignatureLayoutHandler { /** * Parses the given xmlResponse with respect to the specific signature layout of trustDesk basic. */ - public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse) throws ConnectorException { - return BKUHelper.parseCreateXMLResponse(xmlResponse, new DetachedIdFormatter()); + public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse, ConnectorEnvironment env) throws ConnectorException { + return BKUHelper.parseCreateXMLResponse(xmlResponse, new DetachedIdFormatter(), env); } } -- cgit v1.2.3