Class CommandInterpreter

Object
   |
   +--CommandInterpreter

class CommandInterpreter


Class implementing a command interpreter that handles ISO 7816-4 command APDUs
Defined in commandinterpreter.js


Field Summary
 Object fileSelector
          
 
Constructor Summary
CommandInterpreter(<FileSelector> fileSelector)
            Create a command interpreter
 
Method Summary
 void changeReferenceData(apdu)
           Performs a CHANGE REFERENCE DATA command
 void dispatch(<APDU> apdu, <Number> ins)
           Dispatch to command handler based on instruction code
 void handleSecMsgCommandAPDU(<APDU> apdu)
           Process a secure messaging command APDU, if secure messaging is active.
 void handleSecMsgResponseAPDU(<APDU> apdu)
           Process a secure messaging response APDU, if secure messaging is active
 boolean hasSecureChannel()
           Return status of secure channel
 void manageSecurityEnvironment(<APDU> apdu)
           Process a MANAGE SECURITY ENVIRONMENT APDU
 void processAPDU(<APDU> apdu)
           Process a command APDU
 void readBinary(<APDU> apdu)
           Process a READ BINARY APDU
 void readRecord(<APDU> apdu)
           Process a READ RECORD APDU
 void resetRetryCounter(apdu)
           Performs a RESET RETRY COUNTER command
 void setSecureChannel(<SecureChannel> secureChannel)
           Set secure channel
 void updateBinary(<APDU> apdu)
           Process an UPDATE BINARY APDU
 void verify(apdu)
           Performs a VERIFY command

Field Detail

fileSelector

Object fileSelector

Constructor Detail

CommandInterpreter

CommandInterpreter(<FileSelector> fileSelector)

Method Detail

changeReferenceData

void changeReferenceData(apdu)

dispatch

void dispatch(<APDU> apdu, <Number> ins)

handleSecMsgCommandAPDU

void handleSecMsgCommandAPDU(<APDU> apdu)

handleSecMsgResponseAPDU

void handleSecMsgResponseAPDU(<APDU> apdu)

hasSecureChannel

boolean hasSecureChannel()

manageSecurityEnvironment

void manageSecurityEnvironment(<APDU> apdu)

processAPDU

void processAPDU(<APDU> apdu)

readBinary

void readBinary(<APDU> apdu)

readRecord

void readRecord(<APDU> apdu)

resetRetryCounter

void resetRetryCounter(apdu)

setSecureChannel

void setSecureChannel(<SecureChannel> secureChannel)

updateBinary

void updateBinary(<APDU> apdu)

verify

void verify(apdu)


Documentation generated by JSDoc on Tue Sep 3 22:29:41 2013