001 /* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016 017package com.pax.dal.entity; 018 019public class ApduRespInfo { 020 021 private byte[] dataOut; 022 private int lenOut; 023 private byte swA; 024 private byte swB; 025 026 public ApduRespInfo() { 027 this.dataOut = new byte[0]; 028 this.lenOut = 0; 029 this.swA = 0x00; 030 this.swB = 0x00; 031 } 032 033 public ApduRespInfo(byte swA, byte swB, byte[] dataOut, int lenOut) { 034 this.swA = swA; 035 this.swB = swB; 036 this.dataOut = dataOut; 037 this.lenOut = lenOut; 038 } 039 040 /** 041 * <div class="zh"> 获取返回数据 </div> <div class="en"> get data </div> 042 * 043 * @return 044 */ 045 public byte[] getDataOut() { 046 return dataOut; 047 } 048 049 /** 050 * <div class="zh"> 设置返回数据 </div> <div class="en"> set data </div> 051 * 052 * @param dataOut 053 */ 054 public void setDataOut(byte[] dataOut) { 055 this.dataOut = dataOut; 056 } 057 058 /** 059 * <div class="zh"> 获取返回数据长度 </div> <div class="en"> get data length </div> 060 * 061 * @deprecated 062 * @return 063 */ 064 public int getLenOut() { 065 return lenOut; 066 } 067 068 /** 069 * <div class="zh"> 设置返回数据长度 </div> <div class="en"> set data length </div> 070 * 071 * @param lenOut 072 * @deprecated 073 */ 074 public void setLenOut(int lenOut) { 075 this.lenOut = lenOut; 076 } 077 078 /** 079 * <div class="zh"> 获取swA </div> <div class="en"> get swA </div> 080 * 081 * @return 082 */ 083 public byte getSwA() { 084 return swA; 085 } 086 087 /** 088 * <div class="zh"> 设置swA </div> <div class="en"> set swA </div> 089 * 090 * @param swA 091 */ 092 public void setSwA(byte swA) { 093 this.swA = swA; 094 } 095 096 /** 097 * <div class="zh"> 获取swB </div> <div class="en"> get swB </div> 098 * 099 * @return 100 */ 101 public byte getSwB() { 102 return swB; 103 } 104 105 /** 106 * <div class="zh"> 设置swB </div> <div class="en"> set swB </div> 107 * 108 * @param swB 109 */ 110 public void setSwB(byte swB) { 111 this.swB = swB; 112 } 113 114}