CN110347691A - Type of credential method of calibration, device, computer equipment and storage medium - Google Patents
Type of credential method of calibration, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110347691A CN110347691A CN201910455983.0A CN201910455983A CN110347691A CN 110347691 A CN110347691 A CN 110347691A CN 201910455983 A CN201910455983 A CN 201910455983A CN 110347691 A CN110347691 A CN 110347691A
- Authority
- CN
- China
- Prior art keywords
- type
- credential
- default
- verified
- task
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 101
- 238000012795 verification Methods 0.000 claims abstract description 59
- 238000007689 inspection Methods 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 17
- 238000007373 indentation Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000008878 coupling Effects 0.000 abstract description 5
- 238000010168 coupling process Methods 0.000 abstract description 5
- 238000005859 coupling reaction Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computational Linguistics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the invention discloses a kind of type of credential method of calibration, device, computer equipment and storage mediums.The present invention is applied to the R&D process in exploitation and optimizes field.The described method includes: obtaining default type of credential table from presetting database, wherein be preset with the corresponding type of credential set of task to be verified in the default type of credential table;The verification rule of type of credential in type of credential set described in default common class is called, to generate the inspection method of calibration of the corresponding task to be verified;If receiving the task to be verified needed to be implemented, call the corresponding method of calibration of task to be verified needed to be implemented to verify to the type of credential in the task to be verified needed to be implemented.The extension of type of credential may be implemented in method by implementing the embodiment of the present invention, reduces code redundancy, reduces coupling, guarantees the safety of system.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of type of credential method of calibration, device, computer to set
Standby and storage medium.
Background technique
With science and technology and expanding economy, rules and regulations are improved day by day, and more and more type of credential are widely applied to
In people's lives.People commonly use various types of certificates in life to prove the identity of oneself, and input is demonstrate,proved in the terminal
Piece number code is verified by verifying backstage.Existing type of credential verification rule is substantially similar, verifies in type of credential
When code write dead, when encountering type of credential extension, newly-increased type of credential is added in code, just must
Code need be changed, process is cumbersome, code redundancy, and is easy to appear mistake.
Summary of the invention
The embodiment of the invention provides a kind of type of credential method of calibration, device, computer equipment and storage mediums, it is intended to
Solve the problem of that type of credential extension needs to change code very complicated.
In a first aspect, the embodiment of the invention provides a kind of type of credential methods of calibration comprising: from presetting database
Obtain default type of credential table, wherein the corresponding type of credential collection of task to be verified is preset in the default type of credential table
It closes;The verification rule of type of credential in type of credential set described in default common class is called, it is described to be verified to generate correspondence
The inspection method of calibration of task;If receiving the task to be verified needed to be implemented, call the task to be verified needed to be implemented corresponding
Method of calibration is to verify the type of credential in the task to be verified needed to be implemented.
Second aspect, the embodiment of the invention also provides a kind of type of credential calibration equipments comprising: acquiring unit is used
Type of credential table is preset in obtaining from presetting database, wherein is preset with task to be verified in the default type of credential table
Corresponding type of credential set;Generation unit, for calling type of credential in type of credential set described in default common class
Verification rule, to generate the inspection method of calibration of the corresponding task to be verified;Verification unit, if being needed to be implemented for receiving
Task to be verified calls the corresponding method of calibration of task to be verified needed to be implemented in the task to be verified needed to be implemented
Type of credential is verified.
The third aspect, the embodiment of the invention also provides a kind of computer equipments comprising memory and processor, it is described
Computer program is stored on memory, the processor realizes the above method when executing the computer program.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage medium, the storage medium storage
There is computer program, the computer program can realize the above method when being executed by a processor.
The embodiment of the invention provides a kind of type of credential method of calibration, device, computer equipment and storage mediums.Its
In, which comprises default type of credential table is obtained from presetting database, wherein pre- in the default type of credential table
Equipped with the corresponding type of credential set of task to be verified;Call type of credential in type of credential set described in default common class
Verification rule, to generate the inspection method of calibration of the corresponding task to be verified;If receiving the task to be verified needed to be implemented, adjust
With the corresponding method of calibration of task to be verified needed to be implemented to be carried out to the type of credential in the task to be verified needed to be implemented
Verification.The embodiment of the present invention due to obtaining default type of credential table from presetting database, according in default type of credential table to
Verifying task type set calls default common class to generate corresponding method of calibration, when receiving task to be verified, then according to institute
The corresponding method of calibration of received task call to be verified is to be verified, it can be achieved that the extension of type of credential, it is superfluous to reduce code
It is remaining, coupling is reduced, guarantees the safety of system.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of type of credential method of calibration provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of type of credential method of calibration provided in an embodiment of the present invention;
Fig. 3 is the sub-process schematic diagram of type of credential method of calibration provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides type of credential method of calibration flow diagram;
Fig. 5 is the flow diagram for the type of credential method of calibration that further embodiment of this invention provides;
Fig. 6 is the sub-process schematic diagram of type of credential method of calibration provided in an embodiment of the present invention;
Fig. 7 is the schematic block diagram of type of credential calibration equipment provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of the specific unit of type of credential calibration equipment provided in an embodiment of the present invention;
Fig. 9 be another embodiment of the present invention provides type of credential calibration equipment schematic block diagram;And
Figure 10 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Fig. 1 and Fig. 2 are please referred to, Fig. 1 is that the application scenarios of type of credential method of calibration provided in an embodiment of the present invention are illustrated
Figure.Fig. 2 is the schematic flow chart of type of credential method of calibration provided in an embodiment of the present invention.The type of credential method of calibration is answered
For in server 20, by interacting realization between server 20 and terminal 10.The present invention proposes a kind of type of credential verification
Method, existing type of credential generally include: identity card, officer's identity card, student's identity card, Hongkong and Macro's pass, driver's license, is finished residence permit
Industry card, degree's diploma, residence booklet and passport etc. are frequently necessary to carry out the verification of type of credential in various scenes, for example, batch
Declaration form verifies the type of credential of insurer, warrantee and beneficiary when uploading, to the certificate of user when asynchronous upload
Type is verified, and type of credential verifies when docking with supervising platform data.What is proposed through the invention goes out a kind of type of credential
The extension of type of credential may be implemented in method of calibration, reduces code redundancy, reduces coupling, guarantees the safety of system.
Fig. 2 is the flow diagram of type of credential method of calibration provided in an embodiment of the present invention.As shown, this method packet
Include following steps S110-S130.
S110, default type of credential table is obtained from presetting database, wherein be preset in the default type of credential table
The corresponding type of credential set of task to be verified.
Specifically, due to different task types, the type of credential of verification is all different, for example, increasing quilt in batch
The type of credential verified when guarantor only includes identity card and passport, and the type of credential verified when asynchronous upload includes body
Part card, residence permit, Hongkong and Macro's pass, residence booklet and passport.Therefore, different task class is realized by default type of credential table
The type of credential of type verifies, and includes the certificate of multiple tasks to be verified and corresponding task to be verified in default type of credential table
Type, as shown in table 1.
Task to be verified | Type of credential set |
Batch is mended single | 01,02, |
Asynchronous upload | 01,02,03,04,05, |
The docking of supervising platform data | 01,02,03,04,05,06,07,08,09, |
Table 1
In default type of credential table, type of credential is substituted by number, for example, 01 indicates identity card, 02 is indicated
The substitutional relation of passport, type of credential and number is pre-set, and realizes different to be verified by default type of credential table
Business is corresponding to verify different type of credential set.In the preset database due to default type of credential table storage, from default
Default type of credential table is obtained in database.
In one embodiment, as shown in figure 3, the step S110 may include step: S111-S113.
With the presence or absence of default type of credential table in S111, judgement caching.
If obtaining the default certificate class from presetting database there is no default type of credential table in S112, caching
The default type of credential table is simultaneously added in caching by type table.
If there is default type of credential table in S113, caching, the default type of credential table is directly acquired from caching.
In one embodiment, preset type of credential table for the first time from presetting database acquisition after, usually by default certificate class
Type table is added in caching, is verified to obtain default type of credential table when subsequent verified directly from caching.Tool
Body, it first determines whether default type of credential table has been added in caching, searches default card from caching according to preset path
Part type list, preset path is to store the path of type of credential table, if finding default type of credential table by preset path,
Determine there is default type of credential table in caching, the default type of credential table can be directly acquired from caching;If by presetting road
Diameter does not find default type of credential table, determines to need from presetting database in caching there is no default type of credential table
Default type of credential table is obtained, is added after getting default type of credential table in presetting database, then by default type of credential table
Use when facilitating verification again is added in caching.It is needed in each verification from preset data relative to original verification mode
Default type of credential table is read in library in real time to be verified, does not need repeatedly to access when batch verifies by the way that caching mechanism is added
Database, performance advantage is obvious in the case where big data quantity.
In one embodiment, as shown in figure 4, further comprising the steps of: S114-S115 after the step S110.
Whether the default type of credential table in S114, the detection presetting database is updated.
It, will be updated described if the default type of credential table in S115, the presetting database is updated
The default type of credential table in default type of credential table replacement caching.
In one embodiment, it after default type of credential table is added to caching, needs to constantly detect in presetting database
Whether default type of credential table is updated, and specifically, can be realized by trigger, trigger is that database is supplied to program
Member and data analyst create trigger in default type of credential table come a kind of method to guarantee data integrity, when default
Activation trigger device is when the operation that appearance increases, deletes, changing in type of credential table to detect that default type of credential table is updated;
It can also update every time default type of credential Biao Hou version number by the field of the setting version number in default type of credential table and add
One, when the version number for detecting the default type of credential table in the version number and caching for presetting type of credential table in database is different
It causes, illustrates that default type of credential table is updated.After default type of credential table updates, after obtaining update in presetting database
Default type of credential table, by the default type of credential table in updated default type of credential table replacement caching.It is demonstrate,proved in extension
When part type, do not need to go to write in code as original verification mode that new certificate class is added inside dead type of credential
Type, but directly the type of credential of update is entered into default type of credential table, the pre- of update is obtained from presetting database
If type of credential table, to realize the extension of type of credential.
In one embodiment, as shown in figure 5, further comprising the steps of: S101 before the step S110.
S101, the verification rule of all indentations type is encapsulated into unified default common class.
In one embodiment, verification rule is for verifying whether type of credential is correct, and every kind of type of credential has corresponding
Verification rule, the verification logic rules of every kind of type of credential are pre-set, for example, the verification rule of verification identity card, school
Test the verification rule of residence permit and the verification rule of verification Hongkong and Macro's pass.Specifically, create one it is unified preset it is public
Class, the default common class are used to place the verification rule of different type of credential, then by the verification rule of all indentations type
It is uniformly encapsulated into the default common class.
S120, the verification rule for calling type of credential in type of credential set described in default common class, to generate correspondence
The inspection method of calibration of the task to be verified.
Specifically, after getting default type of credential table, according to the certificate of task to be verified in default type of credential table
Set of types symphysis at correspondence task to be verified method of calibration, for example, task to be verified is that batch mends single, corresponding certificate class
Type collection is combined into 01 and 02, i.e. identity card and passport, then then mending single task according to the batch, generates and mends for verifying batch
The method of calibration of single task, to verify the type of credential in batch benefit single task.
In one embodiment, as shown in fig. 6, the step S120 is comprising steps of S121-S122.
S121, the default type of credential table is read.
S122, call default common class raw according to the type of credential in the corresponding type of credential set of the task to be verified
At the method for calibration of the correspondence task to be verified.
In one embodiment, default type of credential table is read first, calls default common class, wherein in default common class
It include the verification rule of all indentations type, according to the type of credential in the corresponding type of credential set of task to be verified, from
The verification rule of type of credential in corresponding set is called in default common class, it is raw according to the verification rule for the type of credential called
In pairs should task to be verified method of calibration.For example, task to be verified is that batch mends list, corresponding type of credential collection is combined into
01 and 02, i.e. identity card and passport, call default common class, and the verification rule of the identity card in default common class is
IDCARD, the verification rule P ASSPORT of passport verify rule and passport verification rule according to the identity card in default common class
Method of calibration is then generated, which is then that corresponding batch mends single method of calibration.Therefore, default type of credential is being got
After table, need to generate different methods of calibration according to different tasks to be verified, if default type of credential table is updated,
Again according to the corresponding method of calibration of task to be verified after updated default type of credential table generation update.
If S130, receiving the task to be verified needed to be implemented, the corresponding verification of task to be verified needed to be implemented is called
Method is to verify the type of credential in the task to be verified needed to be implemented.
In one embodiment, the task to be verified needed to be implemented be issued by user or operator operational order with into
Row verification task, for example, user page end input ID card No., receive from the background user input ID card No. into
It goes and verifies, operator's batch uploads declaration form, the certificate class of insurer, warrantee and beneficiary in backstage verification declaration form
Type.The method of calibration that the corresponding task to be verified is called after receiving the task to be verified needed to be implemented, according to be verified
The parameter of business calls the method for calibration of the corresponding task to be verified from the method for calibration of all tasks to be verified, for example, connecing
Receiving the task to be verified needed to be implemented is asynchronous upload, and the parameter in the task to be verified is YB_10056, the parameter conduct
The method of calibration for identifying the task to be verified for identification calls the corresponding task to be verified according to the parameter of task to be verified
Method of calibration YB () verifies the type of credential in the task to be verified by the method for calibration of the task to be verified.Its
In, in the received task to be verified needed to be implemented include type of credential and passport NO., first according to type of credential from
The verification rule that the corresponding type of credential is called in method of calibration, then carries out school to evidence number by the verification rule again
It tests.For example, if the type of credential in the received task to be verified needed to be implemented is identity card, and correspond to the task to be verified
Method of calibration in there is no identity card verification rule, then return to the information of type of credential mistake.If the school of task to be verified
There are the verification of identity card rules in proved recipe method, then identity card verification rule is called to verify ID card No..
The embodiment of the present invention illustrates a kind of type of credential method of calibration, by obtaining default certificate from presetting database
Type list, wherein the corresponding type of credential set of task to be verified is preset in the default type of credential table;Call default public affairs
The verification of type of credential is regular in type of credential set described in class altogether, to generate the calibration proved recipe of the corresponding task to be verified
Method;If receiving the task to be verified needed to be implemented, call the corresponding method of calibration of task to be verified needed to be implemented to need
Type of credential in the task to be verified to be executed is verified, and the extension of type of credential may be implemented, and reduces code redundancy, drop
Lower coupling guarantees the safety of system.
Fig. 7 is a kind of schematic block diagram of type of credential calibration equipment 200 provided in an embodiment of the present invention.As shown in fig. 7,
Corresponding to the above type of credential method of calibration, the present invention also provides a kind of type of credential calibration equipments 200.Type of credential verification
Device 200 includes the unit for executing above-mentioned type of credential method of calibration, which can be configured in server.Specifically
Ground, referring to Fig. 7, the type of credential calibration equipment 200 includes: acquiring unit 210, generation unit 220 and verification unit
230。
Acquiring unit 210, for obtaining default type of credential table from presetting database, wherein the default certificate class
The corresponding type of credential set of task to be verified is preset in type table.
In one embodiment, as shown in figure 8, the acquiring unit 210 include: judging unit 211, adding unit 212 with
And obtain subelement 213.
Judging unit 211, for judging in caching with the presence or absence of default type of credential table.
Adding unit 212, if for there is no default type of credential tables in caching, from presetting database described in acquisition
The default type of credential table is simultaneously added in caching by default type of credential table.
Subelement 213 is obtained, if directly acquiring from caching described pre- for there is default type of credential table in caching
If type of credential table.
In one embodiment, as shown in figure 9, the type of credential calibration equipment 200 includes: detection unit 214 and more
New unit 215.
Whether detection unit 214, the default type of credential table for detecting in the presetting database have carried out more
Newly.
Updating unit 215 will more if the default type of credential table in the presetting database is updated
The default type of credential table in the default type of credential table replacement caching after new.
In one embodiment, as shown in figure 9, the type of credential calibration equipment 200 includes: encapsulation unit 201.
Encapsulation unit 201, for the verification rule of all indentations type to be encapsulated into unified default common class.
Generation unit 220, for calling the verification rule of type of credential in type of credential set described in default common class,
To generate the inspection method of calibration of the corresponding task to be verified.
In one embodiment, as shown in figure 8, the generation unit 220 includes: reading unit 221 and call unit
222。
Reading unit 221, for reading the default type of credential table.
Call unit 222, for calling default common class according in the corresponding type of credential set of the task to be verified
Type of credential generate the method for calibration of the corresponding task to be verified.
Verification unit 230, if calling the task to be verified needed to be implemented for receiving the task to be verified needed to be implemented
Corresponding method of calibration is to verify the type of credential in the task to be verified needed to be implemented.
The embodiment of the present invention illustrates a kind of type of credential calibration equipment, by obtaining default certificate from presetting database
Type list, wherein the corresponding type of credential set of task to be verified is preset in the default type of credential table;Call default public affairs
The verification of type of credential is regular in type of credential set described in class altogether, to generate the calibration proved recipe of the corresponding task to be verified
Method;If receiving the task to be verified needed to be implemented, call the corresponding method of calibration of task to be verified needed to be implemented to need
Type of credential in the task to be verified to be executed is verified, and the extension of type of credential may be implemented, and reduces code redundancy, drop
Lower coupling guarantees the safety of system.
It should be noted that it is apparent to those skilled in the art that, above-mentioned type of credential calibration equipment
200 and each unit specific implementation process, can with reference to the corresponding description in preceding method embodiment, for convenience of description and
Succinctly, details are not described herein.
Above-mentioned type of credential calibration equipment can be implemented as a kind of form of computer program, which can be
It is run in computer equipment as shown in Figure 10.
Referring to Fig. 10, Figure 10 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The calculating
Machine equipment 500 can be server, wherein server can be independent server, be also possible to multiple server compositions
Server cluster.
Refering to fig. 10, which includes processor 502, memory and the net connected by system bus 501
Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program
5032 include program instruction, which is performed, and processor 502 may make to execute a kind of type of credential method of calibration.
The processor 502 is for providing calculating and control ability, to support the operation of entire computer equipment 500.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should
When computer program 5032 is executed by processor 502, processor 502 may make to execute a kind of type of credential method of calibration.
The network interface 505 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Figure 10
The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme
The restriction of computer equipment 500 thereon, specific computer equipment 500 may include more more or fewer than as shown in the figure
Component perhaps combines certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following step
It is rapid: default type of credential table to be obtained from presetting database, wherein be preset with task to be verified in the default type of credential table
Corresponding type of credential set;The verification rule of type of credential in type of credential set described in default common class is called, with life
At the inspection method of calibration of the correspondence task to be verified;If receive the task to be verified needed to be implemented, calls and need to be implemented
The corresponding method of calibration of task to be verified is to verify the type of credential in the task to be verified needed to be implemented.
In one embodiment, processor 502 is realizing the default type of credential table step of the acquisition from presetting database
Before, following steps are also realized: the verification rule of all indentations type is encapsulated into unified default common class.
In one embodiment, processor 502 is realizing the default type of credential table step of the acquisition from presetting database
When, it is implemented as follows step: with the presence or absence of default type of credential table in judgement caching;If there is no default certificate classes in caching
Type table then obtains the default type of credential table from presetting database and the default type of credential table is added to caching
In;If there is default type of credential table in caching, the default type of credential table is directly acquired from caching.
In one embodiment, processor 502 is realizing the default type of credential table step of the acquisition from presetting database
Later, also realize following steps: whether the default type of credential table detected in the presetting database is updated;If
The default type of credential table in the presetting database is updated, and the updated default type of credential table is replaced
Change the default type of credential table in caching.
In one embodiment, processor 502 is demonstrate,proved in realizing type of credential set described in the default common class of the calling
The verification rule of part type is implemented as follows step when generating the inspection method of calibration step for corresponding to the task to be verified:
Read the default type of credential table;Call default common class according in the corresponding type of credential set of the task to be verified
Type of credential generates the method for calibration of the corresponding task to be verified.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process,
It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey
Sequence can be stored in a storage medium, which is computer readable storage medium.The program instruction is by the department of computer science
At least one processor in system executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited
Storage media is stored with computer program, and wherein computer program includes program instruction.The program instruction makes when being executed by processor
Processor executes following steps: default type of credential table is obtained from presetting database, wherein in the default type of credential table
It is preset with the corresponding type of credential set of task to be verified;Call type of credential in type of credential set described in default common class
Verification rule, to generate the inspection method of calibration of the corresponding task to be verified;If receiving the task to be verified needed to be implemented,
Call the corresponding method of calibration of task to be verified that needs to be implemented with to the type of credential in the task to be verified needed to be implemented into
Row verification.
In one embodiment, the processor is realized and described is obtained from presetting database executing described program instruction
Before default type of credential table step, following steps are also realized: the verification rule of all indentations type is encapsulated into unification
In default common class.
In one embodiment, the processor is realized and described is obtained from presetting database executing described program instruction
When default type of credential table step, it is implemented as follows step: with the presence or absence of default type of credential table in judgement caching;If caching
In there is no default type of credential table, then the default type of credential table is obtained from presetting database and by the default certificate
Type list is added in caching;If there is default type of credential table in caching, the default certificate is directly acquired from caching
Type list.
In one embodiment, the processor is realized and described is obtained from presetting database executing described program instruction
After default type of credential table step, also realizes following steps: detecting the default type of credential in the presetting database
Whether table is updated;If the default type of credential table in the presetting database is updated, will be updated
The default type of credential table in the default type of credential table replacement caching.
In one embodiment, the processor realizes institute in the default common class of the calling executing described program instruction
The verification rule of type of credential in type of credential set is stated, to generate the inspection method of calibration step of the corresponding task to be verified
When, it is implemented as follows step: reading the default type of credential table;Call default common class according to the task pair to be verified
Type of credential in the type of credential set answered generates the method for calibration of the corresponding task to be verified.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk
Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.
Claims (10)
1. a kind of type of credential method of calibration characterized by comprising
Default type of credential table is obtained from presetting database, wherein be preset with to be verified in the default type of credential table
It is engaged in corresponding type of credential set;
The verification rule of type of credential in type of credential set described in default common class is called, it is described to be verified to generate correspondence
The method of calibration of task;
If receiving the task to be verified needed to be implemented, call the corresponding method of calibration of task to be verified needed to be implemented to need
Type of credential in the task to be verified to be executed is verified.
2. type of credential method of calibration according to claim 1, which is characterized in that described to be obtained in advance from presetting database
If before type of credential table, further includes:
The verification rule of all indentations type is encapsulated into unified default common class.
3. type of credential method of calibration according to claim 1, which is characterized in that described to be obtained in advance from presetting database
If type of credential table, comprising:
With the presence or absence of default type of credential table in judgement caching;
If obtaining the default type of credential table from presetting database and by institute there is no default type of credential table in caching
Default type of credential table is stated to be added in caching;
If there is default type of credential table in caching, the default type of credential table is directly acquired from caching.
4. type of credential method of calibration according to claim 3, which is characterized in that described to be obtained in advance from presetting database
If after type of credential table, comprising:
Whether the default type of credential table detected in the presetting database is updated;
If the default type of credential table in the presetting database is updated, by the updated default certificate class
The default type of credential table in type table replacement caching.
5. type of credential method of calibration according to claim 1, which is characterized in that described to call described in default common class
The verification rule of type of credential in type of credential set, to generate the inspection method of calibration of the corresponding task to be verified, comprising:
Read the default type of credential table;
Default common class is called to generate corresponding institute according to the type of credential in the corresponding type of credential set of the task to be verified
State the method for calibration of task to be verified.
6. a kind of type of credential calibration equipment characterized by comprising
Acquiring unit, for obtaining default type of credential table from presetting database, wherein pre- in the default type of credential table
Equipped with the corresponding type of credential set of task to be verified;
Generation unit, for calling the verification rule of type of credential in type of credential set described in default common class, to generate
The inspection method of calibration of the corresponding task to be verified;
Verification unit, if calling the task to be verified needed to be implemented corresponding for receiving the task to be verified needed to be implemented
Method of calibration is to verify the type of credential in the task to be verified needed to be implemented.
7. type of credential calibration equipment according to claim 6, which is characterized in that the acquiring unit includes:
Judging unit, for judging in caching with the presence or absence of default type of credential table;
Adding unit, if for, there is no default type of credential table, the default card being obtained from presetting database in caching
The default type of credential table is simultaneously added in caching by part type list;
Subelement is obtained, if directly acquiring the default certificate from caching for there is default type of credential table in caching
Type list.
8. type of credential calibration equipment according to claim 6, which is characterized in that the generation unit includes:
Reading unit, for reading the default type of credential table;
Call unit, for calling default common class according to the certificate class in the corresponding type of credential set of the task to be verified
Type generates the method for calibration of the corresponding task to be verified.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory
It is stored with computer program, the processor is realized as described in any one of claim 1-5 when executing the computer program
Method.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
Calculation machine program can realize method according to any one of claims 1 to 5 when being executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910455983.0A CN110347691B (en) | 2019-05-29 | 2019-05-29 | Certificate type verification method, certificate type verification device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910455983.0A CN110347691B (en) | 2019-05-29 | 2019-05-29 | Certificate type verification method, certificate type verification device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110347691A true CN110347691A (en) | 2019-10-18 |
CN110347691B CN110347691B (en) | 2023-10-31 |
Family
ID=68174398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910455983.0A Active CN110347691B (en) | 2019-05-29 | 2019-05-29 | Certificate type verification method, certificate type verification device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347691B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391934A (en) * | 2014-11-21 | 2015-03-04 | 深圳市银雁金融配套服务有限公司 | Data calibration method and device |
CN106650358A (en) * | 2016-12-30 | 2017-05-10 | 顺丰科技有限公司 | Mixed identity information collecting and verifying method and system |
CN107818509A (en) * | 2017-11-24 | 2018-03-20 | 泰康保险集团股份有限公司 | Business datum method of calibration, device, storage medium and electronic equipment |
CN108460688A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Core protects method, apparatus, storage medium and the terminal of verification |
CN108876121A (en) * | 2018-05-31 | 2018-11-23 | 康键信息技术(深圳)有限公司 | Worksheet method, apparatus, computer equipment and storage medium |
CN109101812A (en) * | 2018-08-28 | 2018-12-28 | 北京神州绿盟信息安全科技股份有限公司 | A kind of parameter verification method, apparatus, computing device and storage medium |
CN109271611A (en) * | 2018-09-06 | 2019-01-25 | 阿里巴巴集团控股有限公司 | A kind of data verification method, device and electronic equipment |
CN109359939A (en) * | 2018-09-26 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Business datum method of calibration, device, computer equipment and storage medium |
CN109446900A (en) * | 2018-09-21 | 2019-03-08 | 平安科技(深圳)有限公司 | Certificate authenticity verification method, apparatus, computer equipment and storage medium |
CN109711145A (en) * | 2018-11-09 | 2019-05-03 | 深圳壹账通智能科技有限公司 | Data verification method and device, storage medium, computer equipment |
-
2019
- 2019-05-29 CN CN201910455983.0A patent/CN110347691B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391934A (en) * | 2014-11-21 | 2015-03-04 | 深圳市银雁金融配套服务有限公司 | Data calibration method and device |
CN106650358A (en) * | 2016-12-30 | 2017-05-10 | 顺丰科技有限公司 | Mixed identity information collecting and verifying method and system |
CN107818509A (en) * | 2017-11-24 | 2018-03-20 | 泰康保险集团股份有限公司 | Business datum method of calibration, device, storage medium and electronic equipment |
CN108460688A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Core protects method, apparatus, storage medium and the terminal of verification |
CN108876121A (en) * | 2018-05-31 | 2018-11-23 | 康键信息技术(深圳)有限公司 | Worksheet method, apparatus, computer equipment and storage medium |
CN109101812A (en) * | 2018-08-28 | 2018-12-28 | 北京神州绿盟信息安全科技股份有限公司 | A kind of parameter verification method, apparatus, computing device and storage medium |
CN109271611A (en) * | 2018-09-06 | 2019-01-25 | 阿里巴巴集团控股有限公司 | A kind of data verification method, device and electronic equipment |
CN109446900A (en) * | 2018-09-21 | 2019-03-08 | 平安科技(深圳)有限公司 | Certificate authenticity verification method, apparatus, computer equipment and storage medium |
CN109359939A (en) * | 2018-09-26 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Business datum method of calibration, device, computer equipment and storage medium |
CN109711145A (en) * | 2018-11-09 | 2019-05-03 | 深圳壹账通智能科技有限公司 | Data verification method and device, storage medium, computer equipment |
Non-Patent Citations (1)
Title |
---|
巢海远;周红亚;: "基于物联网技术的考生身份识别系统", 物联网技术, no. 08 * |
Also Published As
Publication number | Publication date |
---|---|
CN110347691B (en) | 2023-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101268620B (en) | Device management system and method for managing device management object | |
CN110222107B (en) | Data transmission method and related equipment | |
CN109815111A (en) | Gray scale test method, device, computer equipment and storage medium | |
US11068386B1 (en) | Systems and methods for mainframe batch testing | |
CN109740129B (en) | Report generation method, device and equipment based on blockchain and readable storage medium | |
CN109617646A (en) | Message forwarding method, device, computer equipment and computer readable storage medium | |
CN108334346B (en) | Method and device for developing service control process | |
CN109859002B (en) | Product pushing method, device, computer equipment and storage medium | |
CN113448862B (en) | Software version testing method and device and computer equipment | |
CN109408112B (en) | Online development document generation method, device, terminal and readable storage medium | |
CN114817340B (en) | Data tracing method and device, computer equipment and storage medium | |
EP3722945B1 (en) | Program operation system and program operation method | |
CN111338869B (en) | Configuration parameter management method, device, equipment and storage medium | |
CN109086427A (en) | Data comparison method, apparatus, computer equipment and storage medium | |
CN117009208A (en) | Dependency information processing method, device, equipment and storage medium | |
CN107203373B (en) | Interface control acquiring method, interface control testing method, interface control acquiring device and interface control testing device | |
CN105930258B (en) | A kind of method and device of parameter filtering | |
CN110347691A (en) | Type of credential method of calibration, device, computer equipment and storage medium | |
CN116302889A (en) | Performance test method and device for functional module and server | |
CN113272785A (en) | Method for mounting file system, terminal equipment and storage medium | |
CN113704114A (en) | Automatic testing method, device, equipment and medium for functional interface | |
CN109040990B (en) | Information acquisition method and device, computer equipment and storage medium | |
CN115314382B (en) | Configuration information processing method | |
CN112988222B (en) | Method and system for checking information system integration project interface version compatibility | |
CN117235609B (en) | Inductive classification method, device, equipment and medium for BIM (building information modeling) components |
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 |