Interface AutonomousSelectionReaderSpi

All Superinterfaces:
ReaderSpi

public interface AutonomousSelectionReaderSpi extends ReaderSpi
Reader having an autonomous mechanism to select the cards (for example OMAPI readers).
Since:
2.0.0
  • Method Details

    • openChannelForAid

      byte[] openChannelForAid(byte[] aid, byte isoControlMask) throws ReaderIOException, CardIOException
      Opens a logical channel for the provided AID

      The 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