Edit a Simulator Settings Profile
To edit Java_Card_Simulator_1 follow these
steps:
- In Eclipse, from the Window menu, select Preferences.
- In the Preferences dialog, click on Java Card Simulators and select Java_Card_Simulator_1.
- Press the Edit... button.
- In the edit window dialog, set Java Card Simulator Path to JC_HOME_SIMULATOR.
- Upon first use, you will notice an error below the dialog title because
the configuration file is not specified. A valid configuration file must be entered
in the GP ISD AND SCP03 Keys Config File: field. A template
file can be found here: <absolute-path-to-jc-simulator>
/samples/client.config.properties. This file is also used by the samples (refer to the How to Run the Samples section) and has to be modified to also include:- A valid ISD entry (Note: No template line is present in this template file)
- A valid SCP03 key set injected into simulator binary (see Configuring the Java Card Development Kit Simulator)
The configuration file must at least contain the following entries:
ISD=<IssuerSecurityDomainAID> <IssuerSecurityDomainAID>_scp03enc_<KVN>=<k_enc> <IssuerSecurityDomainAID>_scp03mac_<KVN>=<k_mac> <IssuerSecurityDomainAID>_scp03dek_<KVN>=<k_dek>For example, the following entries match the information in the example provided in Configuring the Java Card Development Kit Simulator when the Java Card Development Kit Simulator is provisioned for the first time.
ISD=A000000151000000 A000000151000000_scp03enc_10=1111111111111111111111111111111111111111111111111111111111111111 A000000151000000_scp03mac_10=2222222222222222222222222222222222222222222222222222222222222222 A000000151000000_scp03dek_10=3333333333333333333333333333333333333333333333333333333333333333 - Press the OK button.
Note:
If the Simulator Properties window displays an error complaining about "Simulator Unique ID", you can resolve the error by closing the window, then reloading the Java Card View and re-opening Simulator Properties. Java Card View can be reloaded by the Reload the view button from the View toolbar, or by right-clicking on the top tree item and then selecting the Reload menu.