Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, the embodiment of the invention is described in further details below in conjunction with accompanying drawing.At this, illustrative examples of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
As shown in Figure 1, in the embodiment of the invention, the method treatment scheme of operation JAVA application program can comprise:
Step 101, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program;
Step 102, the description document of described label file and described JAVA application program is mated;
Step 103, when the match is successful, move described JAVA application program.
Can learn by flow process shown in Figure 1, in the embodiment of the invention, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program; The description document of described label file and described JAVA application program is mated; When the match is successful, move described JAVA application program; Thereby need not to install in advance the operation that realizes the JAVA application program under the situation of JAVA application program, be user-friendly to, avoided carrying out that the JAVA application program is installed and the resource occupation and the long problem consuming time that cause.
During concrete enforcement, can consider after having moved uninstalled JAVA application program, logout to be preserved, follow-up like this when moving this JAVA application program once more, just can directly start virtual machine by this JAVA application program of access originator running paper, thereby reduce matching process.In this example, judge whether to have preserved the logout of uninstalled JAVA application program earlier, if there is not the logout of this JAVA application program, then from the source file (jar file) of this JAVA application program, separate the label file (mif file) that extrudes this JAVA application program; The description document (jad file) of label file and this JAVA application program is mated; When the match is successful, move this JAVA application program, after this JAVA application program of operation, also preserve logout; If preserved the logout of this JAVA application program, before promptly being described, this JAVA application program moved, and can directly start virtual machine and move this JAVA application program by the visit description document.
Among the embodiment,, then can also resolve the description document (jad file) of this JAVA application program if there is not the logout of uninstalled JAVA application program; When determining description document through signature, generate the secure configuration file and the preservation of this JAVA application program by resolving.
Because disclosed on the internet JAVA application program major part all is not through signing at present, not having the program of signature, will to be considered to the third party non-faithful, need be at some sensitive apis of visit (Application Programming Interface, application programming interface) limits the time, during as accesses network or mobile phone file system, need to eject dialog box prompting user and confirm; Prior art is when installing each JAVA application program, and AMS need repeat to generate the same secure configuration file to the JAVA application program of each unsigned, the purpose that limits with the access rights that realize these JAVA application programs.
In order to reduce the management link of JAVA application program, avoid generating the temporary file and the redundant file of some installation processes, save memory, in the embodiment of the invention, if by resolving the description document of JAVA application program, determine that description document not through signature, does not promptly exist certificate and signature, then the security configuration of this JAVA application program can be made as automatically the access rights of the non-program correspondence of keeping one's word of third party, generate a secure configuration file no longer separately; That is to say, in the JAVA of embodiment of the invention application program operational process, needn't all will generate secure configuration file the JAVA application program of each unsigned.And for the description document through signature, because the secure access authority of different JAVA application programs may be different, its corresponding secure configuration file is also different, therefore can generate the secure configuration file and the preservation of this JAVA application program when determining description document through signature by parsing.
During concrete enforcement, the logout of aforementioned JAVA application program and/or secure configuration file can be preserved by database or configuration file.In specific implementation, for the more situation of JAVA number of applications, information such as the logout of suggestion employing database maintenance JAVA application program and secure configuration file; And, can adopt configuration file to come information such as the logout of JAVA application program and secure configuration file are carried out record for the less situation of JAVA number of applications.The file structure of this configuration file can have various ways, and the content of configuration file need be distinguished different JAVA application program and relevant information, lifts one for example down:
JAVA1 (name of JAVA application program), the size of jar file, the title of secure configuration file, RMS (Record Management Store, record management storage) folder path; JAVA 2, the size of jar file, the title of secure configuration file, RMS folder path;
Among the embodiment, before from the source file of JAVA application program, separating the label file that extrudes the JAVA application program, can also comprise the step that obtains source file.And that the method that obtains source file can have is multiple, for example, when selecting source file to move the JAVA application program, can directly select source file; When moving the JAVA application program by the selection description document, can move described description document, search the described source file of the same name with described description document; Also can search described source file according to the content of described description document.
Among the embodiment, before the description document of label file and JAVA application program is mated, can also comprise the step that obtains description document.And that the method that obtains description document also can have is multiple, for example, when selecting description document to move the JAVA application program, can directly select description document; When moving the JAVA application program by the selection source file, can move source file, search the described description document of the same name with described source file.
If operation source file, but do not search the described description document of the same name with described source file, then can think the faithful JAVA application program of these JAVA application program right and wrong, do not need to carry out logout visit and relevant checking procedure, directly start virtual machine and get final product by the described JAVA application program of access originator running paper.
Lift the JAVA application program operation method in the instantiation explanation embodiment of the invention below.In this example, to be example by selecting description document to move the JAVA application program, as shown in Figure 2, treatment scheme can comprise:
Step 201, select the jad running paper of JAVA application program, automatically search jar file of the same name or under with the one-level catalogue according to the corresponding jar file of the content search of jad file;
Whetherstep 202, detection preserve the logout of this JAVA application program, if then execution instep 203, otherwise execution instep 204 is tostep 205;
Step 203, for the JAVA application program of preserving logout, directly start virtual machine by visit jar running paper JAVA application program;
Step 204, for the JAVA application program that does not have logout, resolve earlier the jad file, if there is no certificate and signature then are made as security configuration non-faithful authority automatically, generate a secure configuration file no longer separately; If the jad file through signing then generates a secure configuration file, so that access rights are limited in database;
Step 205, from the jar file, separate and extrude the mif file, and and the jad file mate; Then true(-)running that the match is successful, and deposit logout in database.
Based on same inventive concept, also provide a kind of device of the JAVA of operation application program in the embodiment of the invention, as described in the following examples.Because the principle of this device solves problem is similar to the method for operation JAVA application program, so the enforcement of this device can repeat part and repeat no more referring to the enforcement of method.
As shown in Figure 3, in the embodiment of the invention, the device of operation JAVA application program can comprise:
Decompression module 301 is used for separating the label file that extrudes described JAVA application program from the source file of uninstalled JAVA application program;
Matching module 302 is used for the description document of described label file and described JAVA application program is mated;
Operation module 303 is used for when the match is successful, moves described JAVA application program.
Among the embodiment,decompression module 301 specifically can be used for: when not having the logout of described JAVA application program, separate the label file that extrudes described JAVA application program from the source file of described JAVA application program;
Operation module 303 can also be used for: after the described JAVA application program of operation, preserve the logout of described JAVA application program.
As shown in Figure 4, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
First startsmodule 401, is used for when preserving the logout of described JAVA application program, starts virtual machine and moves described JAVA application program by visiting described source file.
As shown in Figure 5, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
Parsing module 501 is used for resolving described description document when not having the logout of described JAVA application program;
Generation module 502 is used for generating the secure configuration file and the preservation of described JAVA application program when described description document process is signed.
As shown in Figure 6, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
First search module 601 is used for moving described descriptiondocument decompression module 301 is separated the label file that extrudes described JAVA application program from the source file of described JAVA application program before, searches the described source file of the same name with described description document; Or, according to the content of described description document, search described source file.
As shown in Figure 7, among the embodiment, the device of operation JAVA application program shown in Figure 3 can also comprise:
Second search module 701 is used for moving described source file before matchingmodule 302 mates the description document of described label file and described JAVA application program, searches the described description document of the same name with described source file.
As shown in Figure 8, among the embodiment, the device of operation JAVA application program shown in Figure 7 can also comprise:
Second starts module 801, is used for starting virtual machine and moving described JAVA application program by visiting described source file when not searching with described source file described description document of the same name.
In the embodiment of the invention, from the source file of uninstalled JAVA application program, separate the label file that extrudes described JAVA application program; The description document of described label file and described JAVA application program is mated; When the match is successful, move described JAVA application program; Thereby need not to install in advance the operation that realizes the JAVA application program under the situation of JAVA application program, be user-friendly to, avoided carrying out that the JAVA application program is installed and the resource occupation and the long problem consuming time that cause.
In the embodiment of the invention, if by resolving the description document of JAVA application program, determine that description document not through signature, does not promptly exist certificate and signature, then the security configuration of this JAVA application program can be made as automatically non-faithful authority, generate a secure configuration file no longer separately; When determining description document through signature, just generate the secure configuration file and the preservation of this JAVA application program by parsing; Can reduce the management link of JAVA application program, avoid generating the temporary file and the redundant file of some installation processes, save memory.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware embodiment, complete software implementation example or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form that goes up the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of carrying out on computing machine or other programmable devices is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.