CN116402070B - SP service realization method and system for multiple certificates - Google Patents

SP service realization method and system for multiple certificates Download PDF

Info

Publication number
CN116402070B
CN116402070B CN202310626183.7A CN202310626183A CN116402070B CN 116402070 B CN116402070 B CN 116402070B CN 202310626183 A CN202310626183 A CN 202310626183A CN 116402070 B CN116402070 B CN 116402070B
Authority
CN
China
Prior art keywords
certificate
information
target
reading
service
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
CN202310626183.7A
Other languages
Chinese (zh)
Other versions
CN116402070A (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.)
China Electronics Great Wall Changsha Information Technology Co ltd
Original Assignee
China Electronics Great Wall Changsha Information Technology Co ltd
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 China Electronics Great Wall Changsha Information Technology Co ltd filed Critical China Electronics Great Wall Changsha Information Technology Co ltd
Priority to CN202310626183.7A priority Critical patent/CN116402070B/en
Publication of CN116402070A publication Critical patent/CN116402070A/en
Application granted granted Critical
Publication of CN116402070B publication Critical patent/CN116402070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0004Hybrid readers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/01Details
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a SP service realization method and system for multiple certificates, wherein the system comprises the following steps: an application, a device SP service and a plurality of credential reading hardware modules; the application program sends a certificate reading instruction to the equipment SP service; the equipment SP service matches the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calls the target certificate reading hardware module to read the certificate information; and formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information, and sending the certificate reading information to an application program. The equipment SP service realizes the automatic matching of the certificate reading hardware module, so that the certificate information of various types of certificates can be read, the certificate information is formatted by the equipment SP service, the requirements of different application programs on the certificate information are met, and the application service can be smoothly executed under the condition of various certificates.

Description

