Class Index | File Index

Classes


Class EMV

This class implements functions for the EMV tansaction process
Defined in: emv.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
EMV(card, crypto)
EMV class constructor
Method Summary
Method Attributes Method Name and Description
 
Add elements from ByteString into the cardDE array
 
createDOL(dol)
Create a Data Object List related ByteString
 
decodeFCI(fci)
Decode the A5 Template from the FCI
 
Send GENERATE APPLICATION CRYPTOGRAM APDU
 
Return AID of application with highest priority or null if no PSE defined
 
Return cardDE
 
Return the Data Authentication Input
 
Send GET PROCESSING OPTION APDU
 
Return array of PSE entries or null if none defined
 
Inform the ICC that a new transaction is beginning.
 
log(msg)
Log message if verbosity is enabled
 
Read application data as indicated in the Application File Locator.
 
readRecord(sfi, recno)
Send READ RECORD APDU
 
select(dfname, first)
Send SELECT APDU
 
selectADF(aid)
Select application and return FCI
 
selectPSE(contactless)
Select and read Payment System Environment on either contact or contactless card
 
Try a list of predefined AID in order to select an application
Class Detail
EMV(card, crypto)
EMV class constructor
Parameters:
{object} card
the card object
{object} crypto
the crypto object
Method Detail
addCardDEFromList(tlvlist)
Add elements from ByteString into the cardDE array
Parameters:
{TLVList} tlvlist

{ByteString} createDOL(dol)
Create a Data Object List related ByteString
Parameters:
{object} dol
the Data Object List
Returns:
ByteString related to the DOL

decodeFCI(fci)
Decode the A5 Template from the FCI
Parameters:
{ByteString} fci
the File Control Informations

generateAC()
Send GENERATE APPLICATION CRYPTOGRAM APDU

{ByteString} getAID()
Return AID of application with highest priority or null if no PSE defined
Returns:
the AID

{Array} getCardDataElements()
Return cardDE
Returns:
the cardDE array

{ByteString} getDAInput()
Return the Data Authentication Input
Returns:
the Data Authentication Input

{ByteString} getProcessingOptions(pdol)
Send GET PROCESSING OPTION APDU
Parameters:
{ByteString} pdol
the Processing Data Object List
Returns:
the Application Interchange Profile and the Application File Locator

{Array} getPSE()
Return array of PSE entries or null if none defined
Returns:
the PSE array

initApplProc()
Inform the ICC that a new transaction is beginning. Store AIP and AFL into the cardDE array.

log(msg)
Log message if verbosity is enabled
Parameters:
{String} msg
the message to log

readApplData()
Read application data as indicated in the Application File Locator. Collect input to data authentication.

{ByteString} readRecord(sfi, recno)
Send READ RECORD APDU
Parameters:
{number} sfi
the Short File Identifier
{number} recno
the record number
Returns:
the corresponding record or empty ByteString if no data was read

{ByteString} select(dfname, first)
Send SELECT APDU
Parameters:
{object} dfname
the PSE AID
{boolean} first
the selection options
Returns:
the FCI

selectADF(aid)
Select application and return FCI
Parameters:
{ByteString} aid
the Application Identifier

selectPSE(contactless)
Select and read Payment System Environment on either contact or contactless card
Parameters:
{boolean} contactless
the PSE AID

tryAID()
Try a list of predefined AID in order to select an application

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