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.

[345 byte] By [bspritsa] at [2007-9-25]
«« jspx
# 1
http://smartcardfocus.comAll the best,'Socx
socxa at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 2
what's the product name of the card? I can not see anyone says specificly support JCOP.
bspritsa at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 3
This might be more specific.Check out the specification of the first card. http://www.motechno.com/javacards.0.htmlSocx
socxa at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 4
Look at this location for cheap IBM JCOP cards: http://www.smartcardsource.com/cards.htm
bf2fightera at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 5

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

Woja at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 6

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.

bspritsa at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 7
Hello,I attempted it and got the same result.
socxa at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 8

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

Woja at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...
# 9
Thanks for all your responses. I've bought another JCOP card and will forget about the Cyberflex mess.
bspritsa at 2007-7-15 > top of java,Java Mobility Forums,Consumer and Commerce...