API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.smartcardio. ResponseAPDU View Source
Author(s)
Andreas Sterbenz
JSR 268 Expert Group
Since
1.6
Version
1.3, 07/20/06
Serial
Hierarchy
 Object
      ResponseAPDU
Implements
 Serializable
Subclasses
Description
publicfinal class ResponseAPDU
  A response APDU as defined in ISO/IEC 7816-4.
Constructors
public ResponseAPDU (byte[] apdu)
  Constructs a ResponseAPDU from a byte array containing the complete APDU contents (conditional body and trailed).
Methods
Hide/Show inherited methods
public boolean equals (Object obj)
  Compares the specified object with this response APDU for equality.
public byte getBytes ()
  Returns a copy of the bytes in this APDU.
public byte getData ()
  Returns a copy of the data bytes in the response body.
public int getNr ()
  Returns the number of data bytes in the response body (Nr) or 0 if this APDU has no body.
public int getSW ()
  Returns the value of the status bytes SW1 and SW2 as a single status word SW.
public int getSW1 ()
  Returns the value of the status byte SW1 as a value between 0 and 255.
public int getSW2 ()
  Returns the value of the status byte SW2 as a value between 0 and 255.
public int hashCode ()
  Returns the hash code value for this response APDU.
public String toString ()
  Returns a string representation of this response APDU.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar