CN104793964B - Java cards and its application update method, the terminal applied to java cards, smart card system - Google Patents

Java cards and its application update method, the terminal applied to java cards, smart card system Download PDF

Info

Publication number
CN104793964B
CN104793964B CN201410021220.2A CN201410021220A CN104793964B CN 104793964 B CN104793964 B CN 104793964B CN 201410021220 A CN201410021220 A CN 201410021220A CN 104793964 B CN104793964 B CN 104793964B
Authority
CN
China
Prior art keywords
code
memory
java
java cards
class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410021220.2A
Other languages
Chinese (zh)
Other versions
CN104793964A (en
Inventor
钟月婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201410021220.2A priority Critical patent/CN104793964B/en
Publication of CN104793964A publication Critical patent/CN104793964A/en
Application granted granted Critical
Publication of CN104793964B publication Critical patent/CN104793964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of java cards and its application update method, the terminal applied to java cards, smart card systems.The terminal includes:The java card platforms of read-only memory, java cards realize code mask in read-only memory, and the Applet applications of java cards realize that the function class libraries in code realizes code mask in read-only memory, and wherein function class libraries realizes that code includes multiple classes;The Applet applications of scratch pad memory, java cards realize that the application framework in code realizes that code is stored in scratch pad memory with erasable WriteMode, and wherein application framework realizes code for calling class;Bus, read-only memory are electrically connected with bus respectively with scratch pad memory.By the above-mentioned means, the present invention can be updated mask in java cards in the application of read-only memory, user experience can be improved, and reduces update cost in bug present in the application to Efficient software patching java cards.

Description

Java cards and its application update method, the terminal applied to java cards, smart card system
Technical field
The present invention relates to information technology field, more particularly to a kind of java cards and its application update method are applied to java The terminal of card, smart card system.
Background technology
Java cards are the smart cards that can run java program codes.Java cards are different from traditional smart card (Native Card), it is divided into platform and Applet application two parts..
The storage system of smart card is mainly by read-write memory (RAM), read-only memory (ROM) and erasable programming Memory (EEPROM) forms.Erasable programmable memory (EEPROM) capacity is small, of high cost, in contrast, read-only memory (ROM) capacity is big, at low cost.Meanwhile the runtime data of java cards is all stored in EEPROM, it is big to EEPROM demands.Institute With a lot of java cards development companies download it all in platform and Applet application masks to ROM to vacate more spaces now He applies or storage data.
But due to can only read read-only memory, and it cannot be carried out it is erasable, therefore when mask in read-only storage When the Applet applications of device have bug (defect), effectively it cannot be updated, to influence user experience, develop factory Quotient can only replace read-only memory, so also so that the update cost of development company improves.
Invention content
The invention mainly solves the technical problem of providing a kind of java cards and its application update method, it is applied to java cards Terminal, smart card system, mask in java cards can be updated in the application of read-only memory, to Efficient software patching User experience can be improved in bug present in the application of java cards, and reduces update cost.
In order to solve the above technical problems, one aspect of the present invention is:There is provided a kind of application of java cards more New method, java cards include:The java card platforms of read-only memory, java cards realize code mask in read-only memory, wherein Java card platforms realize code for realizing standard Application Programming Interface and running environment, and encapsulate the intelligence where java cards The hardware information of card system;The Applet applications of java cards realize that the function class libraries in code realizes code mask in read-only storage Device, wherein function class libraries realize that code includes multiple classes;The Applet applications of scratch pad memory, java cards are realized in code Application framework realizes that code is stored in scratch pad memory with erasable WriteMode, and wherein application framework realizes code for calling Class;Bus, read-only memory are electrically connected with bus respectively with scratch pad memory;This method includes:Detecting function class libraries When realizing that the class of code needs to be updated, the application framework realization code that scratch pad memory is stored in java cards is wiped; It is mutually authenticated with java cards;New opplication frame is realized code and realized in code corresponding to function class libraries and needs to update Class subclass be written scratch pad memory;
Wherein, realized in function class libraries in the subclass of the newer class of needs of code to need the method in newer class with Coverage mode is written over.
Wherein, it is newer to realize that code is provided for stopping needing in calling function class libraries realization code for new opplication frame Class, and realize the other classes and subclass in code in addition to needing newer class for calling function class libraries.
Wherein, scratch pad memory is FLASH memory or eeprom memory.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of java cards are provided, including: The java card platforms of read-only memory, java cards realize code mask in read-only memory, and wherein java cards platform realizes code For realizing standard Application Programming Interface and running environment, and encapsulate the hardware information of the smart card system where java cards; The Applet applications of java cards realize that the function class libraries in code realizes code mask in read-only memory, and wherein function class libraries is real Modern code includes multiple classes;The Applet applications of scratch pad memory, java cards realize that the application framework in code realizes code It is stored in scratch pad memory with erasable WriteMode, wherein application framework realizes code for calling class;Bus, read-only memory It is electrically connected respectively with bus with scratch pad memory.
Wherein, scratch pad memory is FLASH memory or eeprom memory.
In order to solve the above technical problems, another technical solution used in the present invention is:It provides a kind of applied to above-mentioned The terminal of java cards, including:Class memory module corresponds in function class libraries realization code for needing newer class for storing Class, and to needing the method in newer class to be written over coverage mode in subclass;Application framework realizes that code stores mould Block realizes that code, wherein new opplication frame realize that code is provided for stopping calling function class for storing new opplication frame Library, which is realized, needs newer class in code, and realizes other classes in code in addition to needing newer class for calling function class libraries And subclass;Update module, for wiping the application framework realization code for being stored in scratch pad memory in java cards, and will be sub Class, new opplication frame are realized in the scratch pad memory of code write-in java cards.
Wherein, terminal is POS machine or card reader.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of smart card system is provided, is wrapped Include above-mentioned java cards and above-mentioned terminal.
The beneficial effects of the invention are as follows:Compared with prior art, java cards of the invention and its application update method, application In the terminals of java cards, smart card system by will subclass, new opplication frame be realized that code be written into the erasable of java cards In memory, and it is newer so that new opplication frame realizes that code is set as stopping needing in calling function class libraries realization code Class, and calling function class libraries realizes the other classes and subclass in code in addition to needing newer class, therefore can be to java cards Middle mask is updated in the application of read-only memory, and use can be improved in bug present in the application to Efficient software patching java cards Family is experienced, and reduces update cost.
Description of the drawings
Fig. 1 is the structural schematic diagram of java cards first embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the Applet applications in java cards first embodiment of the present invention;
Fig. 3 is the hardware architecture diagram of java cards first embodiment of the present invention;
Fig. 4 is that java of the present invention is stuck in using updated structural schematic diagram;
Fig. 5 is the structural schematic diagram for the terminal first embodiment that the present invention is applied to java cards.
Specific implementation mode
The present invention is described in detail with embodiment below in conjunction with the accompanying drawings.
It is the structural schematic diagram of java cards first embodiment of the present invention referring firstly to Fig. 1, Fig. 1, as shown in Figure 1, this hair Bright java cards 30 include that java platforms 40 and multiple Applet apply 50,60,70.
Java platforms 40 and encapsulate the intelligence where java cards 30 for realizing the Application Programming Interface and running environment of standard The hardware information of energy card system.Applet applies mechanically unified application framework using 50,60,70, is provided using java platforms 40 Interface is developed with java language, calling system service and resource.
In order to more clearly illustrate, only Applet is illustrated using 50 in the examples below, please be join below See that Fig. 2, Fig. 2 are the structural schematic diagrams of the Applet applications in java cards first embodiment of the present invention, as shown in Fig. 2, of the invention Applet using 50 include application framework 501 and function class libraries 502, function class libraries 502 include multiple and different classes 5021, 5022、5023。
Application framework 501 can 502 each class of calling function class libraries member and method.
Fig. 3 is referred to below, and Fig. 3 is the hardware architecture diagram of java cards first embodiment of the present invention.As shown in figure 3, The present invention java cards 30 include read-only memory 10, scratch pad memory 20 and bus 80, read-only memory 10 with it is erasable Memory write 20 is electrically connected with bus 80 respectively.
It is worth noting that, java cards platform 40 shown in FIG. 1 realizes that code 101 is realized with java card platforms, java Processor (not being painted) in card realizes the correspondence work(of java cards platform 40 by running java card platforms realization code 101 Energy.
Also, Applet shown in Fig. 2 is realized with Applet using code is realized using 50, the processor in java cards The corresponding function of Applet applications is realized by running Applet applications realization code.Code tool is realized in wherein Applet applications Body includes that function class libraries realizes that code 1022 and application framework realize code 1021.
In the present invention, the java card platforms of java cards 30 realize 101 mask of code in read-only memory 10, wherein java Card platform realizes code 101 for realizing standard Application Programming Interface and running environment, and encapsulates the intelligence where java cards 30 The hardware information of energy card system;Java cards 30 Applet application realize code in function class libraries realize 1022 mask of code in Read-only memory 10, wherein function class libraries realize that code 1022 includes multiple classes.
Also, the Applet applications of java cards 30 realize that the application framework in code realizes code 1021 with erasable WriteMode It is stored in scratch pad memory 20, wherein application framework realizes that code 1021 is used to call the class in read-only memory 10.
Therefore, java cards 30 of the invention run mask by processor and are realized in the java card platforms of read-only memory 10 Code 101 realizes the corresponding function of java cards platform 40, and mask is run in the function class of read-only memory 10 by processor Code 1022 is realized to realize the corresponding function of function class libraries 502 in library, runs that be stored in erasable WriteMode can by processor The application framework of flash memory 20 realizes code 1021 to realize the corresponding function of application framework 501.
Based on the above setting, when finding to apply defective (bug) to some Applet, need to some Applet apply into When row updates, only method shown in Fig. 3 need to be run, you can update quickly, safe is carried out to specific Applet applications.
Fig. 3 is referred to, Fig. 3 is the flow chart using update method first embodiment of java cards of the present invention.Such as Fig. 3 institutes Show, the application update method of java cards of the present invention includes the following steps:
Step 301:When detecting that function class libraries realizes that the class of code needs to be updated, wipes and be stored in java cards The application framework of scratch pad memory realizes code;
Step 302:It is mutually authenticated with java cards;
Step 303:New opplication frame is realized code and realized in code corresponding to function class libraries and needs newer class Subclass be written scratch pad memory;
It is worth noting that, above-mentioned steps are executed by terminal.And in step 302, terminal can be with APDU (Application Protocol Data Unit, Application Protocol Data Unit) mode is authenticated with java cards.
Also, realized in function class libraries in the subclass of the newer class of needs of code to need the method in newer class with Coverage mode is written over.
Also, it is newer that new opplication frame realizes that code is provided for stopping needing in calling function class libraries realization code Class, and realize the other classes and subclass in code in addition to needing newer class for calling function class libraries.
It is referred to together in combination with Fig. 4, wherein Fig. 4 is that java of the present invention is stuck in using updated structural schematic diagram. Wherein subclass 90 realizes the subclass that newer class is needed in code 1022 for function class libraries, and newer to needing in subclass 90 Method in class is written over coverage mode, and new opplication frame realizes that code 1021 is set as stopping the realization of calling function class libraries Newer class is needed in code 1022, and calling function class libraries realizes other classes in code 1022 in addition to needing newer class, And subclass 90.
Since new opplication frame realizes that code 1021 is set as stopping needing more in calling function class libraries realization code 1022 New class, and calling function class libraries realizes the other classes and subclass 90 in code 1022 in addition to needing newer class, therefore, When the processor operation new opplication frame of java cards 30 realizes code 1021, mask will not be called in the work(of readable memory 10 Newer class can be needed in class libraries realization code 1022, but directly invoke the subclass 90 for being stored in scratch pad memory 20.From And realize the update of Applet applications.
It is worth noting that, the above-mentioned terminal that can be specifically applied to java cards by one using update method executes, java Card can be inserted into terminal so that the terminal is connected with java cards, to carry out java cards using update.
Fig. 5 is referred to, Fig. 5 is the structural schematic diagram for the terminal first embodiment that the present invention is applied to java cards, specifically, The terminal may include:
Class memory module 401 corresponds in function class libraries realization code the subclass for needing newer class for storing, and To needing the method in newer class to be written over coverage mode in subclass;
Application framework realizes code storage block 402, and code, wherein new opplication frame are realized for storing new opplication frame Realize that code is provided for stopping needing newer class in calling function class libraries realization code, and real for calling function class libraries Other classes and subclass in modern code in addition to needing newer class;
Update module 403, for wiping the application framework realization code for being stored in scratch pad memory in java cards, and will Subclass, new opplication frame are realized in the scratch pad memory of code write-in java cards.
Specifically, scratch pad memory can be FLASH memory or eeprom memory, and terminal can be POS machine or Card Reader Device.
The present invention further provides a kind of smart card systems comprising the java cards and terminal disclosed in above-described embodiment.
Therefore, java cards of the invention and its application update method, the terminal applied to java cards, smart card system pass through Subclass, new opplication frame will be realized that code is written into the scratch pad memory of java cards, and so that new opplication frame is real Modern code is set as stopping needing newer class in calling function class libraries realization code, and calling function class libraries is realized and removed in code Other classes and the subclass outside newer class are needed, therefore application that can be to mask in java cards in read-only memory carries out Update, so that bug present in the application of Efficient software patching java cards, can be improved user experience, and reduce update cost.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (9)

1. a kind of application update method of java cards, which is characterized in that the java cards include:
The java card platforms of read-only memory, the java cards realize code mask in the read-only memory, wherein described Java card platforms realize code for realizing standard Application Programming Interface and running environment, and encapsulate the java cards place The hardware information of smart card system;The java cards Applet application realize code in function class libraries realize code mask in The read-only memory, wherein the function class libraries realizes that code includes multiple classes;
The Applet applications of scratch pad memory, the java cards realize that the application framework in code realizes code with erasable side Formula is stored in the scratch pad memory, wherein the application framework realizes code for calling the class;
Bus, the read-only memory are electrically connected with the bus respectively with the scratch pad memory;
The method includes:
When detecting that the function class libraries realizes that the class of code needs to be updated, wipe described in being stored in the java cards The application framework of scratch pad memory realizes code;
Terminal is mutually authenticated with the java cards;
New opplication frame, which is realized code and realized in code corresponding to the function class libraries, needs the subclass of newer class to write Enter the scratch pad memory;
Wherein, the new opplication frame realizes that code is set as stopping calling needing more described in the function class libraries realization code New class, and the function class libraries is called to realize other classes and subclass in code in addition to the newer class of needs.
2. according to the method described in claim 1, it is characterized in that, realizing the newer class of needs of code in the function class libraries Subclass in needing the method in newer class to be written over coverage mode.
3. according to the method described in claim 2, it is characterized in that, the new opplication frame realizes that code is provided for stopping It calls the function class libraries to realize and needs newer class in code, and for calling the function class libraries to realize in code except described Need other classes outside newer class and the subclass.
4. method according to any one of claims 1 to 3, which is characterized in that the scratch pad memory stores for FLASH Device or eeprom memory.
5. a kind of java cards, which is characterized in that including:
The java card platforms of read-only memory, the java cards realize code mask in the read-only memory, wherein described Java card platforms realize code for realizing standard Application Programming Interface and running environment, and encapsulate the java cards place The hardware information of smart card system;The java cards Applet application realize code in function class libraries realize code mask in The read-only memory, wherein the function class libraries realizes that code includes multiple classes;
The Applet applications of scratch pad memory, the java cards realize that the application framework in code realizes code with erasable side Formula is stored in the scratch pad memory, wherein the application framework realizes code for calling the class;
Bus, the read-only memory are electrically connected with the bus respectively with the scratch pad memory;
Terminal is used to, when detecting that the function class libraries realizes that the class of code needs to be updated, wipe and deposit in the java cards The application framework for being stored in the scratch pad memory realizes code;It is mutually authenticated with the java cards;And by new opplication Frame, which is realized code and realized corresponding to the function class libraries, needs the subclass write-in of newer class described erasable in code Memory;
Wherein, the new opplication frame realizes that code is set as stopping calling needing more described in the function class libraries realization code New class, and the function class libraries is called to realize other classes and subclass in code in addition to the newer class of needs.
6. java cards according to claim 5, which is characterized in that the scratch pad memory be FLASH memory or Eeprom memory.
7. a kind of terminal applied to the java cards described in claim 5, which is characterized in that including:
Class memory module corresponds in the function class libraries realization code subclass for needing newer class for storing, and in institute It states in subclass to needing the method in newer class to be written over coverage mode;
Application framework realizes code storage block, code is realized for storing new opplication frame, wherein the new opplication frame is real Modern code is provided for stopping calling in the function class libraries realization code needing newer class, and for calling the function Class libraries realizes other classes and the subclass in code in addition to the newer class of needs;
Update module, for wiping the application framework realization code for being stored in the scratch pad memory in the java cards, and The subclass, the new opplication frame are realized that code is written in the scratch pad memory of the java cards.
8. terminal according to claim 7, which is characterized in that the terminal is POS machine or card reader.
9. a kind of smart card system, which is characterized in that including java cards described in claim 5 or 6 and claim 7 or 8 The terminal.
CN201410021220.2A 2014-01-16 2014-01-16 Java cards and its application update method, the terminal applied to java cards, smart card system Active CN104793964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410021220.2A CN104793964B (en) 2014-01-16 2014-01-16 Java cards and its application update method, the terminal applied to java cards, smart card system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410021220.2A CN104793964B (en) 2014-01-16 2014-01-16 Java cards and its application update method, the terminal applied to java cards, smart card system

Publications (2)

Publication Number Publication Date
CN104793964A CN104793964A (en) 2015-07-22
CN104793964B true CN104793964B (en) 2018-10-02

Family

ID=53558780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410021220.2A Active CN104793964B (en) 2014-01-16 2014-01-16 Java cards and its application update method, the terminal applied to java cards, smart card system

Country Status (1)

Country Link
CN (1) CN104793964B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729056A (en) * 2017-10-26 2018-02-23 东信和平科技股份有限公司 The program store method and relevant apparatus of a kind of read-only storage
CN108733487A (en) * 2018-04-19 2018-11-02 深圳市文鼎创数据科技有限公司 The more application management methods of Java card and Java card

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1535250A1 (en) * 2002-07-01 2005-06-01 Sospita AS Process for compiling and executing software applications in a multi-processor environment
CN101441568A (en) * 2008-11-18 2009-05-27 东信和平智能卡股份有限公司 Smart card and operating system developing method thereof
CN103309696A (en) * 2012-03-15 2013-09-18 中国移动通信集团公司 Method and device for updating Java card extended library, and Java card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19964003A1 (en) * 1999-12-30 2001-07-12 Micronas Gmbh Circuit arrangement and method for generating and reading out replacement data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1535250A1 (en) * 2002-07-01 2005-06-01 Sospita AS Process for compiling and executing software applications in a multi-processor environment
CN101441568A (en) * 2008-11-18 2009-05-27 东信和平智能卡股份有限公司 Smart card and operating system developing method thereof
CN103309696A (en) * 2012-03-15 2013-09-18 中国移动通信集团公司 Method and device for updating Java card extended library, and Java card

Also Published As

Publication number Publication date
CN104793964A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN107045438B (en) Application top view processing method, device and component
CN106909352A (en) A kind of firmware upgrade method of embedded device
CN109976871B (en) Intelligent contract deployment method and device, electronic equipment and storage medium
CN106055368A (en) Application updating method and device
CN102945173A (en) User program on-line upgrading system and method
CN101025698A (en) Apparatus for forcibly terminating thread blocked on input/output operation and method for the same
CN104731622B (en) The loading method of a kind of application program, device and mobile terminal
CN109656608A (en) A kind of MCU firmware upgrade method and its relevant device
CN111008132B (en) Application debugging method and device for Android system, computer equipment and storage medium
CN106598652B (en) System and method for quickly starting Linux kernel in FPGA (field programmable Gate array) environment
CN110046094B (en) Operating environment switching method and operating environment switching device
CN104793964B (en) Java cards and its application update method, the terminal applied to java cards, smart card system
US10387124B2 (en) System and method for creating domain specific language
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN108984244A (en) Browser page rendering method, electronic device and computer readable storage medium
US10452364B2 (en) Method and system for preparing code to be executed by programmable control devices
CN107391272A (en) The method and terminal of multi-process data interaction
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN111158987B (en) Health check method and device for micro-service architecture
CN114490103A (en) Operating system interface calling method and device and electronic equipment
CN103677933A (en) Patching method and system for smart card
CN110955601A (en) Android platform stability-based automatic testing method and device and electronic equipment
CN109753293A (en) A kind of processing method and relevant device of plug-in unit
CN108874556A (en) A kind of data interactive method, device, storage medium and mobile terminal
CN111443994B (en) Device, system and method for simulating smart card driver

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant