publicstaticvoid main(String[] args) throws Exception {
CardTerminal terminal = getTerminal(args); if (terminal == null) {
System.out.println("Skipping the test: " + "no card terminals available"); return;
}
// establish a connection with the card
Card card = terminal.connect("T=0");
System.out.println("card: " + card);
byte[] data = newbyte[] {2}; // byte[] data = new byte[] {6, 0, 10, 1, 1, 16, 0};
try { byte[] resp = card.transmitControlCommand(IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE, data);
System.out.println("Firmware: " + toString(resp)); thrownew Exception();
} catch (CardException e) { // we currently don't know of any control commands that work with // our readers. call the function just to make sure we don't crash // or throw the wrong exception
System.out.println("OK: " + e);
e.printStackTrace(System.out);
} try {
card.transmitControlCommand(IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE, null);
} catch (NullPointerException e) {
System.out.println("OK: " + e);
}
// disconnect
card.disconnect(true);
System.out.println("OK.");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.