简体   繁体   中英

Writing an applet that list all installed applets and packages on the card

I want to write a program that returns AID of all installed or loaded applets and packages on Java card. In the other word, I want to upload an applet that when it received APDU Command= xx xx xx xx for example, returns those AIDs. (It is better to returns their Privileges and Life Cycles also,if possible.)

I searched JC222VMspec , JC222JCREspec and JC222APIspec for a method like LIST_APP for example! But I found nothing. I want to know if is there any way to do this? If so,how? Implementing a method or there is a method?

As a minor question, What is the difference between these three specification? I mean, when I want to write an applet for Java Card, which one of them I must read?

In cards compliant to GlobalPlatform 2.2, there is a mechanism to list all application AIDs without needing to authenticate, for example from a User Interface application.

There is a catch though: this mechanism, described in GlobalPlatform 2.2 Amendment C, applies only to contactless applets. Anyway, my recommendation is to download the spec and have a detailed look at it. It is available from http://www.globalplatform.org/specificationscard.asp (registration required).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM