public class AbCircleCardTerminalUSB extends CardTerminal
| Modifier and Type | Method and Description |
|---|---|
Card |
connect(java.lang.String protocol)
Establishes a connection to the card.
|
java.lang.String |
getFirmwareVersion()
Get the firmware version of the terminal
|
java.lang.String |
getName()
Returns the unique name of this terminal.
|
boolean |
isCardPresent()
Returns true if the card is present in the slot
|
java.lang.String |
toString()
This function returns a string that contains the name of the usb terminal
|
boolean |
waitForCardAbsent(long timeout)
Wait for the card to be absent
|
boolean |
waitForCardPresent(long timeout)
Wait for a card to be present in the reader
|
public java.lang.String getName()
CardTerminalgetName in class CardTerminalpublic Card connect(java.lang.String protocol) throws CardException
CardTerminalconnect in class CardTerminalprotocol - the protocol to use ("T=0", "T=1", or "T=CL"), or "*" to
connect using any available protocol.CardNotPresentException - if no card is present in this terminalCardException - if a connection could not be established
using the specified protocol or if a connection has previously been
established using a different protocolpublic boolean isCardPresent()
isCardPresent in class CardTerminalpublic boolean waitForCardPresent(long timeout)
throws CardException
waitForCardPresent in class CardTerminaltimeout - The maximum time to wait for a card to be present.CardException - if the operation failedpublic boolean waitForCardAbsent(long timeout)
throws CardException
waitForCardAbsent in class CardTerminaltimeout - The maximum time to wait for the card to be absent.CardException - if the operation failedpublic java.lang.String getFirmwareVersion()
throws java.lang.IllegalAccessError
java.lang.IllegalAccessErrorpublic java.lang.String toString()
toString in class java.lang.Object