Java applet and app id

In my project, I want to write biometric data (for example, a fingerprint template) on a smart card. After some good study, I chose a Java map for my project. But I am new to this platform and know very little about it :(

I also read manuals from Sun, but could not solve some of the confusion:

1.) I just want to read and write biometric data from the card, since I need to create an applet for it on a java card? Can't I use the simple read / write functions of a smart card reader to read / write biometric data in smart card memory?

2.) If I create an applet for a java map, then how am I going to provide it with an applet identifier? The applet ID is unique for each applet. And, how can I find out the applet id for pre-created applets?

3.) What is an Application Protocol Data Unit (APDU)? And how will they help me in reading / writing data on the card?

I know that these are all basic questions, but I'm really confused. So please help the guys!

Thanks in advance.

+5
source share
3 answers

I will try to answer your questions:

1) If the card does not have a pre-installed card that supports writing and reading biometric data, you must create your own applet that performs the task.

2) AID, , . AID :    5 RID + 0..11 PIX

RID - . , RID, , . , , RID , "F" RID, . AID, .

PIX - , , .

3) APDU - , . , .

+4

APDU - "", -.

Javacards ( , javacards) APDU , ( APDU ). javacard - , .

- , ; , "PIV" ( ).

, .

, .

+3

APDU: 00 A4 04 00 0A A0 00 00 00 62 03 01 0C 01 01 CLA INS P1 P2 Lc Le

1st byte: CLA, this is the type of command. For example, 80 means that commands with a global platform are used.

2nd byte: INS, command code.

Third byte: P1, parameter 1.

4th byte: P2, parameter 2.

5th and 6th bytes: data length excluding size length, CLA, P1, P2 and le.

seventh. byte to last byte: data

Last byte: Le, which is usually 00.

See the Global Platform docs for more information. http://globalplatform.org/specificationscard.asp

+1
source

All Articles