Specific embodiment
Embodiments herein proposes a kind of new method for realizing electronic protocol signing, by each business scenario with association
The alterable factor of view signature related realization is characterized using contract configuration parameter, and business scenario is represented with Contract ID,
Treat that label are closed according to user terminal in the corresponding relation of service end background maintenance Contract ID and contract configuration parameter, service end foreground
About request determines Contract ID, and user terminal is realized according to the corresponding contract configuration parameter obtained from service end backstage
Agreement signs process.So correspond to the contract configuration parameter of business scenario by modification, you can be rapidly completed to the business
The modification that agreement signature is realized in scape, so as to avoid the code revision of the business scenario for repeating cumbersome and issue again, to solve
Problems of the prior art.
Fig. 1 show a kind of schematic network structure of application scenarios of the embodiment of the present application, and user terminal passes through browser
Or application client access service end come carry out the agreement in certain business scenario signature process.Service end operation has
The reception of service end foreground and service end backstage, wherein service end foreground carrys out the request of user terminal and responds thereto, and leads to
The interaction to service end backstage is crossed to obtain configuration and other data related with agreement signature;Service end backstage preserves above-mentioned matching somebody with somebody
Put and other data, and provided to the function such as configuration and inquiry, the maintenance of other data to developer.
In embodiments herein, service end foreground and service end backstage may operate in various physically or logically equipment
On, such as panel computer, PC (Personal Computer, PC), notebook, virtual machine, server etc.;Can be one
Individual physically or logically equipment, or the physically or logically equipment, the mutual association that share different responsibilities by two or more
The same various functions to realize service end foreground or service end backstage in the embodiment of the present application;In addition, service end foreground and service
End backstage can be operated in same physically or logically equipment as different software function modules;Do not limit.User
Terminal can be the equipment such as mobile phone, panel computer, PC, notebook, not limit equally.
In embodiments herein, realize that the method for electronic protocol signing is applied to flow such as Fig. 2 institutes on service end foreground
Show, the flow for being applied to service end backstage is as shown in Figure 3.
On service end foreground, step 210 receives contract the to be signed request of user terminal, according in contract to be signed request
Business information determines Contract ID.
When user terminal is according to the operational order of user, when starting the agreement signature process in current business flow, user
Terminal sends contract to be signed and asks to service end foreground.User terminal carries the business letter of current business in contract to be signed request
Breath, is used for determining the Contract ID that the agreement for current business flow that will start signs process for service end foreground.Can
Using according in practical application scene operation system implement determine by which information related to business as business believe
Breath, embodiments herein is not limited.
Service end foreground receive user terminal wait sign contract request after, business information is therefrom extracted, it is determined that and business
The corresponding Contract ID of information.Contract ID is used for uniquely representing an agreement signature process, and agreement signature process can be used
In in one to multiple specific business.Unduplicated numeral, character string that Contract ID can be randomly generated etc., it is also possible to adopt
The combination of the mark related with specific business with the mark related to specific business with uniqueness or with uniqueness come
As Contract ID, do not limit.
In one implementation, each business scenario has a corresponding scene code, and when based on different hardware and/or soft
During the user terminal access service end of part environment, the possibility of the subsequent processes of displaying or the agreement signature to agreement in contract
It is different.For example, to the user terminal by client access service end and to the user by browser access service end
Terminal, the idiographic flow of its agreement signature is different;For another example, the user terminal of the user terminal of ios platform and Android platform,
Mode to user's displaying agreement is different.In this implementation, can be using the combination of systematic code and scene code as contract
Mark, so when service end foreground receive user terminal after signing contract and asking, can according to the hardware of user terminal and/or
Environment determines systematic code, and the business information in contract to be signed request determines business scenario and further determines that corresponding scene
Code, so as to systematic code and scene code character are combined into Contract ID.
On service end foreground, step 220 sends the Contract ID to service end backstage, receives what service end backstage returned
The corresponding contract configuration parameter of the Contract ID, contract configuration parameter includes at least one agreement to be signed.
On service end backstage, step 310 receives the Contract ID that service end foreground sends;The Contract ID is by service end
Business information during foreground is asked according to the contract to be signed for carrying out user terminal determines.
On service end backstage, step 320, before obtaining the corresponding contract configuration parameter of the Contract ID and returning to service end
Platform;Contract configuration parameter includes at least one agreement to be signed, please to the contract to be signed of user terminal for service end foreground
Ask and responded.
In embodiments herein, service end background maintenance the corresponding relation of Contract ID and contract configuration parameter.Should
Corresponding relation can be stored in service end backstage, it is also possible to be stored in the addressable network address in service end backstage or data
In storehouse.
According to come user terminal wait sign contract request in business information determine Contract ID after, service end foreground
Contract ID is sent to service end backstage.The corresponding conjunction of the Contract ID is searched in the corresponding relation safeguarded in service end backstage
About configuration parameter, and the contract configuration parameter that will be found returns to service end foreground.
To be signed one to multiple agreements is included in the corresponding operation flow of the Contract ID in contract configuration parameter.
Additionally, contract configuration parameter is additionally may included in other data needed to use during agreement signature (as subscribed to the agreement
Model agreement information) or need its dependent variable (business attribute information such as to be subscribed to the agreement) specified
Electronic protocol is typically standard form of contract, and model agreement is the standard form of contract text that certain agreement is common to all users
This;Model agreement information can be model agreement in itself, or for obtaining information (such as agreement mould needed for model agreement
Link, storing path of plate etc.).When there is the model agreement information of agreement in contract configuration parameter, service end foreground can be
Model agreement is obtained when needing, user is showed will pass through user terminal.
During signature or after the completion of signature, the process step of required process may not for different electronic protocols
Together.In this case, place of the agreement in signature or after signature can be specified by the business attribute information of certain agreement
Reason step.The mode of specific process step and designated treatment step can determine according to the business demand of practical application scene,
Embodiments herein is not limited.For example, every kind of different process step can be corresponded into a specific service attribute
Value, the service attribute value to be subscribed to the agreement to carries out assignment, you can specify the process step of the agreement.
On service end foreground, step 230 responds contract the to be signed request of user terminal according to contract configuration parameter, for this
User terminal carries out the signature process of each agreement.
According to implementing for practical application scene, service end foreground can respond user terminal in different ways
Contract to be signed request, embodiments herein do not limit.For example, signing process by the client on user terminal in agreement
Program is come in the application scenarios realized, contract configuration parameter can be handed down to user terminal by service end foreground.
For another example, in user terminal to the page request that contract the to be signed request that service end foreground is initiated is the contract page to be signed
When, service end foreground can generate the page data of the contract page to be signed, and the page number that will be generated using contract configuration parameter
User terminal is returned to according to as the response for treating label contract request.The page data that user terminal operation is received, you can realize
The signature process of agreement.The page data of the contract page to be signed, example can be generated using existing various dynamic web page techniques
Such as JSP (Java Server Pages, the java server page) etc..
When contract configuration parameter includes the model agreement information of each that to be signed agreement, service end foreground is by association
View Template Information obtains the model agreement of each agreement, it is possible to which model agreement is put into page data, and user terminal is in fortune
During row page data, can directly to user's display protocol template, it is also possible to after user carries out the operation for checking protocol contents
Model agreement is displayed to, to allow user to understand content to be subscribed to the agreement.
When contract configuration parameter includes the business attribute information of certain agreement, industry of the service end foreground according to the agreement
Business attribute information determines that the service logic of agreement signature is (i.e. specific during agreement signature, and/or after agreement signature
Business Processing step), the page data that generation runs according to the service logic.So, user terminal operation page data is entered
It is that the agreement performed according to the service logic signs process when capable agreement signs process.
When user on their terminal, according to determined by contract configuration parameter agreement and agreement signature process complete sign
After about operating, user terminal sends signature request to service end foreground, and the association of this signature of user is carried in request is signed
The signature parameter of view.The user personalized information of agreement is generally included in signature parameter, i.e. user provides when subscribing to the agreement
Information, such as user name, passport NO., agreed capital, additionally, the generally also digital signature including user in signature parameter, with
Just checking user contracts and prevents agreement to be tampered.
Service end foreground receives the signature request that user terminal sends after the completion of the operation that user subscribes to the agreement, and extracts and signs
The signature parameter of agreement, service end backstage is sent to by the signature parameter of agreement in administration's request.Service end backstage receives service end
The signature parameter of the agreement that foreground sends, preserves the signature parameter of the agreement for receiving, and the label of agreement are generated according to signature parameter
Administration's object information, service end foreground is returned to by the signature object information of agreement.Specifically, service end backstage can be to signature
The digital signature of user carries out sign test in parameter, if sign test passes through, then it is assumed that agreement is signed successfully, otherwise it is assumed that agreement is signed
Failure.Whether service end backstage can succeed as the signature object information of agreement agreement signature.Additionally, service end backstage is also
The model agreement that can will sign user personalized information and agreement in parameter is combined, and generation User Agreement text is (i.e.
All particular contents of agreement and the version of an agreement of clause are signed comprising the user), and whether agreement signature is succeeded and user
Version of an agreement as agreement signature object information.
Service end foreground from service end backstage receive according to the signature parameter of agreement generate signature object information after,
Signature object information is returned into user terminal.Signature object information can be shown to user by user terminal, in some scenes
In, the follow-up business treatment after the completion of can also being signed according to signature result.
Service end backstage can provide interface to system maintenance personnel or to network management system etc., for Contract ID
Safeguarded with the corresponding relation of contract configuration parameter and the agreement signature parameter to preserving is inquired about.Specifically, take
Searched in the signature parameter for preserving and match the inquiry request after the inquiry request to signed agreement is received in business end backstage
Record, and the inquiry request is responded according to lookup result;After contract configuration-direct is received, service end backstage performs conjunction
About configuration-direct, increases, is deleted or modified the corresponding relation of Contract ID and contract configuration parameter, wherein, modification is included to
The modification of contract configuration parameter in some corresponding relations.
It can be seen that, in embodiments herein, closed by the correspondence of service end background maintenance Contract ID and contract configuration parameter
System, service end foreground determines Contract ID according to the request of the contract to be signed of user terminal, right according to what is obtained from service end backstage
The contract configuration parameter answered realize user terminal agreement sign process.So as to pass through to change the conjunction on service end backstage
About configuration parameter changes related to agreement signature realization in each business scenario, and need not change the code of business scenario simultaneously
Again issue, you can be rapidly completed the modification realized to agreement signature in the business scenario, reduce and largely repeat cumbersome work
Measure.
In an application example of the application, service end front stage operation has protocol label rendering engine, protocol label wash with watercolours
Dye engine uses JSP technologies, is generated to wait to sign according to current business scene dynamics by protocol label (a kind of Contract ID) and closed
The about page.Service end running background has protocol rule center and agreement signature center, and protocol rule center is used for carrying out Protocol Standard
The maintenance with the corresponding relation of contract configuration parameter is signed, conjunction corresponding with protocol label is returned to according to query statement or inquiry request
About configuration parameter;Agreement signature center preserves the signature parameter of user's signed agreement, is returned according to query statement or inquiry request
Return the information of signed agreement.
In this application example, the interaction flow such as Fig. 4 institutes between user terminal, service end foreground and server end backstage
Show.
In client-side program on the subscriber terminal, agreement signs the opening of the page under user performs certain business scenario
After operation, client initiates contract to be signed to service end foreground asks, and contract request to be signed includes can be for determining business
The business information of scene.
Service end foreground loads protocol label rendering engine.Receive client wait sign contract request after, protocol label
Rendering engine determines the systematic code of user terminal according to the type of client, and the business information in contract to be signed request determines
Scene code, systematic code and scene code character are closed and are protocol label.
Service end foreground sends inquiry request to the protocol rule center on server end backstage, and agreement is carried in inquiry request
Label.Protocol rule center is in lookup and inquiry request in mapping table of the protocol label for preserving with contract configuration parameter
The corresponding contract configuration parameter of protocol label, and return to service end foreground.A kind of protocol label is right with contract configuration parameter
Answer relation table as shown in table 1:
Table 1
In table 1, contract configuration parameter includes:Under the residing business scenario of contract to be signed request each that to be signed agreement with
And the chained address of the model agreement of each agreement.
After the contract configuration parameter corresponding to systematic code and scene code is received, protocol label rendering engine is matched somebody with somebody using contract
Put the page data that parameter generates the contract page to be signed, the chain of title and model agreement including each that to be signed agreement
Ground connection location.The page data of generation is returned to user terminal by service end foreground.
The contract page data to be signed that client operation on user terminal is received, to user's each that to be signed of displaying association
View, if the user desired that understand the particular content of certain agreement, can be by clicking on the agreement come display protocol template.In user
Complete agreement signature operation after, client using the digital signature of user personalized information and user as agreement signature parameter
It is encapsulated in signature request, is sent to service end foreground.
Service end foreground the agreement that the signature parameter of agreement is sent to service end backstage is signed into center.Agreement signs center
Digital signature to user carries out sign test, determines whether agreement signature succeeds according to sign test result, and will preserve the signature of agreement
Parameter.Agreement is signed center and is sent to service end foreground as the signature object information of agreement using whether agreement signature succeeds.
The signature object information of agreement is sent to user terminal by service end foreground, and user is shown to by client.
It is responsible for safeguarding that the staff on service end backstage can add, delete, changing the agreement that protocol rule center preserves
The corresponding relation of label and contract configuration parameter.Such as, when there is new business item to reach the standard grade, the Protocol Standard of the business item is added
Sign and recorded with the corresponding relation of its contract configuration parameter;When the model agreement of certain agreement is updated to new version, this is assisted
Point to redaction in the chained address for discussing template;When certain existing protocol label increased the agreement to be signed, in contract configuration
The chained address of newly-increased agreement and its model agreement is added in parameter;Etc..So, when related to agreement signature in business scenario
Part when changing, by changing corresponding contract configuration parameter by quickly timely realize that new agreement was signed
Journey, and the code of business scenario need not be changed.
Additionally, being responsible for safeguarding the signed agreement that the staff on service end backstage can also preserve agreement signature center
Signature parameter inquired about.
Corresponding with the realization of above-mentioned flow, embodiments herein additionally provides a kind of realization electricity applied on service end foreground
The device of sub-protocol signing, and a kind of device for realizing electronic protocol signing applied on service end backstage.Both devices are equal
Can be realized by software, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software, as patrolling
Device in volume meaning, is by corresponding meter by the CPU (Central Process Unit, central processing unit) of place equipment
Calculation machine programmed instruction runs what is formed in reading internal memory.From for hardware view, except the CPU shown in Fig. 5, internal memory and non-
Outside volatile memory, the equipment where realizing the device of electronic protocol signing generally also includes for carrying out wireless signal receipts
Other hardware such as chip of hair, and/or for realizing the board etc. of network communicating function other hardware.
Fig. 6 show a kind of device for realizing electronic protocol signing of the embodiment of the present application offer, before being applied to service end
Platform, described device includes that the request response of contract request reception unit to be signed, contract configuration parameter acquiring unit and contract to be signed is single
Unit, wherein:Contract request reception unit to be signed is used to receive contract the to be signed request of user terminal, according in contract to be signed request
Business information determine Contract ID;Contract configuration parameter acquiring unit is used to send the Contract ID to service end backstage,
The corresponding contract configuration parameter of the Contract ID that service end backstage returns is received, the contract configuration parameter is included at least
One agreement to be signed;Contract request-response unit to be signed is used to respond treating for user terminal according to the contract configuration parameter
Contract request is signed, the signature process of the agreement is carried out for the user terminal.
In one example, described device also includes signature request reception unit and signature result retransmission unit, wherein:Signature
Request reception unit is used to receive the signature request that user terminal sends after the completion of user signs the operation of the agreement, by institute
The signature parameter for stating agreement described in signature request is sent to service end backstage;Signature result retransmission unit is used for from after service end
Platform receives the signature object information generated according to the signature parameter of the agreement, and signature object information is returned into user's end
End.
In above-mentioned example, the signature parameter includes:The user personalized information of the agreement and the digital signature of user;
The signature object information includes:Whether agreement signature succeeds;Or, whether agreement signature is successful and according to the agreement
Model agreement and the User Agreement text of user personalized information generation.
In a kind of implementation, the contract request to be signed is:The page request of the contract page to be signed;The contract to be signed
Request-response unit specifically for:The page data of the contract page to be signed is generated using the contract configuration parameter, and will generation
Page data return to user terminal, carry out the signature of the agreement by running the page data for user terminal
Journey.
In above-mentioned implementation, the contract configuration parameter can also include:The model agreement information of the agreement;It is described
Page data includes the model agreement according to model agreement acquisition of information;Show to be subscribed to the agreement to user for user terminal
Content.
In above-mentioned implementation, the contract configuration parameter can also include:The business attribute information of the agreement;It is described
Contract request-response unit to be signed specifically for:Business attribute information according to the agreement determines the business of the agreement signature
Logic, the page data that generation runs according to the service logic, and the page data of generation is returned into user terminal;For
Family terminal carries out the signature process of the agreement according to the service logic by running the page data.
In above-mentioned implementation, the page data can be generated using java server page JSP technologies;The contract
It is designated JSP labels.
Optionally, the Contract ID includes:Systematic code corresponding to user terminal hardware and/or software environment and
Corresponding to the scene code of business scenario;The contract request reception unit to be signed specifically for:Receive user terminal treats that label are closed
About ask, the hardware and/or software environment of the user terminal that the contract to be signed according to sending is asked determine the Contract ID
Systematic code, according to contract to be signed request in business information determine business scenario and corresponding scene code.
Fig. 7 show a kind of device for realizing electronic protocol signing of the embodiment of the present application offer, after being applied to service end
Platform, the service end background maintenance has the corresponding relation of Contract ID and contract configuration parameter, and described device includes Contract ID
Receiving unit and contract configuration parameter transmitting element, wherein:Contract ID receiving unit is used to receive the transmission of service end foreground
Contract ID;Business information during the Contract ID is asked by service end foreground according to the contract to be signed for carrying out user terminal is true
It is fixed;Before contract configuration parameter transmitting element is used to obtain the corresponding contract configuration parameter of the Contract ID and return to service end
Platform;The contract configuration parameter includes at least one agreement to be signed, and the contract to be signed is asked for service end foreground
Responded.
In one example, described device also includes signature parameter receiving unit and signature result generation unit, wherein:Signature
Parameter receiving unit is used for the signature parameter of the agreement for receiving the transmission of service end foreground, preserves the signature ginseng of the agreement
Number;Signature result generation unit is used to be generated according to signature parameter the signature object information of the agreement, by the label of the agreement
Administration's object information returns to service end foreground, and user terminal is transmitted to for service end foreground.
In above-mentioned example, described device can also include signature parameter query unit, for receiving to signed agreement
Inquiry request, according to the record that the inquiry request is matched in the signature parameter for preserving, responds to the inquiry request.
In above-mentioned example, the signature parameter can include:The user personalized information of the agreement and the numeral of user
Signature;The signature object information includes:Whether agreement signature succeeds;Or, whether agreement signature is successful and according to the association
The model agreement of view and the User Agreement text of user personalized information generation.
Optionally, the contract configuration parameter also includes:The model agreement information of the agreement, and/or the agreement
Business attribute information;The model agreement information of the agreement is used for being obtained for service end foreground the model agreement of the agreement;Institute
The business attribute information of agreement is stated for determining the service logic of the agreement signature for service end foreground.
Optionally, described device also includes:Corresponding relation maintenance unit, for according to the contract configuration-direct for receiving, increasing
Plus, the corresponding relation of Contract ID and contract configuration parameter is deleted or modified.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculated
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.And, the application can be used to be can use in one or more computers for wherein including computer usable program code and deposited
The shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.