Class Spark2Response


  • public class Spark2Response
    extends Object
    Represents the response a JavaCard/ISO14443 card replies with. Holds Status Words and a byte[] response, if any.
    • Constructor Detail

      • Spark2Response

        public Spark2Response​(byte[] chipResponse)
        Creates an ApexResponse and processes the fed chip response.
        Parameters:
        chipResponse - the response from an Apex chip.
    • Method Detail

      • getResponse

        public byte[] getResponse()
        Get the chip response.
        Returns:
        a byte[] containing the response, zero-length if none.
      • getSW

        public byte[] getSW()
        Get the status words associated with the response.
        Returns:
        a byte[2] containing the status words.