public class LoggingCardTerminal
extends javax.smartcardio.CardTerminal
Dump APDU-s to a file for automatic playback and inspection
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingCardTerminal.LoggingCard |
| Modifier and Type | Field and Description |
|---|---|
protected PrintStream |
dump |
protected PrintStream |
log |
protected javax.smartcardio.CardTerminal |
terminal |
| Modifier and Type | Method and Description |
|---|---|
javax.smartcardio.Card |
connect(String arg0) |
static LoggingCardTerminal |
getInstance(javax.smartcardio.CardTerminal term) |
static LoggingCardTerminal |
getInstance(javax.smartcardio.CardTerminal term,
OutputStream dump) |
String |
getName() |
boolean |
isCardPresent() |
boolean |
waitForCardAbsent(long arg0) |
boolean |
waitForCardPresent(long arg0) |
protected final javax.smartcardio.CardTerminal terminal
protected final PrintStream log
protected final PrintStream dump
public static LoggingCardTerminal getInstance(javax.smartcardio.CardTerminal term)
public static LoggingCardTerminal getInstance(javax.smartcardio.CardTerminal term, OutputStream dump)
public javax.smartcardio.Card connect(String arg0) throws javax.smartcardio.CardException
connect in class javax.smartcardio.CardTerminaljavax.smartcardio.CardExceptionpublic String getName()
getName in class javax.smartcardio.CardTerminalpublic boolean isCardPresent()
throws javax.smartcardio.CardException
isCardPresent in class javax.smartcardio.CardTerminaljavax.smartcardio.CardExceptionpublic boolean waitForCardAbsent(long arg0)
throws javax.smartcardio.CardException
waitForCardAbsent in class javax.smartcardio.CardTerminaljavax.smartcardio.CardExceptionpublic boolean waitForCardPresent(long arg0)
throws javax.smartcardio.CardException
waitForCardPresent in class javax.smartcardio.CardTerminaljavax.smartcardio.CardExceptionCopyright © 2019. All rights reserved.