Lines Matching refs:command
82 ("Manage channel command not allowed, use openLogicalChannel()");
86 public ResponseAPDU transmit(CommandAPDU command) throws CardException {
89 byte[] commandBytes = command.getBytes();
94 public int transmit(ByteBuffer command, ByteBuffer response) throws CardException {
97 if ((command == null) || (response == null)) {
103 if (command == response) {
105 ("command and response must not be the same object");
111 byte[] commandBytes = new byte[command.remaining()];
112 command.get(commandBytes);
155 private byte[] doTransmit(byte[] command) throws CardException {
156 // note that we modify the 'command' array in some cases, so it must
159 checkManageChannel(command);
160 setChannel(command);
161 int n = command.length;
164 if (t0 && (n >= 7) && (command[4] == 0)) {
169 int lc = command[4] & 0xff;
175 lc = ((command[5] & 0xff) << 8) | (command[6] & 0xff);
189 (card.cardId, card.protocol, command, 0, n);
194 // Resend command using SW2 as short Le field
195 command[n - 1] = response[1];
199 // Issue a GET RESPONSE command with the same CLA
204 command[1] = (byte)0xC0;
205 command[2] = 0;
206 command[3] = 0;
207 command[4] = response[rn - 1];