Interface ApduResponseApi

  • All Superinterfaces:
    java.io.Serializable

    public interface ApduResponseApi
    extends java.io.Serializable
    Data received in response to an APDU command.

    Consists in a data part of variable length and a status word (SW1SW2).

    Since:
    1.0.0
    See Also:
    ApduRequestSpi
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] getApdu()
      Gets the raw data received from the card (including the status word).
      byte[] getDataOut()
      Gets the data part of the response received from the card (excluding the status word).
      int getStatusWord()
      Gets the status word of the APDU as an int.
    • Method Detail

      • getApdu

        byte[] getApdu()
        Gets the raw data received from the card (including the status word).
        Returns:
        An array of at least 2 bytes.
        Since:
        1.0.0
      • getDataOut

        byte[] getDataOut()
        Gets the data part of the response received from the card (excluding the status word).
        Returns:
        A not null byte array.
        Since:
        1.0.0
      • getStatusWord

        int getStatusWord()
        Gets the status word of the APDU as an int.
        Returns:
        An integer between 0000h and FFFFh.
        Since:
        1.0.0