com.ibm.opencard.terminal.pcsc10
Class Pcsc10CardTerminalFactory

java.lang.Object
  |
  +--com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
Direct Known Subclasses:
Pcsc10LockableTerminalFactory

public class Pcsc10CardTerminalFactory
extends java.lang.Object
implements opencard.core.terminal.CardTerminalFactory

CardTerminalFactory for PCSC card terminals.

See Also:
CardTerminalFactory

Constructor Summary
Pcsc10CardTerminalFactory()
          Instantiate and initialize an Pcsc10TerminalFactory.
 
Method Summary
 void close()
          deinitialize the PC/SC-driver
 void createCardTerminals(opencard.core.terminal.CardTerminalRegistry ctr, java.lang.String[] terminalInfo)
          create a specific CardTerminal object that knows how to handle a specific card terminal and register it to the CardTerminalRegistry.
protected  java.lang.String[] ListReaders()
          get the actual PC/SC reader list
 void open()
          initialize the factory (setup the PC/SC-driver)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pcsc10CardTerminalFactory

public Pcsc10CardTerminalFactory()
                          throws opencard.core.terminal.CardTerminalException
Instantiate and initialize an Pcsc10TerminalFactory.
Throws:
opencard.core.terminal.CardTerminalException - Thrown when a problem occured.
Method Detail

createCardTerminals

public void createCardTerminals(opencard.core.terminal.CardTerminalRegistry ctr,
                                java.lang.String[] terminalInfo)
                         throws opencard.core.terminal.CardTerminalException
create a specific CardTerminal object that knows how to handle a specific card terminal and register it to the CardTerminalRegistry.
Specified by:
createCardTerminals in interface opencard.core.terminal.CardTerminalFactory
Parameters:
ctr - the CardTerminalRegistry for registration-process
terminalInfo - null - not needed for this factory
See Also:
CardTerminalFactory

open

public void open()
          throws opencard.core.terminal.CardTerminalException
initialize the factory (setup the PC/SC-driver)
Specified by:
open in interface opencard.core.terminal.CardTerminalFactory

close

public void close()
           throws opencard.core.terminal.CardTerminalException
deinitialize the PC/SC-driver
Specified by:
close in interface opencard.core.terminal.CardTerminalFactory

ListReaders

protected java.lang.String[] ListReaders()
                                  throws opencard.core.terminal.CardTerminalException
get the actual PC/SC reader list
Throws:
opencard.core.terminal.CardTerminalException - thrown when error occured