class ApduResponse implements Serializable {

  @Override
  public String toString() {
    String prefix;
    if (isSuccessful()) {
      prefix = "ApduResponse: SUCCESS, RAWDATA = ";
    } else {
      prefix = "ApduResponse: FAILURE, RAWDATA = ";
    }
    return prefix + ByteArrayUtil.toHex(this.bytes);
  }

  public  ApduResponse(byte[] buffer, Set<Integer> successfulStatusCodes);

}