Class Index | File Index

Classes


Class eIDCommandInterpreter

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

Class Summary
Constructor Attributes Constructor Name and Description
 
eIDCommandInterpreter(fileSelector)
Create a command interpreter
Method Summary
Method Attributes Method Name and Description
 
Performs a COMPUTE DIGITAL SIGNATURE command
 
Intercept MANAGE SE for PACE to determine status of PIN
 
dispatch(apdu, ins)
Dispatch to command handler based in INS byte in APDU
 
Performs an EXTERNAL AUTHENTICATE command
 
Performs an EXTERNAL AUTHENTICATE command for BAC
 
Process EXTERNAL AUTHENTICATE command to perform terminal authentication
 
Process GENERAL AUTHENTICATE command
 
Performs a TERMINATE(Key) command
 
Process GET CHALLENGE command
 
Determine the current date
 
Return terminal role from CHAT
 
Determine if the terminal has been authenticated
 
Locate public key either in trust anchor, trusted DVCA or trusted terminal
 
Performs an ACTIVATE/DEACTIVATE command
 
Process GENERAL AUTHENTICATE command to perform chip authentication in version 1
 
Process GENERAL AUTHENTICATE command to perform chip authentication in version 2
 
Process GENERAL AUTHENTICATE command to perform PACE
 
Process GENERAL AUTHENTICATE command to perform restricted identification
 
Performs a RESET RETRY COUNTER command for PACE keys
 
setDate(date)
Set the current date
 
terminate(the)
Performs a TERMINATE command
 
Performs a TERMINATE(Key) command
 
Performs a TERMINATE(PIN) command
 
Update EF.CVCA to indicate new trust anchor for id-IS
 
Process VERIFY(AD)
 
Process PSO VERIFY CERTIFICATE command
Class Detail
eIDCommandInterpreter(fileSelector)
Create a command interpreter
Parameters:
{FileSelector} fileSelector
the file selector object
Method Detail
computeDigitalSignature(the)
Performs a COMPUTE DIGITAL SIGNATURE command
Parameters:
{APDU} the
apdu

determinePINStatus(the)
Intercept MANAGE SE for PACE to determine status of PIN
Parameters:
{APDU} the
apdu

dispatch(apdu, ins)
Dispatch to command handler based in INS byte in APDU
Parameters:
{APDU} apdu
the apdu
{Number} ins
the normalized instruction code

externalAuthenticate(the)
Performs an EXTERNAL AUTHENTICATE command
Parameters:
{APDU} the
apdu

externalAuthenticateForBAC(the)
Performs an EXTERNAL AUTHENTICATE command for BAC
Parameters:
{APDU} the
apdu

externalAuthenticateForTA(the, se)
Process EXTERNAL AUTHENTICATE command to perform terminal authentication
Parameters:
{APDU} the
apdu
{SecurityEnvironment} se
the security environment for external authentication

generalAuthenticate(the)
Process GENERAL AUTHENTICATE command
Parameters:
{APDU} the
apdu

generateAsymmetricKeyPair(the)
Performs a TERMINATE(Key) command
Parameters:
{APDU} the
apdu

getChallenge(the)
Process GET CHALLENGE command
Parameters:
{APDU} the
apdu

{Date} getDate()
Determine the current date
Returns:
the current Date

{ByteString} getTerminalRole()
Return terminal role from CHAT
Returns:
the object identifier value

{boolean} isAuthenticatedTerminal()
Determine if the terminal has been authenticated
Returns:
true if authenticated

{object} locatePublicKey(keyid)
Locate public key either in trust anchor, trusted DVCA or trusted terminal
Parameters:
{PublicKeyReference} keyid
the public key reference to look for
Returns:
object with properties level (issuer is 0-CVCA, 1-DVCA or 2-Terminal) and anchor (Trust Anchor)

manageActiveState(the)
Performs an ACTIVATE/DEACTIVATE command
Parameters:
{APDU} the
apdu

performChipAuthenticationV1(the)
Process GENERAL AUTHENTICATE command to perform chip authentication in version 1
Parameters:
{APDU} the
apdu

performChipAuthenticationV2(the)
Process GENERAL AUTHENTICATE command to perform chip authentication in version 2
Parameters:
{APDU} the
apdu

performPACE(the)
Process GENERAL AUTHENTICATE command to perform PACE
Parameters:
{APDU} the
apdu

performRestrictedIdentification(the)
Process GENERAL AUTHENTICATE command to perform restricted identification
Parameters:
{APDU} the
apdu

resetRetryCounterPACE(the)
Performs a RESET RETRY COUNTER command for PACE keys
Parameters:
{APDU} the
apdu

setDate(date)
Set the current date
Parameters:
{Date} date
the new date

terminate(the)
Performs a TERMINATE command
Parameters:
{APDU} the
apdu

terminateKey(the)
Performs a TERMINATE(Key) command
Parameters:
{APDU} the
apdu

terminatePIN(the)
Performs a TERMINATE(PIN) command
Parameters:
{APDU} the
apdu

updateEFCVCA(date)
Update EF.CVCA to indicate new trust anchor for id-IS
Parameters:
{Date} date
the new date

verifyAuxiliaryData(the)
Process VERIFY(AD)
Parameters:
{APDU} the
apdu

verifyCertificate(the)
Process PSO VERIFY CERTIFICATE command
Parameters:
{APDU} the
apdu

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jun 30 2014 21:40:00 GMT+0200 (CEST)