Java javax.smartcardio ResponseAPDU fields, constructors, methods, implement or subclass

Example usage for Java javax.smartcardio ResponseAPDU fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.smartcardio ResponseAPDU.

The text is from its open source code.

Constructor

ResponseAPDU(byte[] apdu)
Constructs a ResponseAPDU from a byte array containing the complete APDU contents (conditional body and trailed).

Method

byte[]getBytes()
Returns a copy of the bytes in this APDU.
byte[]getData()
Returns a copy of the data bytes in the response body.
intgetNr()
Returns the number of data bytes in the response body (Nr) or 0 if this APDU has no body.
intgetSW()
Returns the value of the status bytes SW1 and SW2 as a single status word SW.
intgetSW1()
Returns the value of the status byte SW1 as a value between 0 and 255.
intgetSW2()
Returns the value of the status byte SW2 as a value between 0 and 255.