Interface ApduInterpreterSpi


public interface ApduInterpreterSpi
Interface defining an APDU interpreter for processing commands sent to a card.

Its implementation is provided by ApduInterpreterFactorySpi.

Upon calling processApdu, implementations determine how to invoke the appropriate methods of CommandProcessorApi based on the card type.

For standard ISO 7816-4 APDUs, the interpreter directly calls CommandProcessorApi.transmitIsoApdu(byte[]). For storage-type cards, the interpreter translates the APDU into specific read/write operations using CommandProcessorApi.getUID(), CommandProcessorApi.readBlock(int, int) and CommandProcessorApi.writeBlock(int, byte[]).

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    processApdu(byte[] apdu)
    Processes an APDU command by invoking the corresponding methods of CommandProcessorApi based on the card type.
    void
    Sets the command processor responsible for handling APDU execution.