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 voidtraceAnswerToReset(SlotChannel sc, CardID cardID)Trave resetvoidtraceCommandAPDU(SlotChannel sc, CommandAPDU capdu)Trace a command APDU send over the defined slot channelvoidtraceResponseAPDU(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:APDUTracerTrace a command APDU send over the defined slot channel- Specified by:
traceCommandAPDUin 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:APDUTracerTrace a response APDU received over the defined slot channel- Specified by:
traceResponseAPDUin 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:APDUTracerTrave reset- Specified by:
traceAnswerToResetin interfaceAPDUTracer- Parameters:
sc- the slot channel or null if unknowncardID- the CardID of the card, containing the ATR
-
-