SCardTransmit(context, apdu);
}
public static void main(String[] args) throws ScardException, IOException, CardNotPresentException {
try {
RemoteTerminalManager manager = new RemoteTerminalManager();
List<GenericTerminal> terminals = manager.list();
terminals = manager.list();
terminals = manager.list();
if (0 == terminals.size()) {
System.out.println("Remote terminal not detected.");
return;
}
GenericTerminal terminal = terminals.get(0);
terminals = manager.list();
terminal.addLogHandler(new ScardPrintStreamLogHandler(System.out));
System.out.println("Please insert a card in terminal " + terminal.getName());
while (false == terminal.isCardPresent()) {
try {
Thread.sleep(200);