What is the standard for loading personalized data onto smartcard

Hi all,

I need to load different sets of initial static binary data onto the card in a way that the applet can use it. Lets say I have 10 different "files" called Data0- to Data9. In the applet I need to address these data as "data(FileNumber) together with a pointer (BytePointer) that can pick one byte from each file.

I am thinking of putting them sequentially into static memory but there might be a better way... Any suggestions would be appreciated!

:-)

[484 byte] By [davendaa] at [2007-11-27 9:55:27]
# 1
To be more spesific...: How can I load a datafile with binary data into the debug environment (JCOP) as a separat file that I can access from my applet?
davendaa at 2007-7-13 0:25:25 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
You want to have this data to be accessible by all applets on-card? You could load it as a library and implement the shareable interface. By checking the AID of the client applet you can limit the access.
lexdabeara at 2007-7-13 0:25:25 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

That sound like a useful solution,

This card will be produced with just the one applet, but with different datafiles, A host application will alter the datafile and load it onto the card.

- How do I load a library containing only data?

- How would I access it from the applet (Do you know of any examplecode)?

Thanks :-)

davendaa at 2007-7-13 0:25:25 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
A library is just a class which does not extend Applet. It has package visibility which you can overcome by making it a shareable interface object. Please refer to the Java Card Runtime Environment spec. . The concept is described there in detail.
lexdabeara at 2007-7-13 0:25:25 > top of Java-index,Java Mobility Forums,Consumer and Commerce...