Class PKCS15

Object
   |
   +--PKCS15

class 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]);
 }
 

Defined in p15classes.js


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

card

Object card

Constructor Detail

PKCS15

PKCS15(<Card> card)

Method Detail

getAidList

PKCS15_ApplicationTemplate[] getAidList()

getCIAInfo

PKCS15_CIAInfo getCIAInfo(<PKCS15_Path> path)

readApplicationDirectory

PKCS15_ApplicationTemplate[] readApplicationDirectory()

readCardObjects

ASN1[] readCardObjects(<String> df, <PKCS15_Path> path)

readObjectListForApplication

void readObjectListForApplication(<PKCS15_ApplicationTemplate> at)

parseObjectList

<static> ASN1[] parseObjectList(<ByteString> data)


Documentation generated by JSDoc on Tue Apr 15 22:10:49 2025