Class Apdu

java.lang.Object
es.gob.jmulticard.apdu.Apdu
Direct Known Subclasses:
CommandApdu, ResponseApdu

public class Apdu extends Object
Application Programming Data Unit (APDU) para comunicación con tarjeta inteligente.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private byte[]
    Codificación binaria de la APDU.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Obtiene los octetos que conforman la APDU.
    protected void
    setBytes(byte[] apdu)
    Establece los octetos que conforman la APDU.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • apduBytes

      private transient byte[] apduBytes
      Codificación binaria de la APDU.
  • Constructor Details

    • Apdu

      protected Apdu()
      Constructor.
  • Method Details

    • getBytes

      public byte[] getBytes()
      Obtiene los octetos que conforman la APDU.
      Returns:
      Array de octetos que conforman la APDU.
    • setBytes

      protected void setBytes(byte[] apdu)
      Establece los octetos que conforman la APDU.
      Parameters:
      apdu - Array de octetos que conforman la APDU.
    • toString

      public String toString()
      Overrides:
      toString in class Object