public abstract class StubSmartCard
extends java.lang.Object
| Constructor and Description |
|---|
StubSmartCard() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHexCommand(java.lang.String command,
java.lang.String response)
Add more simulated commands to the card Stub
|
void |
closePhysicalChannel() |
abstract byte[] |
getATR()
Getter for ATR
|
abstract java.lang.String |
getCardProtocol()
Gets the card protocol supported by the card
|
boolean |
isPhysicalChannelOpen() |
void |
openPhysicalChannel() |
byte[] |
processApdu(byte[] apduIn)
Return APDU Response to APDU Request
|
void |
removeHexCommand(java.lang.String command)
Remove simulated commands from the card Stub
|
public abstract byte[] getATR()
public boolean isPhysicalChannelOpen()
public void openPhysicalChannel()
public void closePhysicalChannel()
public abstract java.lang.String getCardProtocol()
public void addHexCommand(java.lang.String command,
java.lang.String response)
command - hexadecimal command to react toresponse - hexadecimal response to be sent in reaction to commandpublic void removeHexCommand(java.lang.String command)
command - hexadecimal command to be removedpublic byte[] processApdu(byte[] apduIn)
apduIn - commands to be processedorg.eclipse.keyple.core.service.exception.KeypleReaderIOException - if the communication with the reader or the card has failed