Class Apdu

java.lang.Object
com.yubico.yubikit.core.smartcard.Apdu

public class Apdu extends Object
Data model for encapsulating an APDU command, as defined by ISO/IEC 7816-4 standard.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Apdu(int cla, int ins, int p1, int p2, byte[] data)
     
    Apdu(int cla, int ins, int p1, int p2, byte[] data, int le)
    Constructor using int's for convenience.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    Returns the CLA of the APDU.
    byte[]
    Returns the data payload of the APDU.
    byte
    Returns the INS of the APDU.
    int
     
    byte
    Returns the parameter P1 of the APDU.
    byte
    Returns the parameter P2 of the APDU.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Apdu

      public Apdu(int cla, int ins, int p1, int p2, @Nullable byte[] data, int le)
      Constructor using int's for convenience. See Apdu(byte, byte, byte, byte, byte[]).
    • Apdu

      public Apdu(int cla, int ins, int p1, int p2, @Nullable byte[] data)
  • Method Details

    • getData

      public byte[] getData()
      Returns the data payload of the APDU.
    • getCla

      public byte getCla()
      Returns the CLA of the APDU.
    • getIns

      public byte getIns()
      Returns the INS of the APDU.
    • getP1

      public byte getP1()
      Returns the parameter P1 of the APDU.
    • getP2

      public byte getP2()
      Returns the parameter P2 of the APDU.
    • getLe

      public int getLe()