public interface ICardReader
The physical card reader is represented by a class implementing ICardReader interface.
This class handles card reader’s initialisation status and card.
| Modifier and Type | Method and Description |
|---|---|
ICard |
connect()
Establishes a connection to the card.
|
default java.lang.String |
getDisplayName()
Returns the system name of this reader.
|
java.lang.String |
getName()
Returns the unique name of this reader.
|
void |
initialize()
start initialisation
|
boolean |
isCardPresent()
Returns whether a card is present in this reader.
|
boolean |
isInitialized()
Return the current initialisation status
|
void initialize()
start initialisation
boolean isInitialized()
Return the current initialisation status
ICard connect() throws CardException
Establishes a connection to the card. If a connection has previously established using the specified protocol, this method returns the same Card object as the previous call.
CardException - - if a connection could not be established using the specified protocol or if a connection has previously been established using a
different protocoljava.lang.String getName()
Returns the unique name of this reader.
default java.lang.String getDisplayName()
Returns the system name of this reader.
boolean isCardPresent()
throws CardException
Returns whether a card is present in this reader.
CardException - - if the status could not be determined