简体   繁体   English

编写一个列出卡上所有已安装的小程序和软件包的小程序

[英]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. 我想编写一个程序,返回Java卡上所有已安装或已加载的小程序和程序包的AID。 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. 换句话说,我要上载一个小程序,例如当它收到APDU Command = xx xx xx xx ,返回这些AID。 (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! 我在JC222VMspecJC222JCREspecJC222APIspec中搜索了类似LIST_APP的方法! 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? 我的意思是,当我想为Java Card编写applet时,必须阅读其中哪一个?

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. 在符合GlobalPlatform 2.2的卡中,有一种机制可以列出所有应用程序AID,而无需进行身份验证,例如从用户界面应用程序进行身份验证。

There is a catch though: this mechanism, described in GlobalPlatform 2.2 Amendment C, applies only to contactless applets. 但是有一个陷阱:GlobalPlatform 2.2修订C中描述的这种机制仅适用于非接触式applet。 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). 可从http://www.globalplatform.org/specificationscard.asp (需要注册)获得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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