Package org.calypsonet.terminal.reader
Interface ConfigurableCardReader
-
- All Superinterfaces:
CardReader
public interface ConfigurableCardReader extends CardReader
Configurable card reader providing the methods to manage the card protocols.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activateProtocol(java.lang.String readerProtocol, java.lang.String cardProtocol)
Activates the reader communication protocol by associating the provided reader communication protocol name and the communication protocol name defined by the application.void
deactivateProtocol(java.lang.String readerProtocol)
Deactivates the provided reader communication protocol.-
Methods inherited from interface org.calypsonet.terminal.reader.CardReader
getName, isCardPresent, isContactless
-
-
-
-
Method Detail
-
activateProtocol
void activateProtocol(java.lang.String readerProtocol, java.lang.String cardProtocol)
Activates the reader communication protocol by associating the provided reader communication protocol name and the communication protocol name defined by the application.- Activates the detection of cards using the provided reader communication protocol.
- Internally associates the two strings provided as arguments.
The association between the communication protocol name known by the reader and the communication protocol name defined by the application is intended to manage non-ISO cards. It allows a unique protocol name to be set when constructing a card selector as defined by the Terminal Card API regardless of the type of reader that will be used.
- Parameters:
readerProtocol
- The name of the communication protocol as known by the reader. See the reader documentation for the list of supported communication protocols.cardProtocol
- The name of the communication protocol of the card which be detect as defined by the application.- Throws:
java.lang.IllegalArgumentException
- If one of the provided communication protocols is null or empty.ReaderProtocolNotSupportedException
- If the reader communication protocol is not supported.- Since:
- 1.0.0
-
deactivateProtocol
void deactivateProtocol(java.lang.String readerProtocol)
Deactivates the provided reader communication protocol. Inhibits the detection of cards using this reader communication protocol.- Parameters:
readerProtocol
- The name of the communication protocol as known by the reader. See the reader documentation for the list of supported communication protocols.- Throws:
java.lang.IllegalArgumentException
- If the provided reader communication protocol is null or empty.ReaderProtocolNotSupportedException
- If the reader communication protocol is not supported.- Since:
- 1.0.0
-
-