aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/reader/CardMngr.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cz/crcs/ectester/reader/CardMngr.java')
-rw-r--r--src/cz/crcs/ectester/reader/CardMngr.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/cz/crcs/ectester/reader/CardMngr.java b/src/cz/crcs/ectester/reader/CardMngr.java
index 9cdd055..d95b7e5 100644
--- a/src/cz/crcs/ectester/reader/CardMngr.java
+++ b/src/cz/crcs/ectester/reader/CardMngr.java
@@ -255,11 +255,13 @@ public class CardMngr {
public ResponseAPDU sendAPDUSimulator(CommandAPDU apdu) {
System.out.println(">>>>");
+ System.out.println(apdu);
System.out.println(Util.bytesToHex(apdu.getBytes()));
ResponseAPDU response = simulator.transmitCommand(apdu);
byte[] responseBytes = response.getBytes();
+ System.out.println(response);
System.out.println(Util.bytesToHex(responseBytes));
System.out.println("<<<<");
@@ -285,13 +287,4 @@ public class CardMngr {
CommandAPDU commandAPDU = new CommandAPDU(apdu);
return send(commandAPDU);
}
-
- public ResponseAPDU[] send(CommandAPDU... apdus) throws CardException {
- ResponseAPDU[] result = new ResponseAPDU[apdus.length];
- for (int i = 0; i < apdus.length; i++) {
- result[i] = send(apdus[i]);
- }
- return result;
- }
-
}