Class EAC20Sim
Object
|
+--EAC20Sim
- class
EAC20Sim
Class implementing a EAC simulator
Defined in eac20sim.js
Constructor Summary |
EAC20Sim()
Create an EAC 2.0 simulation object
|
Method Summary |
ByteString
|
generalAuthenticate(<Number> p1, <Number> p2, <ByteString> data, <Number> le)
Performs a GENERAL AUTHENTICATE command in various steps of the EAC protocol
|
void
|
manageSE(p1, p2, data)
Manage security environment.
|
void
|
reset(<Number> procedure)
Resets the card and all internal variables.
|
ByteString
|
sendApdu(<Number> cla, <Number> ins, <Number> p1, <Number> p2, <Number> p3, <Number> p4)
Send an APDU to the simulation.
|
Object
|
toString()
Displays all internal informations.
|
pacedp
Object pacedp
emptyData
<static> Object emptyData
EAC20Sim
EAC20Sim()
Create an EAC 2.0 simulation object
generalAuthenticate
ByteString generalAuthenticate(<Number> p1, <Number> p2, <ByteString> data, <Number> le)
Performs a GENERAL AUTHENTICATE command in various steps of the EAC protocol
Parameters:
p1
- the P1 parameter from the command APDU
p2
- the P2 parameter from the command APDU
data
- the data part from the command APDU
le
- the Le parameter from the command APDU
manageSE
void manageSE(p1, p2, data)
Manage security environment.
Only the SET variante is supported.
Called internally with INS 22.
reset
void reset(<Number> procedure)
Resets the card and all internal variables.
Parameters:
procedure
- one of Card.RESET_COLD or Card.RESET_WARM - has no relevance
sendApdu
ByteString sendApdu(<Number> cla, <Number> ins, <Number> p1, <Number> p2, <Number> p3, <Number> p4)
Send an APDU to the simulation.
Parameters:
ins
- the instruction byte
p1
- the parameter 1 byte
p2
- the parameter 2 byte
p3
- absent or data or Le
Returns:
the data returned from the simulation or an empty ByteString
toString
Object toString()
Displays all internal informations.
Documentation generated by
JSDoc on Tue Sep 3 22:29:38 2013