package.html revision 2362
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering This code is free software; you can redistribute it and/or modify it
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering under the terms of the GNU General Public License version 2 only, as
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering published by the Free Software Foundation. Oracle designates this
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering particular file as subject to the "Classpath" exception as provided
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering by Oracle in the LICENSE file that accompanied this code.
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering This code is distributed in the hope that it will be useful, but WITHOUT
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
cde360cd5de39fb910ebfcc0839f8c3fa465ef8bLennart Poettering version 2 for more details (a copy is included in the LICENSE file that
or visit www.oracle.com if you need additional information or have any
TerminalFactory factory = TerminalFactory.getDefault();
List<CardTerminal> terminals = factory.terminals().list();
System.out.println("Terminals: " + terminals);
CardTerminal terminal = terminals.get(0);
Card card = terminal.connect("T=0");
System.out.println("card: " + card);
CardChannel channel = card.getBasicChannel();
ResponseAPDU r = channel.transmit(new CommandAPDU(c1));
card.disconnect(false);