Package de.cardcontact.opencard.utils
Class StreamingAPDUTracer
- java.lang.Object
-
- de.cardcontact.opencard.utils.StreamingAPDUTracer
-
- All Implemented Interfaces:
APDUTracer
public class StreamingAPDUTracer extends java.lang.Object implements APDUTracer
Class implementing the APDUTracer interface to trace the content of a command or response APDU into an associated stream.
-
-
Constructor Summary
Constructors Constructor Description StreamingAPDUTracer(java.io.PrintStream stream)
Create trace object associated with stream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
traceAnswerToReset(SlotChannel sc, CardID cardID)
Trave resetvoid
traceCommandAPDU(SlotChannel sc, CommandAPDU capdu)
Trace a command APDU send over the defined slot channelvoid
traceResponseAPDU(SlotChannel sc, ResponseAPDU rapdu)
Trace a response APDU received over the defined slot channel
-
-
-
Method Detail
-
traceCommandAPDU
public void traceCommandAPDU(SlotChannel sc, CommandAPDU capdu)
Description copied from interface:APDUTracer
Trace a command APDU send over the defined slot channel- Specified by:
traceCommandAPDU
in interfaceAPDUTracer
- Parameters:
sc
- the slot channel or null if unknowncapdu
- the command APDU- See Also:
APDUTracer.traceCommandAPDU(opencard.core.terminal.SlotChannel, opencard.core.terminal.CommandAPDU)
-
traceResponseAPDU
public void traceResponseAPDU(SlotChannel sc, ResponseAPDU rapdu)
Description copied from interface:APDUTracer
Trace a response APDU received over the defined slot channel- Specified by:
traceResponseAPDU
in interfaceAPDUTracer
- Parameters:
sc
- the slot channel or null if unknownrapdu
- the response APDU- See Also:
APDUTracer.traceResponseAPDU(opencard.core.terminal.SlotChannel, opencard.core.terminal.ResponseAPDU)
-
traceAnswerToReset
public void traceAnswerToReset(SlotChannel sc, CardID cardID)
Description copied from interface:APDUTracer
Trave reset- Specified by:
traceAnswerToReset
in interfaceAPDUTracer
- Parameters:
sc
- the slot channel or null if unknowncardID
- the CardID of the card, containing the ATR
-
-