Package uk.co.nimp.scard

Examples of uk.co.nimp.scard.PcScTerminalManager


final static int SCARD_ATTR_VENDOR_IFD_SERIAL_NO = 0x00010103;//65795;
final static int SCARD_ATTR_DEVICE_SYSTEM_NAME  = 0x7FFF0006;
final static int SCARD_ATTR_ICC_PRESENCE  = 0x00090300;
final static int SCARD_ATTR_CHANNEL_ID = 0x00020110;
    public static void main(String[] args) throws ScardException, IOException, CardNotPresentException, Exception {
        PcScTerminalManager manager = new PcScTerminalManager();
        manager.loadConfiguration(Main.getDefaultConfFolder(), "PcScTest");

        List<GenericTerminal> terminals = manager.list();
        if (0 == terminals.size()) {
            System.out.println("PcSc terminal not detected.");
            return;
        }
        GenericTerminal terminal = terminals.get(2);
View Full Code Here


                    System.out.println("File: " + argFile.getAbsolutePath());
                }
                System.out.println("It should be used to \"register\" one or more terminal managers using the \"" + ARG_ADD_TERMINAL_MANAGER + "\" switch.");
                System.out.println("Enter in \"limited\" mode: register only PcScTerminalManager with hard coded options\n");
                //add PcSc terminal manager to enable minimal functionality anyway
                terminalManagers.add(new PcScTerminalManager());
            }
        }
        for (GenericTerminalManager m : terminalManagers) {
            List<GenericTerminal> terminals=m.list();
            availableTerminals.addAll(terminals);
View Full Code Here

    void terminalSelection() throws ScardException {
        if (0 == availableTerminals.size()) {
            Main.printNoTerminalMessage(terminalManagers);
            System.out.println("Enter in \"limited\" mode: register only PcScTerminalManager with hard coded options\n");
            terminalManagers.add(new PcScTerminalManager());
            availableTerminals = terminalManagers.get(0).list();
            if (0 == availableTerminals.size()){
                String msg = "Could not find any terminal.";
                throw new ExternalRuntimeException(msg);
            }
View Full Code Here

*
* @author seb
*/
public class Main {
public static void main(String[] args) throws ScardException, IOException, CardNotPresentException, Exception {
        PcScTerminalManager manager = new PcScTerminalManager();
        //manager.loadConfiguration(Main.getDefaultConfFolder(), "PcScTest");

        List<GenericTerminal> terminals = manager.list();
        if (0 == terminals.size()) {
            System.out.println("PcSc terminal not detected.");
            return;
        }
        GenericTerminal terminal = terminals.get(0);
View Full Code Here

TOP

Related Classes of uk.co.nimp.scard.PcScTerminalManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.