API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.smartcardio. CommandAPDU View Source
Author(s)
Andreas Sterbenz
JSR 268 Expert Group
Since
1.6
Version
1.3, 07/20/06
Serial
Hierarchy
 Object
      CommandAPDU
Implements
 Serializable
Subclasses
Description
publicfinal class CommandAPDU
  A command APDU following the structure defined in ISO/IEC 7816-4.
Constructors
public CommandAPDU (byte[] apdu)
  Constructs a CommandAPDU from a byte array containing the complete APDU contents (header and body).
public CommandAPDU (byte[] apdu, int apduOffset, int apduLength)
  Constructs a CommandAPDU from a byte array containing the complete APDU contents (header and body).
public CommandAPDU (ByteBuffer apdu)
  Creates a CommandAPDU from the ByteBuffer containing the complete APDU contents (header and body).
public CommandAPDU (int cla, int ins, int p1, int p2)
  Constructs a CommandAPDU from the four header bytes.
public CommandAPDU (int cla, int ins, int p1, int p2, byte[] data)
  Constructs a CommandAPDU from the four header bytes and command data.
public CommandAPDU (int cla, int ins, int p1, int p2, byte[] data, int ne)
  Constructs a CommandAPDU from the four header bytes, command data, and expected response data length.
public CommandAPDU (int cla, int ins, int p1, int p2, byte[] data, int dataOffset, int dataLength)
  Constructs a CommandAPDU from the four header bytes and command data.
public CommandAPDU (int cla, int ins, int p1, int p2, byte[] data, int dataOffset, int dataLength, int ne)
  Constructs a CommandAPDU from the four header bytes, command data, and expected response data length.
public CommandAPDU (int cla, int ins, int p1, int p2, int ne)
  Constructs a CommandAPDU from the four header bytes and the expected response data length.
Methods
Hide/Show inherited methods
public boolean equals (Object obj)
  Compares the specified object with this command APDU for equality.
public byte getBytes ()
  Returns a copy of the bytes in this APDU.
public int getCLA ()
  Returns the value of the class byte CLA.
public byte getData ()
  Returns a copy of the data bytes in the command body.
public int getINS ()
  Returns the value of the instruction byte INS.
public int getNc ()
  Returns the number of data bytes in the command body (Nc) or 0 if this APDU has no body.
public int getNe ()
  Returns the maximum number of expected data bytes in a response APDU (Ne).
public int getP1 ()
  Returns the value of the parameter byte P1.
public int getP2 ()
  Returns the value of the parameter byte P2.
public int hashCode ()
  Returns the hash code value for this command APDU.
public String toString ()
  Returns a string representation of this command APDU.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar