CN106775656B - Scheduling method based on multiple intelligent key discs - Google Patents

Scheduling method based on multiple intelligent key discs Download PDF

Info

Publication number
CN106775656B
CN106775656B CN201611064962.9A CN201611064962A CN106775656B CN 106775656 B CN106775656 B CN 106775656B CN 201611064962 A CN201611064962 A CN 201611064962A CN 106775656 B CN106775656 B CN 106775656B
Authority
CN
China
Prior art keywords
class
key
disc
disk
intelligent key
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
CN201611064962.9A
Other languages
Chinese (zh)
Other versions
CN106775656A (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.)
Jiangxi Jinge Technology Co ltd
Original Assignee
Jiangxi Jinge Polytron 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 Jiangxi Jinge Polytron Technologies Inc filed Critical Jiangxi Jinge Polytron Technologies Inc
Priority to CN201611064962.9A priority Critical patent/CN106775656B/en
Publication of CN106775656A publication Critical patent/CN106775656A/en
Application granted granted Critical
Publication of CN106775656B publication Critical patent/CN106775656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Abstract

The invention discloses a scheduling method based on multiple intelligent key discs, which comprises the following steps: positioning an inlet; loading a dynamic library; creating and managing; hierarchical instantiation; automatically identifying equipment; the key disk is accessed. The invention is compatible with the drive of various universal manufacturers, can support most intelligent key disc devices on the market, and has flexible and convenient use for customers. The service interface layer and the abstract hardware driving layer are abstractly separated, when new hardware needs to be developed and adapted, only the developed abstract driving file needs to be added into the existing application, no modification needs to be made on the service layer, and the development cost is low; and a hierarchical storage mode is used, so that a plurality of intelligent key devices can be simultaneously used, and the use by a user is more convenient.

Description