SP service realization method and system for multiple certificates
Technical Field
The invention belongs to the field of financial services, and particularly relates to an SP service realization method and system for multiple certificates.
Background
Currently, most financial terminal devices conform to the CEN/XFS (The European Committee for Standardization/Extensions for Financial Services) specification based on Windows operating system and the infrastructure architecture PISA (PISA Pioneering Infrastructure System Architecture) specification under Linux system. The two sets of specifications only define the interface of certificate reading, do not agree on the mode and information format of certificate type reading, and the access of different certificate reading modules and the access of a service system lack of unified standards, so that the realization of SP (Service Provider) service programs is diversified and fragmented, and the updating iteration of the whole set of certificate information reading service system is not facilitated. So that the application service cannot be executed through the SP service in the case where there are various certificates.
Disclosure of Invention
The invention provides a method and a system for realizing SP service of multiple certificates, which realize automatic matching of a hardware module for reading certificates through equipment SP service, thereby realizing reading of certificate information of multiple types of certificates, formatting the certificate information through the equipment SP service, meeting the requirements of different application programs on the certificate information, and enabling application business to be smoothly executed under the condition of multiple certificates.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect, there is provided an SP service implementation system for multiple credentials, comprising:
the system comprises an application program, an equipment SP service and a plurality of certificate reading hardware modules, wherein each certificate reading hardware module corresponds to a plurality of types of certificates;
the application program is connected with an equipment SP service, and the equipment SP service is connected with each certificate reading hardware module;
the application program is used for generating a certificate reading instruction and sending the certificate reading instruction to the equipment SP service when the certificate reading service is required;
the equipment SP service is used for matching the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calling the target certificate reading hardware module to read the certificate information;
the equipment SP service is also used for formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information and sending the certificate reading information to the application program.
Optionally, the device SP service includes:
the device comprises a dispatching layer, a logic layer and a driving layer, wherein the driving layer comprises a plurality of driving libraries, and each driving library corresponds to a certificate reading hardware module;
the scheduling layer is connected with the application program and the logic layer, and the logic layer is connected with the driving layer;
each driving library in the driving layer is respectively connected with the corresponding certificate reading hardware module.
Optionally, the scheduling layer is used for receiving a certificate reading instruction sent by the application program;
the logic layer is used for matching the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calling a target driving library corresponding to the target certificate reading hardware module in the driving layer;
the target drive library is used for reading the certificate information through the target certificate reading hardware module;
the logic layer is also used for formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate read information and sending the certificate read information to the application program.
Optionally, the device SP service further includes:
the configuration table presetting unit is used for presetting a corresponding certificate field mapping table for a driving library corresponding to each certificate reading hardware module, wherein the certificate field mapping table is used for realizing keyword mapping of field information of each type of certificate;
the configuration table presetting unit is further configured to configure a certificate information output mapping table for application requirements of all application programs, wherein the certificate information output mapping table comprises a mapping between the application requirements of each application program and data source information, and the data source information represents a data source of requirement certificate information of the application requirements of each application program.
Optionally, the logic layer is further configured to load driving libraries of all the credential reading hardware modules when the device SP service is started, where each driving library reads a respective credential field mapping table to obtain module reading capability information corresponding to each credential reading hardware module, where the module reading capability information includes a capability of reading a keyword of a corresponding credential.
Optionally, the credential read instruction includes a credential data source for the application requirements;
the logic layer is also used for analyzing the certificate reading instruction to obtain a certificate data source of application requirements;
the logic layer is also used for determining target application requirements according to the certificate data source;
the logic layer is also used for judging whether target data source information corresponding to the target application requirement exists in the certificate information output mapping table, and if the target data source information does not exist, feeding back certificate reading failure information to the application program; if so, determining a target certificate and a target data source according to the target data source information;
the logic layer is also used for judging whether a target driving library corresponding to the target certificate exists in the certificate field mapping table, and if the target driving library does not exist, the logic layer feeds back the certificate reading failure information to the application program; if the target certificate exists, determining target module reading capability information corresponding to the corresponding target certificate reading hardware module according to the target driving library;
the logic layer is also used for determining field keywords of the target certificate which can be read by the target certificate reading hardware module according to the target module reading capability information;
the logic layer is also used for obtaining a demand keyword character string of demand certificate information of the demand of the target application according to the target data source;
the logic layer is also used for judging whether the field keywords cover all the requirement keywords in the requirement keyword character string, and if not, feeding back the evidence reading failure information to the application program; and if so, calling the target drive library to read the certificate information through the target certificate reading hardware module.
Optionally, the certificate information is a required keyword string, and the required keyword string includes keyword sub-strings corresponding to all keywords of the field keywords;
the logic layer is also used for carrying out key value mapping on the certificate information to obtain the initial position of each keyword substring in the required keyword character string;
and the logic layer is also used for formatting the certificate information based on a preset certificate information formatting output mechanism and a starting position to obtain certificate reading information.
In a second aspect, there is provided an SP service implementation method for multiple certificates, applied to the SP service implementation system for multiple certificates of the first aspect, the method comprising:
when the certificate reading service is needed, generating a certificate reading instruction;
according to the certificate reading instruction, matching a corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism, and calling the target certificate reading hardware module to read the certificate information;
and formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information.
Optionally, the credential read instructions include a credential data source for the application requirements,
according to the certificate reading instruction, matching the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism, and calling the target certificate reading hardware module to read the certificate information, wherein the method comprises the following steps:
analyzing the certificate reading instruction to obtain a certificate data source of the application requirement;
determining target application requirements according to the certificate data source;
judging whether target data source information corresponding to target application requirements exists in the certificate information output mapping table, and if not, feeding back certificate reading failure information to the application program; if so, determining a target certificate and a target data source according to the target data source information;
judging whether a target driving library corresponding to the target certificate exists in the certificate field mapping table, and if the target driving library does not exist, feeding back certificate reading failure information to the application program; if the target certificate exists, determining target module reading capability information corresponding to the corresponding target certificate reading hardware module according to the target driving library;
according to the reading capability information of the target module, determining the field keywords of the target certificate which can be read by the target certificate reading hardware module;
obtaining a demand keyword string of demand certificate information of a target application demand according to a target data source;
judging whether the field keywords cover all the requirement keywords in the requirement keyword character string, and if not, feeding back the evidence reading failure information to the application program; and if so, calling the target drive library to read the certificate information through the target certificate reading hardware module.
The invention has the beneficial effects that:
the system comprises an application program, an equipment SP service and a plurality of certificate reading hardware modules, wherein each certificate reading hardware module corresponds to a plurality of types of certificates; the application program is connected with an equipment SP service, and the equipment SP service is connected with each certificate reading hardware module; the application program is used for generating a certificate reading instruction and sending the certificate reading instruction to the equipment SP service when the certificate reading service is required; the equipment SP service is used for matching the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calling the target certificate reading hardware module to read the certificate information; the equipment SP service is also used for formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information and sending the certificate reading information to the application program. The equipment SP service realizes the automatic matching of the certificate reading hardware module, so that the certificate information of various types of certificates can be read, the certificate information is formatted by the equipment SP service, the requirements of different application programs on the certificate information are met, and the application service can be smoothly executed under the condition of various certificates.
Drawings
FIG. 1 is a block diagram of an SP service implementation system for multiple credentials of the present invention;
FIG. 2 is a first block diagram of the service of the device SP of the present invention;
FIG. 3 is a second block diagram of the service of the device SP of the present invention;
FIG. 4 is a flow chart of a SP service implementation method for multiple credentials of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present invention, and are not intended to limit the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an SP service implementation system for multiple certificates, including:
an application 101, a device SP service 102, and a plurality of credential reading hardware modules 103, each credential reading hardware module 103 corresponding to a plurality of types of credentials;
the application 101 is connected to the device SP service 102, and the device SP service 102 is connected to each credential reading hardware module 103;
the application 101 is configured to generate a credential reading instruction when a credential reading service is required, and send the credential reading instruction to the device SP service 102;
the device SP service 102 is configured to match, according to a credential reading instruction, a corresponding target credential reading hardware module based on a preset credential reading capability matching mechanism, and call the target credential reading hardware module to read credential information;
the device SP service 102 is further configured to format the credential information based on a preset credential information format output mechanism, obtain credential read information, and send the credential read information to the application 101.
The implementation principle of the embodiment of the invention is as follows:
the system comprises an application program, an equipment SP service and a plurality of certificate reading hardware modules, wherein each certificate reading hardware module corresponds to a plurality of types of certificates, and the types of the certificates comprise second-generation identity cards and the like; the application program is connected with an equipment SP service, and the equipment SP service is connected with each certificate reading hardware module; the application program is used for generating a certificate reading instruction and sending the certificate reading instruction to the equipment SP service when the certificate reading service is required; the equipment SP service is used for matching the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calling the target certificate reading hardware module to read the certificate information; the equipment SP service is also used for formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information and sending the certificate reading information to the application program. The equipment SP service realizes the automatic matching of the certificate reading hardware module, so that the certificate information of various types of certificates can be read, the certificate information is formatted by the equipment SP service, the requirements of different application programs on the certificate information are met, and the application service can be smoothly executed under the condition of various certificates.
It should be noted that the embodiments of the present invention are applicable to the service of the credential type device SP using the PISA driving standard or using the WOSA/XFS driving standard.
According to the embodiment shown in fig. 1 above, in some embodiments of the invention, as shown in fig. 2, the device SP service 102 includes:
the dispatching layer 201, the logic layer 202 and the driving layer 203, wherein the driving layer comprises a plurality of driving libraries 204, and each driving library 204 corresponds to one certificate reading hardware module 103;
the scheduling layer 201 is connected with the application 101 and the logic layer 202, and the logic layer 202 is connected with the driving layer 203;
each drive library 204 in the drive layer 203 is respectively connected with the corresponding certificate reading hardware module 103;
a scheduling layer 201, configured to receive a credential reading instruction sent by the application 101;
the logic layer 202 is configured to match a corresponding target credential reading hardware module based on a preset credential reading capability matching mechanism according to the credential reading instruction, and call a target driver library corresponding to the target credential reading hardware module in the driver layer 203;
the target drive library is used for reading the certificate information through the target certificate reading hardware module;
the logic layer 202 is further configured to format the credential information based on a preset credential information format output mechanism, obtain credential read information, and send the credential read information to the application program.
According to the embodiments shown in fig. 1 and 2 above, in some embodiments of the invention, as shown in fig. 3, the device SP service 102 further comprises:
a configuration table presetting unit 301, configured to preset a corresponding certificate field mapping table for a driver library corresponding to each certificate reading hardware module, where the certificate field mapping table is used to implement keyword mapping of field information of each type of certificate;
the configuration table presetting unit 301 is further configured to configure a credential information output mapping table for application requirements of all application programs, where the credential information output mapping table includes a mapping between an application requirement of each application program and data source information, and the data source information represents a data source of requirement credential information of the application requirement of each application program.
When the device SP service 102 is started, the driver libraries 204 of all the credential reading hardware modules 103 are loaded, and each driver library 204 reads the respective credential field mapping table to obtain module reading capability information corresponding to each credential reading hardware module, where the module reading capability information includes the capability of reading keywords of the corresponding credential.
Preferably, in some embodiments of the present invention, the credential read instructions include a credential data source required by the application, the logic layer further configured to perform the steps of:
analyzing the certificate reading instruction to obtain a certificate data source of the application requirement, and targeting the application requirement according to the certificate data source of the application requirement;
judging whether target data source information corresponding to target application requirements exists in the certificate information output mapping table, and if not, feeding back certificate reading failure information to the application program; if so, determining a target certificate and a target data source according to the target data source information;
judging whether a target driving library corresponding to the target certificate exists in the certificate field mapping table, and if the target driving library does not exist, feeding back certificate reading failure information to the application program; if the target certificate exists, determining target module reading capability information corresponding to the corresponding target certificate reading hardware module according to the target driving library;
according to the reading capability information of the target module, determining the field keywords of the target certificate which can be read by the target certificate reading hardware module;
obtaining a demand keyword string of demand certificate information of a target application demand according to a target data source;
judging whether the field keywords cover all the requirement keywords in the requirement keyword character string, and if not, feeding back the evidence reading failure information to the application program; and if so, calling the target drive library to read the certificate information through the target certificate reading hardware module.
The procedure of how to perform the matching of the reading capability is described in the above embodiment, and the new formatted output of the certificate is described below by way of example.
Preferably, in some embodiments of the present invention, the certificate information is a requirement keyword string, and the requirement keyword string includes keyword sub-strings corresponding to all keywords of the field keywords;
performing key value mapping on the certificate information to obtain the initial position of each keyword substring in the required keyword character string;
and formatting the certificate information based on a preset certificate information formatting output mechanism and a starting position to obtain certificate reading information.
The specific process is as follows:
s1: firstly initializing a key value Map of field information, and storing key word information and read corresponding certificate data in a variable A in a Map form, for example, reading second-generation identity card information name=Zhang San;
s2: analyzing format string information of the matching certificate, sequentially storing start and stop positions of keyword substrings in the format string in an array container variable B, for example, designating format string information of a second-generation identity card of the certificate as { IDType } |{ Name } | { Gender } | { national } | { Birthday } | { Address } | { IDCardNo } | { GrantDept } | { ValidiyBegin } | { Validityend } |, recording start and stop positions (B [0] =0, B [1] =7) of IDType in the variable B, and start and stop positions (B [2] =9, B [3] =14) of Name, and sequentially recording all keyword substrings;
s3: starting to poll the element information in the variable B, setting an offset position variable offset=0, and an element index i=0;
s4: judging the distance difference between the element B [ i ] and the offset variable offset, if the distance difference is greater than 0, copying the data between two positions in the format character string to the back of the character string variable C, and executing the step S7; otherwise, executing the step S5;
s5: judging the distance difference between the element B [ i+1] and the element B [ i ], if the distance difference is equal to 1, performing special character escape on the data appointed by the element B [ i+1] and copying the data to the back of the character string variable C, and executing the step S7; otherwise, executing step S6;
s6: judging the distance difference between the element B [ i+1] and the element B [ i ], if the distance difference is larger than 1, extracting the substring (namely the keyword) between the appointed positions of the element B [ i+1] and the element B [ i ], searching the certificate information corresponding to the substring (keyword) from the variable A, copying the certificate information to the back of the character string variable C, and executing the step S7;
s7: updating the offset variable offset=b [ i+1] +1, and determining whether the index value is smaller than the total number of elements of the variable B, if so, executing step S4, otherwise, executing step S8.
S8: and finishing formatting the certificate information, and outputting the content of the variable C to the application program.
The SP service implementation system for multiple certificates is described in the above embodiments, and the SP service implementation method for multiple certificates applied to the SP service implementation system for multiple certificates is described below by way of embodiments, as shown in fig. 4, and the SP service implementation method for multiple certificates according to the embodiment of the present invention includes:
401, when a certificate reading service is required, generating a certificate reading instruction;
402, according to the certificate reading instruction, matching a corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism, and calling the target certificate reading hardware module to read the certificate information;
403, formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information.
The invention has the beneficial effects that:
the SP service implementation system for the multiple certificates comprises an application program, an equipment SP service and a plurality of certificate reading hardware modules, wherein each certificate reading hardware module corresponds to one type of certificate; the application program is connected with an equipment SP service, and the equipment SP service is connected with each certificate reading hardware module; when the certificate reading service is needed, generating a certificate reading instruction; according to the certificate reading instruction, matching a corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism, and calling the target certificate reading hardware module to read the certificate information; and formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate reading information. The equipment SP service realizes the automatic matching of the certificate reading hardware module, so that the certificate information of various types of certificates can be read, the certificate information is formatted by the equipment SP service, the requirements of different application programs on the certificate information are met, and the application service can be smoothly executed under the condition of various certificates.
Preferably, based on the embodiment shown in fig. 4, in some embodiments of the present invention, the specific content of step 402 is as follows:
according to the certificate reading instruction, matching the corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism, and calling the target certificate reading hardware module to read the certificate information, wherein the method comprises the following steps:
analyzing the certificate reading instruction to obtain a certificate data source of the application requirement;
determining a target application demand according to a certificate data source of the application demand;
judging whether target data source information corresponding to target application requirements exists in the certificate information output mapping table, and if not, feeding back certificate reading failure information to the application program; if so, determining a target certificate and a target data source according to the target data source information;
judging whether a target driving library corresponding to the target certificate exists in the certificate field mapping table, and if the target driving library does not exist, feeding back certificate reading failure information to the application program; if the target certificate exists, determining target module reading capability information corresponding to the corresponding target certificate reading hardware module according to the target driving library;
according to the reading capability information of the target module, determining the field keywords of the target certificate which can be read by the target certificate reading hardware module;
obtaining a demand keyword string of demand certificate information of a target application demand according to a target data source;
judging whether the field keywords cover all the requirement keywords in the requirement keyword character string, and if not, feeding back the evidence reading failure information to the application program; and if so, calling the target drive library to read the certificate information through the target certificate reading hardware module.
In the above embodiment, the process of matching the certificate reading capability mainly performs comparison on the information of the certificate information output mapping table and the module reading capability information of the reading hardware module, and completes the acquisition of the certificate information by combining the reading data source issued by the application.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is illustrative of the present invention and is not to be construed as limiting thereof, but rather as providing for the use of additional embodiments and advantages of all such modifications, equivalents, improvements and similar to the present invention are intended to be included within the scope of the present invention as defined by the appended claims.

Claims (6)

1. An SP service implementation system for multiple credentials, comprising:
the system comprises an application program, an equipment SP service and a plurality of certificate reading hardware modules, wherein each certificate reading hardware module corresponds to a plurality of types of certificates;
the application program is connected with the equipment SP service, and the equipment SP service is connected with each certificate reading hardware module;
the application program is used for generating a certificate reading instruction when the certificate reading service is required, and sending the certificate reading instruction to the equipment SP service;
the equipment SP service is used for matching a corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calling the target certificate reading hardware module to read the certificate information;
the equipment SP service is further used for formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate read information, and sending the certificate read information to the application program;
the device SP service includes:
the device comprises a dispatching layer, a logic layer and a driving layer, wherein the driving layer comprises a plurality of driving libraries, and each driving library corresponds to one certificate reading hardware module;
the scheduling layer is connected with the application program and the logic layer, and the logic layer is connected with the driving layer;
each driving library in the driving layer is respectively connected with the corresponding certificate reading hardware module;
the scheduling layer is used for receiving the certificate reading instruction sent by the application program;
the logic layer is used for matching corresponding target certificate reading hardware modules based on a preset certificate reading capability matching mechanism according to the certificate reading instruction, and calling a target driving library corresponding to the target certificate reading hardware modules in the driving layer;
the target drive library is used for reading certificate information through the target certificate reading hardware module;
the logic layer is further used for formatting the certificate information based on a preset certificate information formatting output mechanism to obtain certificate read information, and sending the certificate read information to the application program;
the device SP service further comprises:
the configuration table presetting unit is used for presetting a corresponding certificate field mapping table for a driving library corresponding to each certificate reading hardware module, wherein the certificate field mapping table is used for realizing keyword mapping of field information of each type of certificates;
the configuration table presetting unit is further configured to configure a certificate information output mapping table for application requirements of all application programs, where the certificate information output mapping table includes a mapping between an application requirement of each application program and data source information, and the data source information represents a data source of requirement certificate information of the application requirement of each application program.
2. The SP service implementation system for multiple credentials of claim 1 wherein,
the logic layer is further configured to load driving libraries of all the credential reading hardware modules when the device SP service is started, where each driving library reads a respective credential field mapping table to obtain module reading capability information corresponding to each credential reading hardware module, where the module reading capability information includes capability of reading keywords of a corresponding credential.
3. The SP service implementation system for multiple credentials of claim 2 wherein said credential read instructions include a credential data source of application requirements;
the logic layer is also used for analyzing the certificate reading instruction to obtain a certificate data source of application requirements;
the logic layer is further used for determining target application requirements according to the certificate data source;
the logic layer is further configured to determine whether target data source information corresponding to the target application requirement exists in the certificate information output mapping table, and if not, feed back certificate reading failure information to the application program; if so, determining a target certificate and a target data source according to the target data source information;
the logic layer is further configured to determine whether a target driver library corresponding to the target certificate exists in the certificate field mapping table, and if the target driver library does not exist, feed back certificate reading failure information to the application program; if yes, determining target module reading capability information corresponding to the corresponding target certificate reading hardware module according to the target driving library;
the logic layer is further configured to determine, according to the target module reading capability information, that the target certificate reading hardware module is capable of reading a field keyword of the target certificate;
the logic layer is further used for obtaining a demand keyword character string of demand certificate information of the target application demand according to the target data source;
the logic layer is further configured to determine whether the field keyword covers all the requirement keywords in the requirement keyword string, and if not, feed back the certificate reading failure information to the application program; and if so, calling the target drive library to read the certificate information through the target certificate reading hardware module.
4. The SP service implementation system for multiple certificates of claim 3 wherein the certificate information is a demand keyword string containing keyword sub-strings corresponding to all keywords of the field keywords;
the logic layer is further used for performing key value mapping on the certificate information to obtain the starting position of each keyword substring in the required keyword character string;
the logic layer is further configured to perform formatting processing on the certificate information based on a preset certificate information formatting output mechanism and the starting position, so as to obtain certificate reading information.
5. A SP service implementation method for multiple certificates, characterized in that it is applied to the SP service implementation system for multiple certificates according to any one of claims 1 to 4, said method comprising:
when the certificate reading service is needed, generating a certificate reading instruction;
according to the certificate reading instruction, matching a corresponding target certificate reading hardware module based on a preset certificate reading capability matching mechanism, and calling the target certificate reading hardware module to read the certificate information;
based on a preset certificate information formatting output mechanism, formatting the certificate information to obtain certificate reading information;
the method comprises the steps of carrying out formatting processing on the certificate information based on a preset certificate information formatting output mechanism, and before obtaining the certificate read information, further comprising:
presetting a corresponding certificate field mapping table for a driving library corresponding to each certificate reading hardware module, wherein the certificate field mapping table is used for realizing keyword mapping of field information of each type of certificate;
and configuring a certificate information output mapping table for application requirements of all application programs, wherein the certificate information output mapping table comprises a mapping of the application requirements of each application program and data source information, the data source information represents a data source of requirement certificate information of the application requirements of each application program, and the data source represents a position of the requirement certificate information in a certificate.
6. The SP service implementation for multiple credentials of claim 5 wherein the credential read instructions comprise a credential data source of an application requirement,
the method for matching the corresponding target certificate reading hardware module based on the preset certificate reading capability matching mechanism according to the certificate reading instruction, calling the target certificate reading hardware module to read the certificate information comprises the following steps:
analyzing the certificate reading instruction to obtain a certificate data source of application requirements;
determining target application requirements according to the certificate data source;
judging whether target data source information corresponding to the target application requirement exists in the certificate information output mapping table, and if not, feeding back certificate reading failure information to the application program; if so, determining a target certificate and a target data source according to the target data source information;
judging whether a target driving library corresponding to the target certificate exists in the certificate field mapping table, and if not, feeding back certificate reading failure information to the application program; if yes, determining target module reading capability information corresponding to the corresponding target certificate reading hardware module according to the target driving library;
determining field keywords of the target certificate which can be read by the target certificate reading hardware module according to the target module reading capability information;
obtaining a demand keyword string of demand certificate information of the target application demand according to the target data source;
judging whether the field keywords cover all the requirement keywords in the requirement keyword character string, and if not, feeding back evidence reading failure information to the application program; and if so, calling the target drive library to read the certificate information through the target certificate reading hardware module.
CN202310626183.7A 2023-05-31 2023-05-31 SP service realization method and system for multiple certificates Active CN116402070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310626183.7A CN116402070B (en) 2023-05-31 2023-05-31 SP service realization method and system for multiple certificates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310626183.7A CN116402070B (en) 2023-05-31 2023-05-31 SP service realization method and system for multiple certificates

Publications (2)

Publication Number Publication Date
CN116402070A CN116402070A (en) 2023-07-07
CN116402070B true CN116402070B (en) 2023-08-08

Family

ID=87012590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310626183.7A Active CN116402070B (en) 2023-05-31 2023-05-31 SP service realization method and system for multiple certificates

Country Status (1)

Country Link
CN (1) CN116402070B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080104398A (en) * 2007-01-19 2008-12-03 유석호 System for furnishing information caused by propensity to consume to client terminal and method of the same
CN102156853A (en) * 2010-02-11 2011-08-17 深圳鼎识科技有限公司 Certificate reading system and certificate reading method
CN108255757A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Concentration call method, device and the system of peripheral hardware
JP2019168747A (en) * 2018-03-22 2019-10-03 富士ゼロックス株式会社 Document reader and program
CN112381080A (en) * 2020-11-06 2021-02-19 湖南长城信息金融设备有限责任公司 Certificate reading method, device, equipment and medium supporting multi-protocol type
WO2021057138A1 (en) * 2019-09-27 2021-04-01 支付宝(杭州)信息技术有限公司 Certificate recognition method and apparatus
WO2021143088A1 (en) * 2020-01-19 2021-07-22 深圳壹账通智能科技有限公司 Synchronous check method and apparatus for multiple certificate types, and computer device and storage medium
CN114038004A (en) * 2021-11-19 2022-02-11 北京恒安嘉新安全技术有限公司 Certificate information extraction method, device, equipment and storage medium
CN114359923A (en) * 2021-12-02 2022-04-15 盛视科技股份有限公司 Certificate character recognition method and device, computer and storage medium
CN115292578A (en) * 2022-08-09 2022-11-04 西安电子科技大学 OCR-based certificate lost and found system and found method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080104398A (en) * 2007-01-19 2008-12-03 유석호 System for furnishing information caused by propensity to consume to client terminal and method of the same
CN102156853A (en) * 2010-02-11 2011-08-17 深圳鼎识科技有限公司 Certificate reading system and certificate reading method
CN108255757A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Concentration call method, device and the system of peripheral hardware
JP2019168747A (en) * 2018-03-22 2019-10-03 富士ゼロックス株式会社 Document reader and program
WO2021057138A1 (en) * 2019-09-27 2021-04-01 支付宝(杭州)信息技术有限公司 Certificate recognition method and apparatus
WO2021143088A1 (en) * 2020-01-19 2021-07-22 深圳壹账通智能科技有限公司 Synchronous check method and apparatus for multiple certificate types, and computer device and storage medium
CN112381080A (en) * 2020-11-06 2021-02-19 湖南长城信息金融设备有限责任公司 Certificate reading method, device, equipment and medium supporting multi-protocol type
CN114038004A (en) * 2021-11-19 2022-02-11 北京恒安嘉新安全技术有限公司 Certificate information extraction method, device, equipment and storage medium
CN114359923A (en) * 2021-12-02 2022-04-15 盛视科技股份有限公司 Certificate character recognition method and device, computer and storage medium
CN115292578A (en) * 2022-08-09 2022-11-04 西安电子科技大学 OCR-based certificate lost and found system and found method

