is jcop is only way to install applet in java card?

痴心易碎 提交于 2019-12-03 16:12:57

The question is good. I see a lot of people that work with smart card for years and cannot still get the picture.

What you read is right JCOP is operating system for smart cards.

Although it is NOT true that you have to use JCOP tool to deploy applets. They might be helpful but it is not the only way. In fact what you need to know is what version of Global Platform is supported by your card. Global Platform is the standard that defines how Card Contend is managed. This includes installation, security concept and so on. For example if your card support GP 2.1.1 you should use this document as a reference:

http://www.win.tue.nl/pinpasjc/docs/Card%20Spec%20v2.1.1%20v0303.pdf

All the tools like gpshell, jcshell are wrapping global platform commands in more user friendly commands, and also implementing the security protocols for you. So you can use whatever tool that supports the GP version of your target card.

I hope this makes it a bit more clear.

Answer to the subject of the question is:

NO.

Have a look at https://github.com/martinpaljak/GlobalPlatform

NXP currently owns JCOP, you should go to them for questions.

  1. Yes, the VM inside a Java Card implementation executes all byte code.
  2. You can use any Global Platform compatible library, although there are some implementation mistakes that could make a difference.
  3. Try it, it should work
  4. Java Card is a standard, and implementations are tested by Oracle, so sending your Applet to another card should work *1

*1 unless you make assumptions that are not cleared up in Java Card, use too much stack or heap memory for that card, use crypto algorithms that are not present, Java Card API's that have not been implemented by the other card, or of course, proprietary JCOP functionality.

The answer to question 1 is "no". You shouldn't rely on the historical bytes "jcop41v22" in the ATR to recognize the type of card. Any Java Card applet can change these bytes.

Q1&Q2: No.It's right that Java Card OpenPlatform (JCOP) is a smart card operating system for the Java Card platform.But it's not the only tool to deploy applet. For example,i'm using PyAPDUTool to send cap file inside the java card.

Q3: Yes,you can use gpshell to send .cap file in your card.

Q4: NO,you can also send your applet to other javacards.

NO. You can take a look at this website "www.javacos.com" . On this the tool of jcide also can get what you want And it is free of charge.Although some function is not very perfect.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!