Scheduling method based on multiple intelligent key discs
Technical Field
The invention relates to a trusted electronic official document processing technology, in particular to a scheduling method based on a multi-intelligent key disk.
Background
With the rapid development of the electronic signature industry, the traditional electronic signature software is fixedly matched with an intelligent key disc of a specified manufacturer, so that the selection of a user on the intelligent key disc is greatly limited, and the corresponding software (hardware) parts must be synchronously replaced if the user wants to replace the electronic signature software or the hardware equipment of the intelligent key disc, thereby bringing great cost waste to the user. From the products of electronic signature manufacturers currently in use in the market, users mainly designate a type of intelligent key equipment, and signature manufacturers develop software with corresponding versions to be matched for use. Therefore, the current solutions have the following drawbacks: 1. the model of the intelligent key equipment which is used by the user can not be changed, and if the model is changed, the signature can not be normally used; 2. an electronic signature manufacturer needs to customize development versions for intelligent key disc devices used by different users, and the maintenance cost is high; 3. some signature manufacturers can also adapt to multiple models of intelligent key disc devices, but do not support simultaneous insertion of multiple (2 or more than 2) devices, which brings much inconvenience to the use. Therefore, it is necessary to be able to schedule multiple intelligent key fobs in the electronic signature industry.
Disclosure of Invention
In view of the above technical problems, the present invention provides a scheduling method, which is applicable to most of the operations of the intelligent key discs in the market at present, can provide a set of universal interface calls for the electronic signature software, and can quickly adapt to the intelligent key discs of new models, thereby saving a large amount of cost for the electronic signature software and users.
The invention adopts the following technical scheme to achieve the purpose. A scheduling method based on multiple intelligent key discs comprises the following steps:
1) starting the system;
2) positioning an inlet: positioning to a specified default installation path of the disk by judging system environment variables, wherein the installation path is installed in a directory of X86 or X64 by an installation program according to different operating systems;
3) loading a dynamic library: finding a dynamic link library of an entrance from the installation path, dynamically loading, using a CreateInstance interface according to a COM calling mode, transmitting a specified class factory GUID (globally unique identifier), and creating a class factory instance;
4) creating a management class: the GUID of the management class is transmitted through an interface of the class factory, the management class is instantiated, and after the management class is created, the class factory instance is destroyed, so that system resources are saved conveniently;
5) hierarchical instantiation: the management class instantiates a key disk mode class and a key disk drive class by reading the relevant profile contents: firstly, instantiating each key mode class and storing each key mode class in a linked list; then instantiating a key disk drive class in each key disk mode class;
6) automatic identification of equipment: the management class traverses the key disc mode class linked list, identifies the inserted intelligent key disc in the system through the key disc drive class in each key disc mode class, instantiates the identified intelligent key disc as a key disc device class, and provides an instance of the key disc device class for external calling;
7) access to the key disk: after the key disc device class is instantiated, calling the abstract class driven by each key disc manufacturer by using the key disc device class to access the key disc;
8) and finishing the system operation.
Further, the system environment variable is KGKEY _ HOME or KGKEY _ HOME _ X64.
Further, the installation path further includes a dynamic link library and an associated configuration file.
Further, the class factory automatically creates class objects based on the incoming internally specified unique identifier.
Furthermore, the management class is an interface class provided externally, provides various calling interfaces for accessing and operating the intelligent key disc, and realizes transparency of the inside.
Further, the key disc mode class creates different key disc drive classes through configuration contents in the configuration file.
Further, the key fob drive class is used to invoke an intelligent key fob vendor drive.
The invention is compatible with the drive of various universal manufacturers, can support most intelligent key disc devices on the market, and has flexible and convenient use for customers. The service interface layer and the abstract hardware driving layer are abstractly separated, when new hardware needs to be developed and adapted, only the developed abstract driving file needs to be added into the existing application, no modification needs to be made on the service layer, and the development cost is low; and a hierarchical storage mode is used, so that a plurality of intelligent key devices can be simultaneously used, and the use by a user is more convenient.
Drawings
FIG. 1 is a flow block diagram of the present invention.
Detailed Description
The invention is further illustrated by the following figures and examples. Referring to fig. 1, a scheduling method based on multiple intelligent key fobs includes the following steps:
1) starting 101 a system;
2) inlet positioning 102: positioning to a specified default installation path of the disk by judging system environment variables; the installation path is installed under the directory of X86 or X64 by an installation program according to different operating systems; the system environment variable is KGKEY _ HOME or KGKEY _ HOME _ X64.
3) Loading the dynamic library 103: finding a dynamic link library of an entrance from the installation path, dynamically loading, using a CreateInstance interface according to a COM calling mode, transmitting a specified class factory GUID (globally unique identifier), and creating a class factory instance; the installation path also contains a dynamic link library and related configuration files.
4) Create management class 104: the GUID of the management class is transmitted through an interface of the class factory, the management class is instantiated, and after the management class is created, the class factory instance is destroyed, so that system resources are saved conveniently; the class factory automatically creates class objects based on the incoming internally specified unique identifier.
5) Hierarchical instantiation 105: the management class instantiates a key disk mode class and a key disk drive class by reading the relevant profile contents: firstly, instantiating each key mode class and storing each key mode class in a linked list; then instantiating a key disk drive class in each key disk mode class; the management class is an interface class provided externally, provides various calling interfaces for accessing and operating the intelligent key disc, and realizes transparency of the inside.
6) The device auto-identification 106: the management class traverses the key disc mode class linked list, identifies the inserted intelligent key disc in the system through the key disc drive class in each key disc mode class, instantiates the identified intelligent key disc as a key disc device class, and provides an instance of the key disc device class for external calling; the key disc mode class creates different key disc drive classes through configuration contents in the configuration file. The key fob drive class is used to invoke an intelligent key fob vendor drive.
7) Access key disk 107: after the key disc device class is instantiated, calling the abstract class driven by each key disc manufacturer by using the key disc device class to access the key disc;
8) the system operation is ended 108.
The scheme of the invention adopts an object-oriented program design scheme, takes the service type as a reference frame, and independently arranges each service in an abstract class, so that each function is more single and simpler, and the whole scheme has stronger expandability.
By adopting the COM technology, due to the fact that cross-platform (Linux) operation is supported, a set of cross-platform general technology similar to COM is realized, the interior is abstracted, and a direct service calling interface is provided for the exterior.
The function call flow is as follows:
1. positioning an inlet: and accessing the value of the environment variable and positioning the installation path of the method.
2. Loading a dynamic library: and loading the dynamic link library under the installation path.
3. Creating a management class: the management class is instantiated by passing in the specified GUID through the class factory interface.
4. Hierarchical instantiation: the key disc management class instantiates the equipment mode class and stores the equipment mode class in a linked list form; the device mode class instantiates a keydisk drive class for interacting with the vendor driver.
5. Automatic identification of equipment: and traversing the device mode class linked list to obtain an instance of the device driver class which can correctly operate the intelligent key device.
6. Access to the key disk: and calling an interface of the key disk management class, and realizing the operation of the intelligent key disk in a hierarchical calling mode.
Example (b): the application of the present invention to the Jinge electronic signature V9 version- -OFFICE signature is specifically described as an embodiment:
previous version of gold grid electronic signature (version V8) use example:
the user environment is as follows: the user has two intelligent key discs on hand, and the models are respectively: the system comprises a dragon vein GM3000 and a flying ePass3003, wherein hardware drivers of the two intelligent key disks are installed on a user computer;
user requirements: the gold grid electronic signature-OFFICE signature is used, and the dragon-vein GM3000 intelligent key disk and the flying ePass3003 intelligent key disk are used for respectively adding the electronic signature on the same document on the WORD document.
Version V8 flow: firstly, modifying a configuration file to enable an OFFICE signature to support a Tornado GM3000 intelligent key disk, then adjusting a corresponding dynamic library name of an OFFICE signature component, loading a drive file of the corresponding intelligent key disk by the signature component, reopening a WORD document, inserting the corresponding intelligent key disk, and stamping; pulling out the intelligent key disk of the Tornado GM3000, closing WORD, modifying the configuration file to enable the OFFICE signature to support the intelligent key disk of the Feitian ePass3003, adjusting the corresponding dynamic library name of the OFFICE signature component, re-opening the WORD file, inserting the corresponding intelligent key disk, and sealing.
The process after the invention is used: opening a WORD document, loading a signature component into the method, inserting a dragon vein GM3000 intelligent key disk by a user, and stamping; and (4) pulling out the Longmai GM3000 intelligent key disk, inserting the flying ePass3003 intelligent key disk, and stamping.
Note: after the method and the system are used, a user can not pull out the intelligent key disc, and the user cannot select the type of the intelligent key disc device on a software interface by himself due to the implementation problem of the client, so that the unused intelligent key disc needs to be pulled out. But this operation is not a drawback of the present invention.
And (3) effect comparison: as can be seen from the above operation flow, under the same requirements and background, the operation steps after the method of the invention is used are simpler, and the efficiency is higher.
The method comprises the following specific operation steps in the embodiment:
when the OFFICE signature component loads the method of the present invention, the method of the present invention starts 101, reads the environment variable of KGKEY _ HOME, obtains the disk installation path 102 of the method of the present invention, loads the method of the present invention 103, after creating the management class 104, instantiates the device driver classes of the dragon GM3000 and the flying ePass3003, respectively loads the driver libraries 105 of the corresponding devices in the device driver classes of the dragon GM3000 and the flying ePass3003, after the user inserts an intelligent key device, the management class performs device auto-identification 106 through the device driver class cycle traversal stored in the device driver list, accesses 107 the inserted intelligent key device until finding the corresponding device driver instance or the cycle traversal is finished 108.
In summary, the present invention can mix a plurality of intelligent key disks of the same model or a plurality of intelligent key disks of different models; the method has the advantages of easy expansibility: when a novel intelligent key disc needs to be used, only corresponding device drivers need to be developed and then added into a configuration file, and the novel intelligent key disc can be used. And the device management class is a pass-through class and does not need to be modified. Cross-platform use is realized: the method can be used under windows, Linux and other platforms. The adopted COM technology is not a complete Component Object Model (Component Object Model) which is a set of COM-like models designed based on the COM technology. Compared with the real COM technology, the advantage is that the same COM calling mode can be used on Linux. The management class and the drive class are divided, so that the management class is universal, and the new intelligent key disc can be adapted to the updated drive class.

