From 265b0aca555d9880361b754b6a18ce70b5be28cd Mon Sep 17 00:00:00 2001 From: mcentner Date: Wed, 16 Jun 2010 11:19:41 +0000 Subject: Refactored smart card unit tests to use Spring to configure smart card emulators. git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@754 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../java/at/gv/egiz/smcc/starcos/STARCOSAppl.java | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSAppl.java') diff --git a/smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSAppl.java b/smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSAppl.java index 62528e6e..7267e79b 100644 --- a/smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSAppl.java +++ b/smcc/src/test/java/at/gv/egiz/smcc/starcos/STARCOSAppl.java @@ -16,9 +16,6 @@ */ package at.gv.egiz.smcc.starcos; -import java.io.UnsupportedEncodingException; -import java.math.BigInteger; -import java.util.Arrays; import java.util.Iterator; import javax.smartcardio.CommandAPDU; @@ -29,31 +26,15 @@ import at.gv.egiz.smcc.CardAppl; import at.gv.egiz.smcc.CardChannelEmul; import at.gv.egiz.smcc.PIN; -@SuppressWarnings("restriction") public abstract class STARCOSAppl extends AbstractAppl implements CardAppl { - public static byte[] AID_SichereSignatur = new byte[] { (byte) 0xD0, (byte) 0x40, - (byte) 0x00, (byte) 0x00, (byte) 0x17, (byte) 0x00, (byte) 0x12, (byte) 0x01 }; - - public static byte[] FID_SichereSignatur = new byte[] { (byte) 0x3F, (byte) 0x04 }; - - public static byte[] AID_Infobox = new byte[] { (byte) 0xD0, (byte) 0x40, - (byte) 0x00, (byte) 0x00, (byte) 0x17, (byte) 0x00, (byte) 0x18, (byte) 0x01 }; - - public static byte[] FID_Infobox = new byte[] { (byte) 0x3F, (byte) 0x06 }; - - public static byte[] AID_GewoehnlicheSignatur = new byte[] { (byte) 0xD0, (byte) 0x40, - (byte) 0x00, (byte) 0x00, (byte) 0x17, (byte) 0x00, (byte) 0x13, (byte) 0x01 }; - - public static byte[] FID_GewoehnlicheSignatur = new byte[] { (byte) 0x3F, (byte) 0x05 }; - protected STARCOSCardChannelEmul channel; protected byte[] securityEnv; protected byte[] hash; - public STARCOSAppl(STARCOSCardChannelEmul channel) { + public void setCardChannel(STARCOSCardChannelEmul channel) { this.channel = channel; } -- cgit v1.2.3