Also Published As

Publication number Publication date
CN116402070A (en) 2023-07-07

Similar Documents

Publication Publication Date Title
EP3333704B1 (en) Method and apparatus for repairing kernel vulnerability
CN110377563A (en) Document handling method and device and electronic equipment and readable storage medium storing program for executing
CN111274045A (en) Multi-platform docking method and device, computer equipment and readable storage medium
CN111400246B (en) Asynchronous file import method, device, computer equipment and storage medium
CN109032796B (en) Data processing method and device
CN109814896A (en) Server updating method, apparatus, computer system and readable storage system
WO2019043481A1 (en) Context aware delta algorithm for genomic files
CN111831920A (en) User demand analysis method and device, computer equipment and storage medium
CN112988997A (en) Response method and system of intelligent customer service, computer equipment and storage medium
CN110795387A (en) Data import method, data export device and data processing system
CN112445596B (en) Data importing method, system and storage medium based on multithreading
CN110347673A (en) Data file loading method, device, computer equipment and storage medium
CN116402070B (en) SP service realization method and system for multiple certificates
CN114626352B (en) Report automatic generation method, device, computer equipment and storage medium
CN116009893A (en) Method, device, equipment and storage medium for upgrading software
CN114942781A (en) Data format adaptation method and device for data reading
CN111552779A (en) Man-machine conversation method, device, medium and electronic equipment
CN112417012A (en) Data processing method and system
CN107291676B (en) Method for cutting off voice file, terminal equipment and computer storage medium
CN112752154A (en) Software upgrading method and device and smart television
CN110134387A (en) Document template data processing method, device and computer equipment in loan transaction
CN115242861B (en) RTE layer communication data mapping configuration file generation method and system, computer readable storage medium and electronic equipment
CN114443582B (en) File system mounting method, device, equipment and medium on operating system
CN115514728B (en) Message pushing method, device, computer equipment and storage medium
CN115061784B (en) Method and device for sharing memory by security container

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