Claims (7)

1. A scheduling method based on multiple intelligent key disks is characterized by comprising the following steps:
1) starting the system;
2) positioning an inlet: positioning to a specified default installation path of the disk by judging system environment variables, wherein the installation path is installed in a directory of X86 or X64 by an installation program according to different operating systems;
3) loading a dynamic library: finding a dynamic link library of an entrance from the installation path, dynamically loading, using a CreateInstance interface according to a COM calling mode, transmitting a specified GUID global unique identifier of the class factory, and creating a class factory instance;
4) creating a management class: the GUID of the management class is transmitted through an interface of the class factory, the management class is instantiated, and after the management class is created, the class factory instance is destroyed, so that system resources are saved conveniently;
5) hierarchical instantiation: the management class instantiates a key disk mode class and a key disk drive class by reading the relevant profile contents: firstly, instantiating each key mode class and storing each key mode class in a linked list; then instantiating a key disk drive class in each key disk mode class;
6) automatic identification of equipment: the management class traverses the key disc mode class linked list, identifies the inserted intelligent key disc in the system through the key disc drive class in each key disc mode class, instantiates the identified intelligent key disc as a key disc device class, and provides an instance of the key disc device class for external calling;
7) access to the key disk: after the key disc device class is instantiated, calling the abstract class driven by each key disc manufacturer by using the key disc device class to access the key disc;
8) and finishing the system operation.
2. The method of claim 1, wherein the system environment variable is KGKEY _ HOME or KGKEY _ HOME _ X64.
3. The method of claim 1, wherein the installation path further comprises a dynamically linked library and associated configuration files.
4. The multi-intelligent key fob based scheduling method of claim 1, wherein the class factory automatically creates class objects based on an incoming internally specified globally unique identifier.
5. The scheduling method of claim 1, wherein the management class is an interface class provided to the outside, which provides various call interfaces for access and operation to the smart key disk, and makes the inside transparent.
6. A multi-intelligent-key-disc-based scheduling method according to claim 1, wherein the key disc mode classes create different key disc drive classes through configuration contents in a configuration file.
7. A multi-intelligent-key-disk-based scheduling method according to claim 1, wherein the key disk drive class is used to invoke an intelligent key disk vendor drive.
CN201611064962.9A 2016-11-28 2016-11-28 Scheduling method based on multiple intelligent key discs Active CN106775656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611064962.9A CN106775656B (en) 2016-11-28 2016-11-28 Scheduling method based on multiple intelligent key discs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611064962.9A CN106775656B (en) 2016-11-28 2016-11-28 Scheduling method based on multiple intelligent key discs

