How to get JavaCard version on card

前端 未结 3 1190
醉酒成梦
醉酒成梦 2021-01-13 01:19

How to get java card version from card? Is there any way how to get version of JC from the card. Or should I try to install applets with specific for each JC version option

3条回答
  •  野的像风
    2021-01-13 02:07

    short version = JCSystem.getVersion();
    

    The method getVersion() returns the major and minor version of the Java Card API (each part in one byte). There is no method to distinguish between sub-versions (e.g. between 2.2.1 and 2.2.2).

    Only knowing that your chip contains a Java Card runtime environment, there is no means to query more specific information from the chip. (Some chips might expose more specific information though.) In general you should obtain such information from the manufacturer/your supplier.

提交回复
热议问题