Class SimpleCardSimulator
Class implementing a simple ISO 7816-4 card simulation
Defined in: simplecard.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Create a card simulation object
|
Method Attributes | Method Name and Description |
---|---|
Initialize card runtime
|
|
<static> |
SimpleCardSimulator.newInstance()
Create new simulation and register with existing or newly created adapter singleton.
|
processAPDU(capdu)
Process an inbound APDU
|
|
reset(type)
Respond to reset request
|
Method Detail
initialize()
Initialize card runtime
<static>
SimpleCardSimulator.newInstance()
Create new simulation and register with existing or newly created adapter singleton.
{ByteString}
processAPDU(capdu)
Process an inbound APDU
- Parameters:
- {ByteString} capdu
- the command APDU
- Returns:
- the response APDU
{ByteString}
reset(type)
Respond to reset request
- Parameters:
- {Number} type
- reset type (One of Card.RESET_COLD or Card.RESET.WARM)
- Returns:
- answer to reset