From 725893dd83289af0948eeeaf39907e87cc41c9ae Mon Sep 17 00:00:00 2001 From: ferbas Date: Thu, 10 Dec 2009 09:32:25 +0000 Subject: added atrust bku support git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@499 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sig/signaturelayout/atrust/ATrustSignatureLayoutHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/atrust/ATrustSignatureLayoutHandler.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/atrust/ATrustSignatureLayoutHandler.java index c6725b7..e8419fb 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/atrust/ATrustSignatureLayoutHandler.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/signaturelayout/atrust/ATrustSignatureLayoutHandler.java @@ -4,7 +4,7 @@ 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.moa.MOAHelper; -import at.knowcenter.wag.egov.egiz.sig.sigid.DetachedLocRefMOAIdFormatter; +import at.knowcenter.wag.egov.egiz.sig.sigid.SimpleIdFormatter; import at.knowcenter.wag.egov.egiz.sig.signaturelayout.SignatureLayoutHandler; /** @@ -14,9 +14,11 @@ import at.knowcenter.wag.egov.egiz.sig.signaturelayout.SignatureLayoutHandler; */ public class ATrustSignatureLayoutHandler implements SignatureLayoutHandler { + public static final String ETSI_BKA_ATRUST_1_0 = "etsi-bka-atrust-1.0"; + public SignSignatureObject parseCreateXMLSignatureResponse(String xmlResponse, ConnectorEnvironment env) throws ConnectorException { - return MOAHelper.parseCreateXMLResponse(xmlResponse, new DetachedLocRefMOAIdFormatter(), env); + return MOAHelper.parseCreateXMLResponse(xmlResponse, new SimpleIdFormatter(ETSI_BKA_ATRUST_1_0), env); } } -- cgit v1.2.3