Interface AutonomousSelectionReaderSpi
- All Superinterfaces:
ReaderSpi
Reader having an autonomous mechanism to select the cards (for example OMAPI readers).
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the logical channel explicitly.byte[]
openChannelForAid
(byte[] aid, byte isoControlMask) Opens a logical channel for the provided AIDMethods inherited from interface org.eclipse.keyple.core.plugin.spi.reader.ReaderSpi
checkCardPresence, closePhysicalChannel, getName, getPowerOnData, isContactless, isPhysicalChannelOpen, onUnregister, openPhysicalChannel, transmitApdu
-
Method Details
-
openChannelForAid
Opens a logical channel for the provided AIDThe aid is provided as a byte array. It can be set to null to activate the basic channel opening defined by the OMAPI.
The bit mask indicates the ISO defined condition to retrieve the selection data.- Parameters:
aid
- The AID (optional)isoControlMask
- The bit mask from the ISO 7816-4 standard- Returns:
- A not empty byte array containing the card answer to selection
- Throws:
ReaderIOException
- If the communication with the reader has failed.CardIOException
- If the communication with the card has failed.- Since:
- 2.0.0
-
closeLogicalChannel
void closeLogicalChannel()Closes the logical channel explicitly.- Since:
- 2.0.0
-