class APDULogPanel {
/**
* Called by the service to write an <i>exchanged apdu</i> entry
* to the log.
*
* @param capdu the command apdu including explicit lc and le
* @param rapdu the response apdu including sw
*/
public void exchangedAPDU(Apdu capdu, byte[] rapdu) {
append(Integer.toString(count)); append(".");
append(" Command: "); append(capdu.toString());
append("\n");
append(whiteSpace(count)); append(" ");
append(" Response: "); append(Hex.toHexString(rapdu));
append("\n\n");
count++;
}
}