JCOP sample cards
Does anyone know where I can buy sample cards for JCOP 3.1?
I tried axalto cyberflex-egate 32K card, but it it always report "Status: Wrong data" on upload requests. Someone says this card has on-card byte-code verfier enabled. I appriciate if anyone can share successful experience with JCOP working with real cards.
Thanks.
Hi,
The trick with cyberfelx e-gate is that it indeed has the bytecode verifier. To get your stuff working you need to feed your applet's cap file through a cap transformer that will make it digestable for the on card verifier. The transformer can be downloaded for free from Trusted Logic:
http://www.trusted-logic.com/
What you need is the captransf.jar.
/Woj
I downloaded the captransf.jar from trusted-logic and it can generate a transformed cap file succesfully, e.g. HelloWorld.cap.transf, which I notice has a smaller size than the original size. But when I try to upload the transformed, it still report a "6A 80 Wrong data" error. Am I missing any steps?
Thanks.
Cyberflex cards also seem to be senstive to the way the applet is loaded, namely:
1. If you use JCOP toolset to do this, it skips some cap file components when loading - cyberflex cards don't accept this.
2. The installForLoad gp command needs to get a proper parameter data (the size of the cap file data amongst other things).
I suggest you go to:
http://www.musclecard.com/musclecard/index.html
and find "MuscleCard Applet Loader", there you can look in the source how this is done.
To make the story short: you won't be able to use JCOP toolset for this. You would have to write your own loader based on the JCOP library.
/Woj