1
votes

If I write a Java Card applet that emulates one or more protocols of the same ISO standard, is there a way to have the applet "auto selected" by protocols which don't use select, or don't know what to select? Because otherwise I'm not going to bother spending ten to twenty dollars for a test device, and god knows I'd need more than one.

3

3 Answers

4
votes

You'd better looked through Global Platform specification first. When you install your applet, you can set it as the defaultselect applet. Two ways to do this.

1- Recommend that you download JCIDE-- a Free java card applet development. Here is how to set the defaultselect applet by a simple operation .

2- There is also a handy tool that can meet your need. You can download it from here

enter image description here

Hope it helps.

2
votes

Yes, you can install your applet as "default selected", which is basicaly what you want.

Have a look at Global Platform specification, especially parameters of INSTALL [for install] command. There is one flag in applet privileges you have to set.

If you work with Eclipse JCOP Tools, you will easily set the flag using GUI Applet Install Properties:

enter image description here

2
votes

Yes.
Javacard Applets are usually always deployed on a smartcard with the underlying Global Platform standard. Global Platform is used to deploy, maintain and manage JavaCard applets. When installing a Java Card applet you can set an option/ flag called defaultselect. Only one applet can have the default selected option. Whenever an ATR/ATS is received the JCRE internally selects the applet with default-select option. Any APDUs incoming are directly handed to the applet unless a select APDU selects another applet registered in the JCRE.