开发者

Java card function to get a smart cards GUID/UUID?

开发者 https://www.devze.com 2023-02-02 19:08 出处:网络
I am trying to write a simple javacard app that allows you to read the cards GUID/UUID using a simple APDU command.

I am trying to write a simple javacard app that allows you to read the cards GUID/UUID using a simple APDU command.

As I have come to understand each smart card contains a GUID which is unique to the card. This GUID should be retrievable using a standard APDU command.

Does any one know h开发者_如何学编程ow to do this? Maby have example projects or even just a java function that does this?

Best regards

A.E


AFAIK GUID/UUID is not a standard card instance identification mean applicable for any smartcard product. For example, SIM cards are rather identified using the content of a file EF_ICCID (ICC Identification) (ETSI TS 102 221 V6.15.0 (2010-02)) so you can get it through normal UICC file access APIs. The ATR is used for card type identification (ISO/IEC 7816-4). GUID/UUID presence on card is specific to some smartcard manufacturer/product or smartcard application.

So for GUID/UUID you should identify at least the product and the manufacturer doc or someone working with that specific card can answer you if this information is retrievable and how (using standard APIs - e.g. if it's stored in a EF- or proprietary) from an applet.

From terminal side this is usually done using SELECT/READ* or GET DATA APDUs after some security verifications.


GUID is not necessary to be a smart card identifier. Actually there could be no unique identifier in a smart card. GUID is always the result of some custom implementation, for example, store the GUID number in a read only file.

I'm not sure of class byte 0xFF, GSM is A0, 00/8X is used for UICC, 8X is used for GP, INS CA is usually GETDATA

0

精彩评论

暂无评论...
验证码 换一张
取 消