diff options
Diffstat (limited to 'BKULocal')
-rw-r--r-- | BKULocal/src/test/java/at/gv/egiz/bku/local/stal/TestSignRequest.java | 5 |
1 files changed, 4 insertions, 1 deletions
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<STALRequest> reqList = new ArrayList<STALRequest>(1); reqList.add(sr); |