Publications (2)

Publication Number Publication Date
CN106775656A CN106775656A (en) 2017-05-31
CN106775656B true CN106775656B (en) 2020-03-31

Family

ID=58902069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611064962.9A Active CN106775656B (en) 2016-11-28 2016-11-28 Scheduling method based on multiple intelligent key discs

Country Status (1)

Country Link
CN (1) CN106775656B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341423B (en) * 2017-07-13 2020-10-09 金邦达有限公司 Test method and test equipment for smart card and computer readable storage medium
CN107729164A (en) * 2017-10-11 2018-02-23 江西金格科技股份有限公司 The method that intelligent key disk is accessed based on inter-process communication techniques
CN112114778B (en) * 2020-07-03 2024-04-02 上海金融期货信息技术有限公司 Cross-platform dynamic library algorithm management system supporting horizontal expansion
CN112286542A (en) * 2020-11-05 2021-01-29 江西金格科技股份有限公司 Method for automatically acquiring drive from cloud based on intelligent key disk and installing and using drive

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593256A (en) * 2008-05-26 2009-12-02 北京飞天诚信科技有限公司 Based on a kind of secured inputting method under the Windows operating system
CN102609666A (en) * 2012-01-20 2012-07-25 飞天诚信科技股份有限公司 Protecting method for packing executable program
CN102724205A (en) * 2012-06-27 2012-10-10 浙江中控软件技术有限公司 Method for encrypting communication process in industrial field and data collection device
CN102842005A (en) * 2011-06-21 2012-12-26 国民技术股份有限公司 CSP (chip scale package) module of TSPI (telephony service provider interface) based on TSM (tivoli storage manager) and CSP implementation method
CN103034491A (en) * 2012-12-06 2013-04-10 国电南瑞科技股份有限公司 Implementation system and method for power system interface integration
CN103635911A (en) * 2011-06-30 2014-03-12 三星电子株式会社 Storage device and host device for protecting content and method thereof
CN106021340A (en) * 2016-05-09 2016-10-12 统通信(苏州)有限公司 A method for realizing Android terminal dynamic table controls

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593256A (en) * 2008-05-26 2009-12-02 北京飞天诚信科技有限公司 Based on a kind of secured inputting method under the Windows operating system
CN102842005A (en) * 2011-06-21 2012-12-26 国民技术股份有限公司 CSP (chip scale package) module of TSPI (telephony service provider interface) based on TSM (tivoli storage manager) and CSP implementation method
CN103635911A (en) * 2011-06-30 2014-03-12 三星电子株式会社 Storage device and host device for protecting content and method thereof
CN102609666A (en) * 2012-01-20 2012-07-25 飞天诚信科技股份有限公司 Protecting method for packing executable program
CN102724205A (en) * 2012-06-27 2012-10-10 浙江中控软件技术有限公司 Method for encrypting communication process in industrial field and data collection device
CN103034491A (en) * 2012-12-06 2013-04-10 国电南瑞科技股份有限公司 Implementation system and method for power system interface integration
CN106021340A (en) * 2016-05-09 2016-10-12 统通信(苏州)有限公司 A method for realizing Android terminal dynamic table controls

