Class Apdu

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

public class Apdu
extends java.lang.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)
    Constructor using int's for convenience.
  • Method Summary

    Modifier and Type Method Description
    byte getCla()
    Returns the CLA of the APDU.
    byte[] getData()
    Returns the data payload of the APDU.
    byte getIns()
    Returns the INS of the APDU.
    byte getP1()
    Returns the parameter P1 of the APDU.
    byte getP2()
    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)
      Constructor using int's for convenience. See Apdu(byte, byte, byte, byte, byte[]).
  • 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.