com.pax.dal.entity

Class ApduSendInfo

  • java.lang.Object
    • com.pax.dal.entity.ApduSendInfo


  • public class ApduSendInfo
    extends java.lang.Object
    IC卡发送的APDU指令实体类。
    • lc = 0; le = 0。无数据发送也无数据返回。
    • lc = 0; le > 0。无数据发送但期望数据返回,如果在实际应用中终端期望返回的数据个数未知,应置 le = 256;否则,为确定的数值。
    • lc > 0; le = 0。有数据发送但无期望数据返回。
    • lc > 0; le > 0。有发送数据且有期望数据返回,如果在实际应用中终端期望返回的数据个数未知,应置 le = 256;否则,为确定的数值。
    • 注意事项:由于 le =0 在该处表示不要求数据返回,因此在实际应用中若要求发送的命令中 le = 0 时,应置 le = 256。
    IC card sends APDU instruction entity class.
    • lc = 0; le = 0. There are no data sent and no data returned.
    • lc = 0; le = 0. No data is sent but expected data is returned. If the number of data expected to be returned by the terminal in practical application is unknown, le = 256; Otherwise, it is a certain value.
    • lc = 0; le = 0. There is data sent but no expected data is returned.
    • lc = 0; le = 0. There is sent data and expected data is returned. If the number of expected data returned by the terminal in practical application is unknown, le = 256;Otherwise, it is a certain value.
    • lc = 0; le = 0. Note: Since le = 0 indicates that no data is required to be returned, le = 256 should be set in practice if le = 0 is required to be sent in the command.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ApduSendInfo() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte[] getCommand()
      获取command, command格式:CLA,INS,P1,P2
      get command, command format:CLA,INS,P1,P2
      byte[] getDataIn()
      设置传入数据
      set data
      int getLc()
      获取lc
      get lc
      int getLe()
      获取le
      get le
      void setCommand(byte[] command)
      设置command, command格式:CLA,INS,P1,P2
      set command, command foramt:CLA,INS,P1,P2
      void setDataIn(byte[] dataIn)
      获取传入数据
      get data
      void setLc(int lc)
      设置lc
      set lc
      void setLe(int le)
      设置le
      set le
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCommand

        public byte[] getCommand()
        获取command, command格式:CLA,INS,P1,P2
        get command, command format:CLA,INS,P1,P2
        Returns:
      • setCommand

        public void setCommand(byte[] command)
        设置command, command格式:CLA,INS,P1,P2
        set command, command foramt:CLA,INS,P1,P2
        Parameters:
        command -
      • getDataIn

        public byte[] getDataIn()
        设置传入数据
        set data
        Returns:
      • setDataIn

        public void setDataIn(byte[] dataIn)
        获取传入数据
        get data
        Parameters:
        dataIn -
      • getLc

        public int getLc()
        获取lc
        get lc
        Returns:
      • setLc

        public void setLc(int lc)
        设置lc
        set lc
      • getLe

        public int getLe()
        获取le
        get le
        Returns:
      • setLe

        public void setLe(int le)
        设置le
        set le
        Parameters:
        le -