|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.scuba.smartcards.CardManager
public class CardManager
Manages all card terminals.
This is the source of card insertion and removal events.
Ideally this should be the only place where low level CardService
instances (such as TerminalCardService)
are created.
| Method Summary | |
|---|---|
void |
addAPDUListener(APDUListener l)
Adds a listener. |
void |
addCardTerminalListener(CardTerminalListener l)
Adds a listener. |
void |
addTerminal(CardTerminal terminal,
boolean isPolling)
Adds a terminal. |
int |
addTerminals(TerminalFactory factory,
boolean isPolling)
Adds the terminals produced by factory. |
static CardManager |
getInstance()
Gets the card manager. |
CardService |
getService(CardTerminal terminal)
Gets the service associated with terminal (or null if
we are not polling terminal). |
List<CardTerminal> |
getTerminals()
Gets a list of terminals. |
boolean |
isPolling()
Deprecated. Use isPolling(CardTerminal). |
boolean |
isPolling(CardTerminal terminal)
Whether we are polling terminal. |
void |
removeAPDUListener(APDUListener l)
Removes a listener. |
void |
removeCardTerminalListener(CardTerminalListener l)
Removes a listener. |
void |
startPolling(CardTerminal terminal)
Starts polling terminal (if not already doing so). |
void |
stopPolling(CardTerminal terminal)
Stops polling terminal. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void startPolling(CardTerminal terminal)
terminal (if not already doing so).
terminal - a card terminalpublic void stopPolling(CardTerminal terminal)
terminal.
terminal - a card terminalpublic boolean isPolling(CardTerminal terminal)
terminal.
terminal - a card terminal
public CardService getService(CardTerminal terminal)
terminal (or null if
we are not polling terminal).
terminal - a card terminal
nullpublic boolean isPolling()
isPolling(CardTerminal).
public int addTerminals(TerminalFactory factory,
boolean isPolling)
factory.
factory -
public void addTerminal(CardTerminal terminal,
boolean isPolling)
terminal - the card terminal to addisPolling - whether we should immediately start polling this terminalpublic void addCardTerminalListener(CardTerminalListener l)
l - the listener to addpublic void removeCardTerminalListener(CardTerminalListener l)
l - the listener to removepublic void addAPDUListener(APDUListener l)
l - the listener to addpublic void removeAPDUListener(APDUListener l)
l - the listener to removepublic List<CardTerminal> getTerminals()
public String toString()
toString in class Objectpublic static CardManager getInstance()
addTerminals(TerminalFactory,boolean) to add additional terminals.
|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||