|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--EMV
This class implements functions for the EMV tansaction process
Defined in emv.js
Field Summary | |
Object |
card
|
Object |
cardDE
|
Object |
crypto
|
Object |
terminalDE
|
Object |
verbose
|
<static> Object |
AFL
|
<static> Object |
AID
|
<static> Object |
AIDLIST
|
<static> Object |
AIP
|
<static> Object |
CAPKI
|
<static> Object |
CDOL1
|
<static> Object |
CDOL2
|
<static> Object |
DFNAME
|
<static> Object |
DIRECTORY_ENTRY
|
<static> Object |
FCI
|
<static> Object |
FCI_ISSUER
|
<static> Object |
FCI_ISSUER_DISCRETIONARY_DATA
|
<static> Object |
INS_GET_PROCESSING_OPTIONS
|
<static> Object |
LABEL
|
<static> Object |
PDOL
|
<static> Object |
PRIORITY
|
<static> Object |
PSE1
|
<static> Object |
PSE2
|
<static> Object |
RMTF1
|
<static> Object |
RMTF2
|
<static> Object |
SDATL
|
<static> Object |
SFI
|
<static> Object |
TAGLIST
|
<static> Object |
TEMPLATE
|
<static> Object |
UN
|
Constructor Summary | |
EMV(<object> card, <object> crypto)
EMV class constructor |
Method Summary | |
void
|
addCardDEFromList(<TLVList> tlvlist)
Add elements from ByteString into the cardDE array |
ByteString
|
createDOL(<object> dol)
Create a Data Object List related ByteString |
void
|
decodeFCI(<ByteString> fci)
Decode the A5 Template from the FCI |
void
|
generateAC()
Send GENERATE APPLICATION CRYPTOGRAM APDU |
ByteString
|
getAID()
Return AID of application with highest priority or null if no PSE defined |
Array
|
getCardDataElements()
Return cardDE |
ByteString
|
getDAInput()
Return the Data Authentication Input |
ByteString
|
getProcessingOptions(<ByteString> pdol)
Send GET PROCESSING OPTION APDU |
Array
|
getPSE()
Return array of PSE entries or null if none defined |
void
|
initApplProc()
Inform the ICC that a new transaction is beginning. |
void
|
log(<String> msg)
Log message if verbosity is enabled |
void
|
readApplData()
Read application data as indicated in the Application File Locator. |
ByteString
|
readRecord(<number> sfi, <number> recno)
Send READ RECORD APDU |
ByteString
|
select(<object> dfname, <boolean> first)
Send SELECT APDU |
void
|
selectADF(<ByteString> aid)
Select application and return FCI |
void
|
selectPSE(<boolean> contactless)
Select and read Payment System Environment on either contact or contactless card |
void
|
tryAID()
Try a list of predefined AID in order to select an application |
Field Detail |
Object card
Object cardDE
Object crypto
Object terminalDE
Object verbose
<static> Object AFL
<static> Object AID
<static> Object AIDLIST
<static> Object AIP
<static> Object CAPKI
<static> Object CDOL1
<static> Object CDOL2
<static> Object DFNAME
<static> Object DIRECTORY_ENTRY
<static> Object FCI
<static> Object FCI_ISSUER
<static> Object FCI_ISSUER_DISCRETIONARY_DATA
<static> Object INS_GET_PROCESSING_OPTIONS
<static> Object LABEL
<static> Object PDOL
<static> Object PRIORITY
<static> Object PSE1
<static> Object PSE2
<static> Object RMTF1
<static> Object RMTF2
<static> Object SDATL
<static> Object SFI
<static> Object TAGLIST
<static> Object TEMPLATE
<static> Object UN
Constructor Detail |
EMV(<object> card, <object> crypto)
card
- the card object
crypto
- the crypto object
Method Detail |
void addCardDEFromList(<TLVList> tlvlist)
tlvlist
-
ByteString createDOL(<object> dol)
dol
- the Data Object List
void decodeFCI(<ByteString> fci)
fci
- the File Control Informations
void generateAC()
ByteString getAID()
Array getCardDataElements()
ByteString getDAInput()
ByteString getProcessingOptions(<ByteString> pdol)
pdol
- the Processing Data Object List
Array getPSE()
void initApplProc()
void log(<String> msg)
msg
- the message to log
void readApplData()
ByteString readRecord(<number> sfi, <number> recno)
sfi
- the Short File Identifier
recno
- the record number
ByteString select(<object> dfname, <boolean> first)
dfname
- the PSE AID
first
- the selection options
void selectADF(<ByteString> aid)
aid
- the Application Identifier
void selectPSE(<boolean> contactless)
contactless
- the PSE AID
void tryAID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |