com.ibm.opencard.terminal.pcsc10
Class Pcsc10CardTerminalFactory

java.lang.Object
  extended by com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
All Implemented Interfaces:
CardTerminalFactory
Direct Known Subclasses:
Pcsc10LockableTerminalFactory

public class Pcsc10CardTerminalFactory
extends java.lang.Object
implements CardTerminalFactory

CardTerminalFactory for PCSC card terminals.

Version:
$Id: Pcsc10CardTerminalFactory.java,v 1.2 2005/09/19 10:21:22 asc Exp $
Author:
Stephan Breideneich (sbreiden@de.ibm.com)
See Also:
CardTerminalFactory

Field Summary
 
Fields inherited from interface opencard.core.terminal.CardTerminalFactory
TERMINAL_ADDRESS_ENTRY, TERMINAL_NAME_ENTRY, TERMINAL_TYPE_ENTRY
 
Constructor Summary
Pcsc10CardTerminalFactory()
          Instantiate and initialize an Pcsc10TerminalFactory.
 
Method Summary
 void close()
          deinitialize the PC/SC-driver
 void createCardTerminals(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 CardTerminalException
Instantiate and initialize an Pcsc10TerminalFactory.

Throws:
CardTerminalException - Thrown when a problem occured.
Method Detail

createCardTerminals

public void createCardTerminals(CardTerminalRegistry ctr,
                                java.lang.String[] terminalInfo)
                         throws 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 CardTerminalFactory
Parameters:
ctr - the CardTerminalRegistry for registration-process
terminalInfo - null - not needed for this factory
Throws:
CardTerminalException - thrown when CardTerminal error occured
TerminalInitException - thrown when terminalInfo is incorrect or factory not able to support requested terminal type.
See Also:
CardTerminalFactory

open

public void open()
          throws CardTerminalException
initialize the factory (setup the PC/SC-driver)

Specified by:
open in interface CardTerminalFactory
Throws:
CardTerminalException - thrown when error occurred while open initializes the factory.

close

public void close()
           throws CardTerminalException
deinitialize the PC/SC-driver

Specified by:
close in interface CardTerminalFactory
Throws:
CardTerminalException - thrown when error occurred while close deinitializes the factory.

ListReaders

protected java.lang.String[] ListReaders()
                                  throws CardTerminalException
get the actual PC/SC reader list

Throws:
CardTerminalException - thrown when error occured