|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--PKCS15
This class provides for direct access to a PKCS#15 data structure on a card.
The calling application will typically use:
var card = new Card(_scsh3.reader); var p15 = new PKCS15(card); var appllist = p15.readApplicationDirectory(); var aid; for (var i in appllist) { print(i); aid = i; } var at = appllist[aid]; p15.readObjectListForApplication(at); for (var i = 0; i < at.objlist.length; i++) { print(at.objlist[i]); }
Field Summary | |
Object |
card
|
Constructor Summary | |
PKCS15(<Card> card)
Create an object to access the PKCS#15 structure on a card. |
Method Summary | |
PKCS15_ApplicationTemplate[]
|
getAidList()
Return the hash table of application templates |
PKCS15_CIAInfo
|
getCIAInfo(<PKCS15_Path> path)
Reads and return the CIAInfo structure referenced by the PKCS#15 path element. |
PKCS15_ApplicationTemplate[]
|
readApplicationDirectory()
Reads the application directory from EF_DIR. |
ASN1[]
|
readCardObjects(<String> df, <PKCS15_Path> path)
Reads PKCS#15 objects from card file which can be either transparent or record oriented. |
void
|
readObjectListForApplication(<PKCS15_ApplicationTemplate> at)
Reads all CIO objects for an application and adds the CIO objects to the objlist property |
<static> ASN1[]
|
parseObjectList(<ByteString> data)
Parse a list of TLV objects |
Field Detail |
Object card
Constructor Detail |
PKCS15(<Card> card)
card
- the card object to use for card access.
Method Detail |
PKCS15_ApplicationTemplate[] getAidList()
PKCS15_CIAInfo getCIAInfo(<PKCS15_Path> path)
path
- the path to the CIAInfo file
PKCS15_ApplicationTemplate[] readApplicationDirectory()
The method supports linear variable and transparent EFs. It creates an internal table of of applications.
ASN1[] readCardObjects(<String> df, <PKCS15_Path> path)
df
- the current DF in OCF path notation.
path
- the relative or absolute path to the EF
void readObjectListForApplication(<PKCS15_ApplicationTemplate> at)
at
- the application template
<static> ASN1[] parseObjectList(<ByteString> data)
data
- the binary data with TLV objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |