From d311d0f7b7ef9ed5bc383d6744b7d61239aafbc1 Mon Sep 17 00:00:00 2001 From: tkellner Date: Fri, 13 Dec 2013 01:26:39 +0000 Subject: Extend STAL to support CMS SignedAttributes git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1262 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/test/java/at/gv/egiz/bku/local/stal/TestSignRequest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'BKULocal/src/test') diff --git a/BKULocal/src/test/java/at/gv/egiz/bku/local/stal/TestSignRequest.java b/BKULocal/src/test/java/at/gv/egiz/bku/local/stal/TestSignRequest.java index da6c8664..0f967285 100644 --- a/BKULocal/src/test/java/at/gv/egiz/bku/local/stal/TestSignRequest.java +++ b/BKULocal/src/test/java/at/gv/egiz/bku/local/stal/TestSignRequest.java @@ -34,6 +34,7 @@ import at.gv.egiz.bku.utils.StreamUtil; import at.gv.egiz.smcc.SignatureCard; import at.gv.egiz.stal.STALRequest; import at.gv.egiz.stal.SignRequest; +import at.gv.egiz.stal.SignRequest.SignedInfo; @Ignore public class TestSignRequest { @@ -43,7 +44,9 @@ public class TestSignRequest { StreamUtil.copyStream(getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/local/stal/sigInfo.xml"), os); byte[] signedInfo = os.toByteArray(); SignRequest sr = new SignRequest(); - sr.setSignedInfo(signedInfo); + SignedInfo si = new SignedInfo(); + si.setValue(signedInfo); + sr.setSignedInfo(si); sr.setKeyIdentifier(SignatureCard.KeyboxName.SECURE_SIGNATURE_KEYPAIR.getKeyboxName()); List reqList = new ArrayList(1); reqList.add(sr); -- cgit v1.2.3