CN105630516A - Patch upgrading method suitable for application software in JAVA card - Google Patents
Patch upgrading method suitable for application software in JAVA card Download PDFInfo
- Publication number
- CN105630516A CN105630516A CN201410582663.9A CN201410582663A CN105630516A CN 105630516 A CN105630516 A CN 105630516A CN 201410582663 A CN201410582663 A CN 201410582663A CN 105630516 A CN105630516 A CN 105630516A
- Authority
- CN
- China
- Prior art keywords
- class
- java card
- application software
- applet
- function
- 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.)
- Pending
Links
Abstract
The invention discloses a patch upgrading method suitable for application software in a JAVA card. The application software in the JAVA card is realized by putting an application function in a library package and then a class is created in an APPLET package to inherit a class in the library package; and during subsequent upgrading, only the APPLET package needs to be realized again and a function required to be upgraded is realized in a subclass. For a JAVA card application adopting the scheme, only the APPLET package needs to be deleted during application software upgrading, then a new APPLET package is downloaded, and a JAVA card platform system does not need to be considered at all. An application provider can perform autonomous control and how to store the application software in a memory does not need to be considered, so that the tedious address localization work is removed; and a JAVA card platform system provider does not need to take part in the process, so that the independent intellectual property can be effectively protected.
Description
Technical field
The present invention relates to a kind of suitable in the patch upgrading method of application software in JAVA card.
Background technology
JAVA smart card application software in hard mask to the ROM of chip after, if any upgrading demand time, JAVA card plateform system provider can only be given and complete. The application software mask information generated when JAVA card plateform system provider needs according to JAVA card platform mask, to application software patch installing, to complete upgrading task. This mode there is problems in that 1), application provider need provide application source code and upgrading after source code fragment to JAVA card plateform system provider. This relates to the intellectual property of application provider. 2), JAVA card plateform system provider is when patch installing, it is necessary to finding the code storage address of correspondence, this is a quite loaded down with trivial details job, extremely expends energy. Also Just because of this, major applications exploitation side, when running into application and needing upgrading, selects to abandon the card that produces before, and the card that mask is new again. This is a kind of wasting of resources greatly.
Summary of the invention
For the deficiencies in the prior art, it is an object of the invention to provide one and application software provider can be allowed independently to carry out application upgrade, while protection intellectual property, improve upgrading efficiency, the method reducing cost.
For achieving the above object, present invention employs following technical scheme:
Suitable in the patch upgrading method of application software in JAVA card, comprise the steps:
1) the first storehouse bag and the second storehouse bag are set in JAVA card, the APPLET class in JAVA card is individually placed on mono-Ku Baoli;
2) at the bis-Ku Baoli functional realiey class C2 created, class C2 places the program of the APPLET class function realized in step 1);
3) create a class C1 at mono-Ku Baoli, and inherit the functional realiey class C2 in the second storehouse bag;
4) in the building method of APPLET class, create an object of C1 class;
5) in the order distribution processor function of APPLET class, call the function of the order distribution processor of C1 class object;
6) when needs carry out patch renewal, delete the first previous storehouse bag, then again realize needing in the power function updated C1 class in the first storehouse bag, re-download the first storehouse and wrap erasable programmable readable memory.
As the further optimization of such scheme, described step 2) in realize the program of the APPLET class function in step 1) and adopt public and protect modifier.
Beneficial effects of the present invention main manifestations is:
(1) application provider independently completes upgrade job, it is not necessary to JAVA card plateform system provider participates in, and can effectively protect independent intellectual property right;
(2) present invention utilizes JAVA card system platform to install the mechanism deleting application flexibly, and upgrade method is simple, reduces upgrade job amount;
(3) patch data is few, saves EEPROM(erasable programmable readable memory) use in space.
Accompanying drawing explanation
Fig. 1 is the logical structure schematic diagram of one embodiment of the invention.
Detailed description of the invention
Below in conjunction with accompanying drawing and preferred embodiment, the present invention is more specifically described.
As shown in Figure 1, it is adaptable to the patch upgrading method of application software in JAVA card, comprise the steps:
1) the first storehouse bag and the second storehouse bag are set in JAVA card, the APPLET class in JAVA card is individually placed on mono-Ku Baoli;
2) at the bis-Ku Baoli functional realiey class C2 created, class C2 places the program of the APPLET class function realized in step 1);
3) create a class C1 at mono-Ku Baoli, and inherit the functional realiey class C2 in the second storehouse bag;
4) in the building method of APPLET class, create an object of C1 class;
5) in the order distribution processor function of APPLET class, call the function of the order distribution processor of C1 class object;
6) when needs carry out patch renewal, delete the first previous storehouse bag, then again realize needing in the power function updated C1 class in the first storehouse bag, re-download the first storehouse and wrap erasable programmable readable memory.
Described step 2) in realize the program of APPLET class function in step 1) and adopt public and protect modifier.
In the present embodiment, it is existing that application function is placed on a storehouse bag interior-excess by JAVA card application software, then creates the class of a Similar integral Ku Baoli in APPLET bag; When subsequent upgrade, it is only necessary to again realize APPLET bag, it would be desirable to the function of upgrading realizes in subclass. The JAVA card adopting this scheme is applied, when upgrade application software, it is only necessary to deletes APPLET bag, then downloads new APPLET bag, completely dispenses with consideration JAVA card plateform system. Can by application provider's Autonomous Control, and be how to store in memorizer without the concern for application software, save loaded down with trivial details address location work.
The present embodiment makes not rely on during JAVA card application software upgrade the JAVA card plateform system of bottom, and its ultimate principle is to utilize the property inheritance of JAVA language, builds new subclass on existing parent basis, and subclass can reuse attribute and the method for parent. This technology requires the function that the class interior-excess in storehouse is wrapped now is applied, and uses public and protect modifier as much as possible.
Above in conjunction with accompanying drawing, the preferred embodiment for the present invention is explained in detail, but the invention is not restricted to above-mentioned embodiment, in the ken that those of ordinary skill in the art possess, it is also possible to make a variety of changes under the premise without departing from present inventive concept.
Many other can be made without departing from the spirit and scope of the present invention to change and remodeling. Should be appreciated that and the invention is not restricted to specific embodiment, the scope of the invention limits.
Claims (2)
1. it is applicable to the patch upgrading method of application software in JAVA card, it is characterised in that comprise the steps:
1) the first storehouse bag and the second storehouse bag are set in JAVA card, the APPLET class in JAVA card is individually placed on mono-Ku Baoli;
2) at the bis-Ku Baoli functional realiey class C2 created, class C2 places the program of the APPLET class function realized in step 1);
3) create a class C1 at mono-Ku Baoli, and inherit the functional realiey class C2 in the second storehouse bag;
4) in the building method of APPLET class, create an object of C1 class;
5) in the order distribution processor function of APPLET class, call the function of the order distribution processor of C1 class object;
6) when needs carry out patch renewal, delete the first previous storehouse bag, then again realize needing in the power function updated C1 class in the first storehouse bag, re-download the first storehouse and wrap erasable programmable readable memory.
2. according to claim 1 suitable in the patch upgrading method of application software in JAVA card, it is characterised in that described step 2) in realize the program of APPLET class function in step 1) and adopt public and protect modifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410582663.9A CN105630516A (en) | 2014-10-28 | 2014-10-28 | Patch upgrading method suitable for application software in JAVA card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410582663.9A CN105630516A (en) | 2014-10-28 | 2014-10-28 | Patch upgrading method suitable for application software in JAVA card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105630516A true CN105630516A (en) | 2016-06-01 |
Family
ID=56045506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410582663.9A Pending CN105630516A (en) | 2014-10-28 | 2014-10-28 | Patch upgrading method suitable for application software in JAVA card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105630516A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227576A (en) * | 2016-08-18 | 2016-12-14 | 北京智芯微电子科技有限公司 | The function realizing method of a kind of Java card application and device |
CN106598551A (en) * | 2016-12-16 | 2017-04-26 | 大唐微电子技术有限公司 | Smart card, processing method and device of smart card |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033771A (en) * | 2010-12-24 | 2011-04-27 | 北京握奇数据系统有限公司 | Method and device for applying patch program in Java Card |
CN103309696A (en) * | 2012-03-15 | 2013-09-18 | 中国移动通信集团公司 | Method and device for updating Java card extended library, and Java card |
CN103645917A (en) * | 2013-12-03 | 2014-03-19 | 北京中电华大电子设计有限责任公司 | Java code patching method of Java card |
CN103761126A (en) * | 2014-01-07 | 2014-04-30 | 中国神华能源股份有限公司 | Method and device for upgrading application program |
-
2014
- 2014-10-28 CN CN201410582663.9A patent/CN105630516A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102033771A (en) * | 2010-12-24 | 2011-04-27 | 北京握奇数据系统有限公司 | Method and device for applying patch program in Java Card |
CN103309696A (en) * | 2012-03-15 | 2013-09-18 | 中国移动通信集团公司 | Method and device for updating Java card extended library, and Java card |
CN103645917A (en) * | 2013-12-03 | 2014-03-19 | 北京中电华大电子设计有限责任公司 | Java code patching method of Java card |
CN103761126A (en) * | 2014-01-07 | 2014-04-30 | 中国神华能源股份有限公司 | Method and device for upgrading application program |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227576A (en) * | 2016-08-18 | 2016-12-14 | 北京智芯微电子科技有限公司 | The function realizing method of a kind of Java card application and device |
CN106598551A (en) * | 2016-12-16 | 2017-04-26 | 大唐微电子技术有限公司 | Smart card, processing method and device of smart card |
CN106598551B (en) * | 2016-12-16 | 2019-01-29 | 大唐微电子技术有限公司 | A kind for the treatment of method and apparatus of smart card, smart card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102192880B1 (en) | Method and device to prevent software repackaging | |
CN100570558C (en) | A kind of chip firmware updating method | |
CN105205401A (en) | Trusted computer system based on safe password chip and trusted guiding method thereof | |
CN106648724B (en) | Application program hot repair method and terminal | |
CN105354037A (en) | Modularized software developing method and software developing device | |
CN104007996A (en) | Reliable firmware upgrading realizing method for distributed control system | |
CN103559591A (en) | Software management system and management method based on trusted computing | |
CN103309683A (en) | Software patch embedding method and device for hardware equipment | |
CN103810416A (en) | Software installation or uninstallation method and device | |
EP3040854B1 (en) | Method, apparatus and storage medium for dynamically patching function | |
CN102147743A (en) | Method for accelerating startup of embedded system application program | |
EP2680137A1 (en) | Method and system for managing bios configuration data of basic input/output system | |
CN105487909B (en) | A method of reducing power equipment firmware upgrade amount | |
CN102902530A (en) | Procedure verifying device based on Linux embedded operating system | |
CN104657258A (en) | Method and device for injecting Java bit codes into target process | |
CN104391714A (en) | Software update method and software update device for vehicle | |
CN104077161A (en) | Client application updating method and device | |
CN105630516A (en) | Patch upgrading method suitable for application software in JAVA card | |
CN113961226B (en) | Software development kit repairing method, terminal, server and equipment | |
US20150220456A1 (en) | Method for protecting a program code, corresponding system and processor | |
CN111045686A (en) | Method for improving application decompilation speed, intelligent terminal and storage medium | |
CN105354061A (en) | Method and system for protecting MCU working program | |
CN103455750A (en) | High-security verification method and high-security verification system for embedded devices | |
CN103761118B (en) | A kind of smart card and the method for smartcard internal administration application | |
CN103473096A (en) | Method and system for loading java class on virtual machine of android system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160601 |
|
RJ01 | Rejection of invention patent application after publication |