Smart Card Soul Java card 2.0

Source: Internet
Author: User

Java card is an intelligent card that can run Java program. For this new Java platform, sun's branch oft developed the Java card 2.0 API technical specifications. As a result, some authorized parties are implementing this API on the smart card. Java cards to be compiled and 2.0 concurrently should be in the procedural order. Developers must understand the internal meanings of Java cards from the physical structure, that is, the internal core class, and how to solve the issue of smart card should use the process sequence.

What is smart card? ---- The smart card is the same as the credit card, and the storage and processing information can be stored through the electric circuit that is embedded into the plastic material base. Smart card owners can be divided into two categories: the package contains an intelligent card with a microprocessor and reading, writing, and computing power (such as a small-sized micro-brain ); another type is the internal memory card without a microprocessor. It can only store information. ---- All smart cards include three types of storage devices: persistent non-mutable memory) persistent mutable memory and Non-permanent mutable memory ). Among the three storage devices, Rom, EEPROM, and RAM are most commonly used.

---- ISO 7816 1st ~ According to the seven rules, a set of standards covering all aspects of smart card are defined. ISO 7816 includes: Properties (1st parts), scale and touch point (2nd parts), electronic sub-letter number and transfer agreement (3rd parts), inter-industry Exchange Order (4th parts) the process sequence identifier (5th parts), the inter-industry data element (6th parts), and the inter-industry scql Directive (7th parts) should be used ). ---- Figure 1 shows the properties of smart card.

---- Smart cards do not include power sources, display screens, or key disks. It uses eight touch points to communicate with other countries through the communication interface of the string line. Figure 2 shows the trigger of smart card. ---- Smart card is inserted into the card connected to another computer for receiving and backup (CAD, card acceptance device ). The Access Gateway and the Access Gateway can be called the final end, the read controller, and the Access Gateway (IFD, interface device ). They all have the same basic functions, that is, providing power sources to smart systems and establishing data transmission connections.

---- When the two computing machines communicate with each other, they exchange the data packets jointly constructed by a series of columns. Similar to the ground, the smart card also uses its own data package APDU (application protocol data unit, which should be used to discuss the data unit) to communicate with the foreign world. The APDU package contains an order or response message. In the world of smart card, the master-slave mode is used, while Smart Card always plays the horned color. Smart Card is always waiting for the final life of APDU. Then, it executes the operations defined by APDU, and replies to the end with a response to APDU. The interaction between the smart card and the final end allows APDU and APDU to change their lives.

What is Java card? ---- Java card is an intelligent card that can run Java program. Java card 2.0 technical specifications include detailed information about the creation of Java card virtual machines and programming interfaces (APIS) on the smart card. The minimum system is 16 kbps Rom, 8 kbps EEPROM, and 256b Ram. The system structure on Java card is shown in figure 3.

---- in this example, the applet is a small application procedure, the industry add on classes is an enterprise addition class, And the javacard framework is a javacard frame, OS & native functions is an operating system and local function. The Java card virtual computer is built on the unique set-to-electric path and the local operation system execution sequence. The JVM layer uses the general language and system interface to conceal the proprietary techniques of the maker. The Java card frame defines the APIs used by a series of columns to develop Java card applications and provide them for the system service. Some special businesses or special businesses should use libraries that can be provided for addition to provide services or optimize security and model models. Java card application program is called applet. Multiple applets can be stored on one card. Each applet is identified only by its aid (which should be identified by the Program), as defined in ISO 7816 5th.

life cycle of Java card-the life cycle of Java card runs on the system, Java card Virtual Computer, api library, and the selected applet starts when it is written into the Rom. Write a permanent group that can be processed into the life-saving order into the non-variable storage device of the core. This process is also called as a mask. ---- Before installing your money package, Java card must be made initial and personal. Initial Data Loading refers to loading data in the non-convertible storage device of the card. This data type is the same for many smart cards, not specific to a specific card, for example, the name of the issuer or maker. Personalizing is to assign cards to a person. This process can be completed by physical or electronic sub-individual. Physical personalization refers to the pressing of your name and card number on the plastic surface of the card or the pressing of excited. Electric sub-personalization refers to the loading of personal data in the non-variable storage device of the card, for example, your personal key, name, and personal identity Code . The initial and personal methods used by manufacturers and distributors are different. For these two procedures, the EEPROM is usually used to store data.

---- now, Java card can be used. You can buy a Java card either from the issuer or from the dealer. Card sales by no-seller are universal, and generally there is no personal processing. Now, you can insert your Java card into the read card and send an APDU command to the applet on the card, or to the card to download his applet or data. Except for non-Java card failure or an error that cannot be recovered, the lock is closed; otherwise, the Java card can be used directly.

---- Similarly, the Java card virtual machine will work forever. However, the life cycle of the applet is different. It started from installing and being added to the system's registration table, when it is deleted from the table, its life cycle ends. The blank space of the deleted applet can be reused or used again, this depends on whether the functions of the zookeeper collection are implemented on the card. The applet on the card will be active only when it is selected by the final end. Java card 2.0 language sub-set ---- Java card programming is written in Java. It can be compiled using a Java interpreter. Because it is limited to the resource source and computing power of the storage device, the Java card cannot support all the functions in the Java language, this feature does not support dynamic loading, security manager, thread and step-by-step operations, repeat the image, and finalization) and long base data type (float, double, long, and char ). On a higher-level smart card with a larger storage device, the implementer of the VM determines whether to support the native method of the 32-bit integer type and the post-issuance applet. Post-issuance applet the applet installed on Java card after the card is sent to the card holder.

Java card 2.0 frame ---- Java card frame is capable of Loose support of smart card systems and application procedures, it hides the sub-section of the smart card system, in addition, the sender of the Java card program should provide the simple and straight-connected programming interfaces for the Java card program. The Java card Frame includes four packages:

---- Javacard. Framework: This is the Java card internal core package. It defines classes such as Applet and personal ID code (PIN). These classes are the basic components of the Java card system.

---- Javacardx. Framework: this package can be used to provide face-to-face settings for file systems that are compatible with ISO 7816-4. It supports the APDU of the basic documents (EF), specialized documents (DF), and surface documents as defined in ISO 7816.

---- Javacardx. crypto and javacardx. cryptoenc: These two packages support smart card password functions. J

The security of Ava card ---- Java applet is restricted by the security of Java, however, the security model of the Java card system is different from the standard Java in many aspects. Java card does not support the security manager class. The language security strategy is implemented by virtual machines. Java Applet creates an object for storing and processing data. Objects are owned by the applet that creates the object. That is, make the applet have a reference to a certain object, and it cannot call the method of the object, except that it has the object, or the object has been shared. An applet can share its objects with another applet or any applet. An applet is a standalone entity in a Java card. Its selection, execution, and function are not affected by its applet staying on the same card.

---- Java card adds a new platform to the Java World. Java card is widely used and the Department needs to push the market, and more applications and tools need to be developed. In the next few years, the use of Java card may also increase. That is to say, in a short time, you will use this small card that is stored in the money package that comes with your carrying bag to store personal information and the app sequence for downloading.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.