Also Published As

Publication number Publication date
CN106775656A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US9934005B2 (en) Dynamically building locale objects or subsections of locale objects based on historical data
CN106775656B (en) Scheduling method based on multiple intelligent key discs
WO2016155388A1 (en) Method and device for installing and running application
US8307015B2 (en) Decorated model architecture for efficient model-driven application development
CN105378689B (en) Method and apparatus for unified Extensible Firmware Interface (UEFI) driver and agreement
WO2004044736A2 (en) System and method for configuring software from reusable code
US11307833B2 (en) Data driven embedded application building and configuration
US8176468B2 (en) Multivariable transfer functions
US20170102924A1 (en) Software architecture for embedded systems
WO2021227971A1 (en) Sandbox implementation method, device, apparatus, and storage medium
US7096475B2 (en) Runlets as application execution units
US20080114804A1 (en) System and method for interoperating with foreign objects from a single language computing environment
CN104699518A (en) Multi-purpose meter reading machine adapter based on microkernel plug-in and realization method thereof
US9141353B2 (en) Dynamically building locale objects at run-time
Bucanek et al. Learn Objective-C for Java Developers
CN100373332C (en) Method for constructing coupling system
CN112650512A (en) Hardware driving method and device, terminal and storage medium
CN110262874A (en) A kind of novel Internet of Things multiple task operating system and method based on java virtual machine
CN110569187A (en) Automatic testing method, device and equipment for multi-platform system application
CN111610968B (en) Development method and device for multi-domain MicroPython program
US9792093B2 (en) Dynamically building subsections of locale objects at run-time
CN115801880A (en) Automatic driving middleware adaptation method and machine readable storage medium
Evjen et al. PROFESSIONAL VB 2005 WITH. NET 3.0
Tolstouhhov Conceptual analysis and development of the user interface framework
van Zutven Scilab as an alternative for Matlab: implementing graphical user interface in Scilab 4 including a short introduction to multi-rate tasking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 330096 15th floor, lvyue science and technology building, 579 torch street, high tech Zone, Nanchang City, Jiangxi Province

Patentee after: Jiangxi Jinge Technology Co.,Ltd.

Address before: 330096 15th floor, lvyue science and technology building, 579 torch street, high tech Zone, Nanchang City, Jiangxi Province

Patentee before: JIANGXI KINGGRID TECHNOLOGY CO.,LTD.