Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Doubts about Package AID and Package token

JavaCard Applet Development Related Questions and Answers.
Girr16
Posts: 10
Joined: Tue Jun 14, 2016 2:23 am
Points :114
Contact:

Doubts about Package AID and Package token

Post by Girr16 » Fri Jun 24, 2016 5:53 am

I am a little confused about two concepts: Package AID and Package token. To me, they play the same ID role. Is there some difference between them? Could anyone clarify these concepts for me?

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

Re: Doubts about Package AID and Package token

Post by Thelogan » Fri Jun 24, 2016 6:08 am

I will give you an example for you to understand:

Code: Select all

Package A: 
AID: 11 12 13 14 15 16 -->Token 0
Class A1
Field f1,f2,f3

Package B;
import Package
PackageA.ClassA1.f1;
PackageA.ClassA1.f2;
PackageA.ClassA1.f3;


So, if you use Token "0" , the bytecode could be:
0.0.1
0.0.2
0.0.3

instead, if you use package - AID, that would be:
111213141516.x
111213141516.y
111213141516.z

A token is a number so it is more efficient than a byte array.

Girr16
Posts: 10
Joined: Tue Jun 14, 2016 2:23 am
Points :114
Contact:

Re: Doubts about Package AID and Package token

Post by Girr16 » Fri Jun 24, 2016 11:17 pm

How can I set the token value? If package tokens are overlapped, will it cause exception?

Thelogan
Posts: 40
Joined: Thu Aug 20, 2015 4:48 am
Points :250
Contact:

Re: Doubts about Package AID and Package token

Post by Thelogan » Fri Jun 24, 2016 11:38 pm

The token are generated by the converter that has access to the EXP files of imports etc. And the offcard verifier should also be able to check for this as well, so overlapped tokens can not happen.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 68 guests

JavaCard OS : Disclaimer