Package org.nfctools.scio

Examples of org.nfctools.scio.Response


    }
    else if (command.getInstruction() == Apdu.INS_UPDATE_BINARY) {
      return writeBinary(command);
    }
    else if (command.getInstruction() == Apdu.INS_INTERNAL_AUTHENTICATE_ACS) {
      return new Response(0x90, 0, null);
    }
    else if (command.getInstruction() == Apdu.INS_EXTERNAL_AUTHENTICATE) {
      return new Response(0x90, 0, null);
    }
    throw new RuntimeException("Unknown command: " + command.getInstruction());
  }
View Full Code Here


    int page = command.getP2();
    for (int offset = 0; offset < data.length; offset = offset + memoryMap.getBytesPerPage()) {
      memoryMap.setPage(page, data, offset);
      page++;
    }
    return new Response(0x90, 0, null);
  }
View Full Code Here

      }
    }
    catch (IOException e) {
      throw new RuntimeException(e);
    }
    return new Response(0x90, 0x00, out.toByteArray());
  }
View Full Code Here

TOP

Related Classes of org.nfctools.scio.Response

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.