From d4054bc283ec8071fa3fce1650526c85bc2c5f98 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 12 Dec 2013 18:45:45 +0000 Subject: Abuse HashDataInput to store common default reference ID git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1252 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smccSTAL/src/main') diff --git a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java index 8ba18010..3a2fd4a8 100644 --- a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java +++ b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java @@ -47,6 +47,7 @@ import at.gv.egiz.smcc.SignatureCard.KeyboxName; import at.gv.egiz.smcc.SignatureCardException; import at.gv.egiz.smcc.TimeoutException; import at.gv.egiz.stal.ErrorResponse; +import at.gv.egiz.stal.HashDataInput; import at.gv.egiz.stal.STALRequest; import at.gv.egiz.stal.STALResponse; import at.gv.egiz.stal.SignRequest; @@ -63,7 +64,6 @@ public class SignRequestHandler extends AbstractRequestHandler { private final static String CMS_DEF_SIGNEDINFO_ID = "SignedInfo-1"; private final static String CMS_DEF_OBJECT_ID = "SignatureData-1"; - private final static String CMS_DEF_REFERENCE_ID = "Reference-1"; private static JAXBContext jaxbContext; @@ -110,7 +110,7 @@ public class SignRequestHandler extends AbstractRequestHandler { signedInfo.setId(CMS_DEF_SIGNEDINFO_ID); List references = signedInfo.getReference(); ReferenceType reference = new ReferenceType(); - reference.setId(CMS_DEF_REFERENCE_ID); + reference.setId(HashDataInput.CMS_DEF_REFERENCE_ID); reference.setURI(CMS_DEF_OBJECT_ID); references.add(reference); } else { -- cgit v1.2.3