Summary of the invention
In view of this, using on the server, the server saves this application provides a kind of method for authenticating user
There are the user identifier of user, the corresponding relationship of wearable device mark and server authentication key, which comprises
The certification request that user is sent by terminal is received, the user identifier of the user is carried in the certification request
And/or wearable device mark;
Downlink authentication information is obtained, the wearable device mark for carrying downlink authentication information, the user is issued to terminal
The detection instruction of knowledge;
The detection response for carrying uplink authentication information that terminal returns is received, the uplink authentication information is by detection instruction
In the wearable device specified generated according to equipment authentication key and downlink authentication information, the equipment authentication key and server
Authentication key is identical or corresponding;
Downlink authentication information and uplink authentication information are matched using the server authentication key of the user, successful match is then
The user passes through certification.
A kind of method authenticating user provided by the present application, is applied in the terminal of accessing user's wearable device, described
Method includes:
Certification request is sent to server depending on the user's operation, the user of the user is carried in the certification request
Mark and/or wearable device mark;
The detection instruction of server is received, carries downlink authentication information and wearable device mark in the detection instruction
Know;
Downlink authentication information is sent to the wearable device specified in the detection instruction, receives the wearable device
The uplink authentication information of return;The uplink authentication information by the wearable device according to the equipment authentication key of preservation and under
Row authentication information generates, and the equipment authentication key is identical or corresponding as the server authentication key for being stored in server;
The detection response for carrying uplink authentication information is sent to server;
Receive the user that server is determined according to the uplink authentication information, downlink authentication information and server authentication key
Authentication result.
This application provides a kind of methods for registering wearable device, using on the server, comprising:
The wearable device registration request that user is sent by terminal is received, carries the user in the registration request
User identifier and wearable device mark;
The server authentication key and equipment authentication key for obtaining the user, issued to terminal carry equipment certification it is close
Key, the user wearable device mark write instruction;
The write-in response that terminal returns is received, if write-in response shows that equipment authentication key has successfully been stored in described write
Enter in the wearable device specified in instruction, then the user identifier, wearable device mark and server for saving the user are recognized
Demonstrate,prove the corresponding relationship of key.
A kind of method for registering wearable device provided by the present application, using at the terminal, comprising:
Wearable device registration request is sent to server depending on the user's operation, is carried in the registration request described
The user identifier and wearable device of user identifies;
The write instruction of server is received, carries equipment authentication key in said write instruction, the user wears
Wear device identification;
The operation of write device authentication key is executed to the wearable device specified in write instruction;
Write-in response is sent to server, carries whether write device authentication key successfully disappears in said write response
Breath.
Present invention also provides a kind of devices for authenticating user, and using on the server, the server preserves user
User identifier, wearable device mark and server authentication key corresponding relationship, described device includes:
Certification request receiving unit, the certification request sent for receiving user by terminal are taken in the certification request
User identifier and/or wearable device mark with the user;
Detection instruction issuance unit issues to terminal for obtaining downlink authentication information and carries downlink authentication information, institute
State the detection instruction of the wearable device mark of user;
Response receiving unit is detected, it is described for receiving the detection response for carrying uplink authentication information of terminal return
Uplink authentication information is generated by the wearable device specified in detection instruction according to equipment authentication key and downlink authentication information, institute
It is identical or corresponding as server authentication key to state equipment authentication key;
Matching unit, for the server authentication key matching downlink authentication information and uplink certification letter using the user
Breath, then the user passes through certification to successful match.
A kind of device authenticating user provided by the present application, is applied in the terminal of accessing user's wearable device, described
Device includes:
Certification request transmission unit, for sending certification request, the certification request to server depending on the user's operation
In carry the user user identifier and/or wearable device mark;
Detection instruction receiving unit carries downlink in the detection instruction and recognizes for receiving the detection instruction of server
Demonstrate,prove information and wearable device mark;
Uplink authentication information unit, for downlink authentication information to be sent to wearable setting of specifying in the detection instruction
It is standby, receive the uplink authentication information that the wearable device returns;The uplink authentication information by the wearable device according to
The equipment authentication key and downlink authentication information of preservation generate, and the equipment authentication key is recognized with the server for being stored in server
It is identical or corresponding to demonstrate,prove key;
Response transmission unit is detected, for sending the detection response for carrying uplink authentication information to server;
Authentication result receiving unit, for receiving server according to the uplink authentication information, downlink authentication information kimonos
The user authentication result that device authentication key of being engaged in determines.
This application provides a kind of devices for registering wearable device, using on the server, comprising:
Registration request receiving unit, the wearable device registration request sent for receiving user by terminal, the note
The user identifier and wearable device mark of the user are carried in volume request;
Write instruction issuance unit, for obtaining the server authentication key and equipment authentication key of the user, to end
End issues the write instruction for carrying equipment authentication key, the wearable device mark of the user;
Response receiving unit is written, for receiving the write-in response of terminal return, if write-in response shows that equipment authenticates
Key be successfully stored in said write instruction in specify wearable device in, then save the user user identifier, can
The corresponding relationship of wearable device mark and server authentication key.
A kind of device for registering wearable device provided by the present application, using at the terminal, comprising:
Registration request transmission unit, for sending wearable device registration request, institute to server depending on the user's operation
State the user identifier that the user is carried in registration request and wearable device mark;
Write instruction receiving unit carries equipment in said write instruction and recognizes for receiving the write instruction of server
Demonstrate,prove the wearable device mark of key, the user;
Write operation execution unit, for executing write device authentication key to the wearable device specified in write instruction
Operation;
Response transmission unit is written, for sending write-in response to server, carries write device in said write response
The whether successful message of authentication key.
This application provides a kind of methods of payment, comprising:
The payment request that user is sent by payment client terminal is received, user's mark of user is carried in the payment request
Know and/or wearable device identifies;
Downlink authentication information is obtained, and is issued to payment client terminal including downlink authentication information and wearable device mark
Certification instruction;
Receive the authentication response information for carrying uplink authentication information that payment client terminal returns, the uplink authentication information
It is generated by the wearable device specified in certification instruction according to equipment authentication key and downlink authentication information, the equipment certification is close
Key is identical or corresponding as server authentication key;
Downlink authentication information and uplink authentication information are matched using the server authentication key of the user, successful match is then
The user carries out delivery operation by certification after certification passes through.
A kind of method of payment provided by the present application, comprising:
In response to delivery operation of the user on payment client terminal, payment request, the payment request are sent to server
In carry user user identifier and/or wearable device mark;
Receive that server issues includes the certification instruction that downlink authentication information and wearable device identify, and will be described under
Row authentication information is sent to wearable device, so that the equipment authentication key and downlink that are saved by wearable device using itself are recognized
It demonstrate,proves information and generates uplink authentication information;
The uplink authentication information that wearable device returns is received, and is sent to server, so that server is recognized according to uplink
Card information authenticates user, and delivery operation is carried out after certification passes through.
A kind of method of payment of wearable device provided by the present application, comprising:
The payment authentication information that payment client terminal is sent is received, the payment authentication information includes that server is based on payment visitor
The downlink authentication information that the payment request for the user that family end is sent is issued;
Uplink authentication information is generated according to the equipment authentication key of preservation and downlink authentication information, and the uplink is authenticated
Information is sent to payment client terminal, so that uplink authentication information is sent to server by payment client terminal, so that server can
User is authenticated based on uplink authentication information, and carries out delivery operation after certification passes through.
This application provides a kind of payment mechanisms, comprising:
Payment request receiving unit, the payment request sent for receiving user by payment client terminal, the payment are asked
The user identifier and/or wearable device mark of user are carried in asking;
Certification instruction issuance unit, for obtaining downlink authentication information, and issues to payment client terminal and authenticates including downlink
The certification instruction of information and wearable device mark;
Authentication response receiving unit, for receiving the authentication response for carrying uplink authentication information of payment client terminal return
Information, the uplink authentication information are believed by the wearable device specified in certification instruction according to equipment authentication key and downlink certification
Breath generates, and the equipment authentication key is identical or corresponding as server authentication key;
Matching unit is paid, downlink authentication information is matched for the server authentication key using the user and uplink is recognized
Information is demonstrate,proved, then the user passes through certification to successful match, and delivery operation is carried out after certification passes through.
A kind of payment mechanism provided by the present application, comprising:
Payment request transmission unit is sent for the delivery operation in response to user on payment client terminal to server
Payment request carries the user identifier and/or wearable device mark of user in the payment request;
Instruction receiving unit is authenticated, includes that downlink authentication information and wearable device identify for receive that server issues
Certification instruction, and the downlink authentication information is sent to wearable device, to utilize itself preservation by wearable device
Equipment authentication key and downlink authentication information generate uplink authentication information;
Authentication response transmission unit for receiving the uplink authentication information of wearable device return, and is sent to server,
So that server authenticates user according to uplink authentication information, and delivery operation is carried out after certification passes through.
Present invention also provides a kind of payment mechanisms of wearable device, comprising:
Payment authentication information receiving unit, for receiving the payment authentication information of payment client terminal transmission, the payment is recognized
The downlink authentication information that the payment request for the user that card information, which includes server, to be sent based on payment client terminal is issued;
Uplink authentication information generation unit, for generating uplink according to the equipment authentication key and downlink authentication information of preservation
Authentication information, and the uplink authentication information is sent to payment client terminal, so as to by payment client terminal by uplink authentication information
It is sent to server, so that server can authenticate user based on uplink authentication information, and is propped up after certification passes through
Pay operation.
By above technical scheme as it can be seen that embodiments herein is by being arranged server on server and wearable device
Authentication key and equipment authentication key, server utilize the server authentication key and equipment of setting by the interaction with terminal
Authentication key authenticates specified wearable device, to complete to recognize user corresponding with the wearable device
Card, user, without account and password is inputted in verification process, alleviate burden for users, mention without remembering account and password
High user obtains the efficiency of network service.
Specific embodiment
Wearable device is that one kind can be worn by user, or be integrated into user's clothes or accessory portable set
It is standby, such as bracelet, smartwatch, intelligent shoe, intelligent clothing, intelligent glasses, intelligent helmet, intelligent ring.It is wearable to set
It is standby that there is part computing function, smart phone, tablet computer, personal electricity can be connected to by hardware interface or WLAN
The terminals such as brain, by realizing various functions with terminal switch data.
Wearable device is usually specific to a user, and some wearable devices can be worn on user whenever and wherever possible,
To a certain extent, such wearable device just represents user.Embodiments herein proposes a kind of side for authenticating user
Method carries out the certification to user using the storage and computing function of wearable device, it is no longer necessary to user memory and frequently it is defeated
Enter account and password, to solve problems of the prior art.
A kind of network environment applied by embodiments herein as shown in Figure 1, wearable device by hardware interface or
WLAN is linked into terminal, and hardware interface can be audio interface, USB (Universal Serial Bus, general serial
Bus) interface etc., WLAN can be bluetooth (Bluetooth), Wi-Fi (Wireless-Fidelity, wireless guarantor
Very), ZigBee (ZigBee protocol) etc., terminal can be smart phone, tablet computer, PC etc..Terminal passes through communication network
Network (such as internet and/or mobile communications network) is communicated with server, and user is sent to the access of server at the terminal,
Server authenticates user.The hardware of the type of terminal, wearable device access terminal is connect in embodiments herein
Mouthful or protocol of wireless local area network, the agreement of communication network and networking structure, server specific implementation without limitation.
In one embodiment of the application, the process of the method for user on the server is authenticated as shown in Fig. 2, in terminal
On process it is as shown in Figure 3.
In the present embodiment, on the server the user identifier of in store user, wearable device mark and server authentication
The corresponding relationship of key.User identifier is the unique identity that some user is different from other users for the server,
Such as user name, registration mailbox etc.;If the user and mobile terminal binding, can also be bound mobile terminal number,
IMEI (International Mobile Equipment Identity, mobile device international identity code) etc..Wearable device
Mark is used to uniquely represent the wearable device, because specific device category and the protocol of wireless local area network of use it is different without
Together, the hardware address that usually can be the wearable device, such as MAC (Media Access Control, media intervention control)
Address.Server authentication key saves on the server, according to the Encryption Algorithm for using the server authentication key, and is stored in
Equipment authentication key on wearable device is identical or corresponding.Save wearable device mark and service on the server
Device authentication key corresponds, if the wearable device that a user can have more than one is used to authenticate, a user
Mark likely corresponds to two or more wearable device marks and server authentication key.Additionally need explanation
It is that the corresponding relationship of user identifier, wearable device mark and server authentication key can be stored in server local, it can also
Be stored in server it is addressable other storage equipment, as storage area network disk array or cloud storage network in, this
In embodiment without limitation.
At the terminal, step 310, certification request is sent to server depending on the user's operation, is carried in certification request
The user identifier and/or wearable device of the user identifies.
On the server, step 210, the certification request that user is sent by terminal is received.
When user at the terminal to server request need to carry out authentication service (as log in, access personal account,
Payment etc.) when, relevant information needed for server authenticates user to demanding terminal.Terminal to server sends certification request,
Carried in certification request the user user identifier or the user wearable device mark or the user user identifier and
Wearable device mark.
After server receives the certification request of terminal, identified by user identifier therein and/or wearable device, it can be with
Which user that determine request certification is.
On the server, step 220, downlink authentication information is obtained, is issued to terminal and carries downlink authentication information, the use
The detection instruction of the wearable device mark at family.
Downlink authentication information can be one section of authentication data, be also possible to utilize the server authentication saved on the server
Key is by the encrypted ciphertext of authentication data.Server can obtain authentication data, such as random generation with arbitrary mode,
Or certain byte number is intercepted from some file or picture;Server locally voluntarily can generate authentication data, can also
To be obtained from other servers;In the present embodiment without limitation.
After receiving the certification request of terminal, server extracts user identifier and/or wearable device in certification request
Mark searches whether to wrap in the corresponding relationship of the user identifier, wearable device mark and the server authentication key that are saved
Include the mark, if do not include or the user identifier in certification request and wearable device mark be not belonging to the same user,
Then refuse the certification request of terminal;Otherwise server obtains authentication data, and to the downlink authentication information of plaintext, server will be authenticated
Data, the wearable device mark of the user are encapsulated in detection instruction, are handed down to terminal;To the downlink authentication information of ciphertext,
Server is added authentication data with server authentication key corresponding with user identifier in certification request or wearable device mark
Downlink authentication information is generated after close, and the wearable device mark of downlink authentication information, the user are encapsulated in detection instruction, under
Issue terminal.
At the terminal, step 320, receive the detection instruction of server, carried in detection instruction downlink authentication information and
Wearable device mark.
At the terminal, step 330, downlink authentication information is sent to the wearable device specified in detection instruction, is received
The uplink authentication information that the wearable device returns;Uplink authentication information is authenticated by the wearable device according to the equipment of preservation close
Key and downlink authentication information generate.
Terminal receives the detection instruction of server, wearable device mark and downlink authentication information is therefrom extracted, under
Row authentication information be sent to specified in detection instruction wearable device (i.e. in detection instruction wearable device mark can
Wearable device).If the wearable device not yet access terminal specified in detection instruction, terminal needs first wearable according to this
The protocol of wireless local area network that equipment is supported completes the connection with the wearable device.
As previously mentioned, being preserved on the wearable device that server is specified identical or corresponding as server authentication key
Equipment authentication key.After wearable device receives downlink authentication information, to the downlink authentication information of plaintext, wearable device benefit
Downlink authentication information is encrypted with equipment authentication key, generates the uplink authentication information of ciphertext;Downlink certification to ciphertext
Information, it is wearable that downlink authentication information is decrypted using equipment authentication key, generate the uplink authentication information of plaintext.In plain text
Downlink authentication information correspond to the uplink authentication information of ciphertext, the uplink that the downlink authentication information of ciphertext corresponds to plaintext authenticates
Information.Uplink authentication information is returned to terminal by wearable device.
At the terminal, step 340, the detection response for carrying uplink authentication information is sent to server.
After terminal receives the uplink authentication information of wearable device return, uplink authentication information is encapsulated in detection response
It is sent to server.Wearable device mark is usually also carried in detection response.
On the server, step 230, the detection response for carrying uplink authentication information that terminal returns is received.
On the server, step 240, downlink authentication information is matched using the server authentication key of the user and uplink is recognized
Information is demonstrate,proved, then the user passes through certification to successful match.
Server receives the detection response of terminal return, therefrom extracts uplink authentication information, utilizes the server of the user
Authentication key judges whether uplink authentication information and downlink authentication information match, to determine the authentication result of the user.Specifically
For, to the uplink authentication information of plaintext, can be compared by uplink authentication information and for generating the authentication data of ciphertext,
Or it is compared after encrypting uplink authentication information with server authentication key with downlink authentication information, the if the same use
Family passes through certification, otherwise authentification failure;To the uplink authentication information of ciphertext, after being decrypted with server authentication key and
Downlink authentication information is compared, and if the same the user passes through certification, otherwise authentification failure.
The authentication result whether user passes through certification is returned to terminal by server.
At the terminal, step 350, server is received according to uplink authentication information, downlink authentication information and server authentication
The user authentication result that key determines.
In the present embodiment, on the server be arranged on wearable device identical or corresponding server authentication key and
Equipment authentication key, server utilize the equipment authentication key being stored on wearable device and guarantor by the interaction with terminal
Server authentication key in presence server authenticates specified wearable device, to complete to wearable with this
The certification of the corresponding user of equipment, user is without remembering account and password, without inputting account and password in verification process,
Burden for users is alleviated, the efficiency that user obtains network service is improved.
In one implementation, the client public key that can save user on the server, saves the user at the terminal
Private key for user, different user identifiers uses different client public key and private key for user, and client public key and private key for user are non-
A pair of secret keys in symmetric cryptography.The client public key saved on server corresponds to the user identifier of the user, wearable device
Mark and server authentication key.In this implementation, the private key for user that terminal saves is to the number carried in detection response
It signs, will sign according to (including uplink authentication information, can also include other data such as wearable device mark, user identifier)
Detection response after name is sent to server;Server carries out signature check to detection response with the client public key of the user, such as
Fruit thens follow the steps 240 by verification, the matching of uplink authentication information and downlink authentication information is carried out, if failing to pass through label
Name verification, then notify terminal authentication to fail.This implementation requires some user to authenticate when institute using wearable device
The terminal of access will preserve the private key for user of the user, and better safety may be implemented.
Furthermore it is possible to terminal iidentification is added to the user identifier for saving user on the server, wearable device identifies
In the corresponding relationship of server authentication key, to limit the end that can carry out user authentication by the wearable device of access
End.In this case, preserved on server user user identifier, wearable device mark, server authentication key and
The corresponding relationship of terminal iidentification;Terminal carries the terminal iidentification of oneself in the certification request for being sent to server;Server is received
To after certification request, will be searched in the corresponding relationship of preservation and the user identifier or wearable device mark pair in certification request
The terminal iidentification answered is compared with the terminal iidentification for sending certification request, is if the same executed step 220 and is continued to authenticate
Journey refuses the certification request of terminal, user authentication failure if different.This realization is equivalent to wearable device and can be with
It is bound by the terminal that the wearable device carries out user authentication;Generally also specially due to terminal (especially mobile terminal)
Belong to a user, the safety of user authentication can greatly be increased by binding wearable device and terminal.
Above-mentioned verification process in the present embodiment is applicable to any scene of certification user identity, use when such as logging in
Authentication when family authentication, user access personal account, body when user is paid by Third-party payment platform
Part certification etc..After user is by certification, server is the follow-up service that can provide under the scene, and terminal then executes the scene
Under subsequent operation, for example, the present embodiment be used as payment scene under authentication when, terminal is sent to payment server
Certification request is payment request;After user is by certification, payment server can provide payment clothes to the user by certification
Business;And terminal can cooperate with payment server after receiving authentication result of the server user by certification and complete user's
Delivery operation.
It, can be by the user identifier of user, the correspondence of wearable device mark and server authentication key in the present embodiment
Relationship is preset on the server, and corresponding equipment authentication key is preset on wearable device;It can also be authenticated above-mentioned
Cheng Qian first passes through registration process to generate above-mentioned corresponding relationship on the server, and write device certification is close on wearable device
Key.
The application another embodiment provides for a kind of method for registering wearable device, this method is on the server
Process is as shown in figure 4, process at the terminal is as shown in Figure 5.
At the terminal, step 510, wearable device registration request is sent to server according to user's operation.
On the server, step 410, the wearable device registration request that user is sent by terminal is received.
User carries out wearable device registration to server at the terminal, and terminal is set according to the operation of user by wearable
Standby registration request is sent to server, includes the user identifier and wearable device mark of the user in registration request.
On the server, step 420, the server authentication key and equipment authentication key for obtaining the user, under terminal
Hair carries the write instruction of equipment authentication key, the wearable device mark of the user.
After the wearable device registration request for receiving terminal, uplink authentication information or downlink are authenticated according in verification process
Encryption Algorithm used by information, server obtain for the Encryption Algorithm, recognize corresponding to the server of wearable device mark
Demonstrate,prove key and equipment authentication key.Server authentication key and equipment authentication key can be a key, and (such as symmetric cryptography is calculated
The key of method), it is also possible to a pair of secret keys (public key and private key of such as rivest, shamir, adelman).Server oneself can generate,
Server authentication key and equipment authentication key can also be obtained from other servers.
Equipment authentication key that server will acquire, corresponding wearable device mark are encapsulated in write instruction, are sent
Give the terminal.
At the terminal, step 520, receive the write instruction of server, carried in the write instruction equipment authentication key,
The wearable device of the user identifies.
At the terminal, step 530, the behaviour of write device authentication key is executed to the wearable device specified in write instruction
Make.
After terminal receives the write instruction of server, the equipment authentication key in write instruction is sent to wearable by terminal
Equipment, request wearable device save the equipment authentication key.According to the difference of wearable device and its be arranged permission difference,
Wearable device could complete the storage to equipment authentication key after user may being needed to confirm write operation.For example,
To bracelet, user usually requires to carry out percussion confirmation.
At the terminal, step 540, write-in response is sent to server, is written and carries write device authentication key in response
Whether successful message.After terminal completes the write operation between wearable device, by write-in, whether successful message is encapsulated
In write-in response, it is sent to server.
On the server, step 430, the write-in response that terminal returns is received, if write-in response shows that equipment certification is close
Key has successfully been stored in the wearable device specified in write instruction, then saves user identifier, the wearable device of the user
The corresponding relationship of mark and server authentication key, wearable device succeed in registration;If the message carried in write-in response is
The write-in of equipment authentication key is unsuccessful, then registration process fails.Registering result is sent to terminal by server.
Server can require terminal to provide the password of the user to increase the safety of wearable device registration.It is specific and
Speech, server receive the write-in response of terminal, if the message carried in write-in response is that equipment authentication key successfully saves
In wearable device, then password confirming request is issued to terminal, it is desirable that terminal provides the wearable device and identifies corresponding use
The password of family mark;Terminal receives the password confirming request of server, and the user password of user's input is carried in password confirming
Server is back in response;The password confirming response that terminal carries user password is received on server, if user password
Correctly, then the user identifier of the user, the corresponding relationship of wearable device mark and server authentication key are saved, it is wearable to set
It is standby to succeed in registration;If user password mistake refuses the registration request of terminal, registration failure.Server sends out registering result
Give terminal.
In one implementation, the client public key and private key for user of user can be automatically generated in registration process.Tool
For body, after operation success of the terminal by equipment authentication key write-in wearable device, terminal is generated according to certain algorithm should
The private key for user and client public key of user is locally saving the private key for user generated, and client public key is encapsulated in write-in response
It is sent to server;Server is correct by the write-in wearable device success of equipment authentication key or verifying user password in terminal
Afterwards, the user identifier of the user is saved, wearable device identifies, the corresponding relationship of server authentication key and client public key.
In application scenes, server public key and privacy key are preset on the server, is preset at the terminal
Terminal secret key and terminal public key, wherein server public key and terminal secret key are a pair of secret keys, and privacy key is with terminal public key
A pair of secret keys.In these scenes, server can be with the privacy key saved to detection instruction in authentication method embodiment
It signs, the detection instruction after signature is sent to terminal;Terminal save terminal public key to received detection instruction into
Row signature check refuses detection instruction, authentification failure if verifying failure.In register method embodiment, server can be with
It is signed with the privacy key of preservation to write instruction, the write instruction after signature is sent to terminal;Terminal saves
Terminal public key to received write instruction carry out signature check, if verify failure if refuse write instruction, registration failure.Eventually
End can sign to write-in response with the terminal secret key of preservation, and the write-in response after signature is sent to server;Service
The server public key that device saves carries out signature check to received write-in response, refuses the registration of terminal if verifying failure
Request.
It can be communicated by encrypted tunnel between server and terminal, to further increase wearable device registration
With the safety of user authentication.Such as in the detection instruction in authentication method embodiment and detection response, register method embodiment
Write instruction and write-in response can be transmitted in encrypted tunnel.The realization of encrypted tunnel and used encryption method please join
See the prior art, repeats no more.
In one embodiment of the application, the payment client terminal run at the terminal is set using the wearable of access terminal
The standby certification that user identity is carried out in payment process.The detailed process of the present embodiment is as follows:
On wearable device, the payment bind request of payment client terminal is received, paying in bind request includes that this can wear
Wear the equipment authentication key of equipment.The payment bind request that wearable device is issued in response to user by payment client terminal, will
The equipment authentication key carried in payment bind request is stored in local storage;
When carrying out delivery operation on payment client terminal, selection indicates to be paid by wearable device user, triggering branch
Response of the client to above-mentioned user's operation is paid, payment request is sent to server, the user of user is carried in payment request
Mark and/or wearable device mark;
After server receives the payment request that user is sent by payment client terminal, downlink authentication information is obtained, and to branch
It pays client and issues the certification instruction including downlink authentication information and wearable device mark;
Payment client terminal receives the certification instruction that server issues, and by the downlink authentication information in payment authentication information
In be sent to certification instruction in specify wearable device;
Wearable device receives the payment authentication information of payment client terminal transmission, extracts server from payment authentication information
The downlink authentication information that the payment request of user based on payment client terminal transmission is issued;And it is authenticated according to the equipment of preservation close
Key and downlink authentication information generate uplink authentication information, and uplink authentication information is sent to payment client terminal;
Payment client terminal receives the uplink authentication information that wearable device returns, and uplink authentication information is believed in authentication response
Server is sent in breath;
Server receives the authentication response information for carrying uplink authentication information that payment client terminal returns, and utilizes the user
Server authentication key matching downlink authentication information and uplink authentication information, successful match then the user by certification, and
Certification carries out delivery operation after passing through;The wearable device specified in the server authentication key of the user and certification instruction is set
Standby authentication key is identical or corresponding.
In the present embodiment, by the server with that identical or corresponding server authentication is arranged on wearable device is close
Key and equipment authentication key, authenticate wearable device using equipment authentication key and server authentication key, thus
The payment authentication for completing user corresponding with the wearable device, allows user to use wearable device on payment client terminal
It is paid, without remembering account and password, without account and password is inputted in verification process, it is negative to alleviate user
Load, improves payment efficiency.
In the application example of the application, user (applies journey by the customer end A pp operated on mobile phone terminal
Sequence) bracelet is registered to payment server after, network payment can be completed by bracelet without inputting account and password.Payment
Pairs of server public key and terminal secret key and pairs of privacy key and end are preset on server and client side App
Hold public key.Wherein, payment server can run the server of the corresponding serve end program of customer end A pp, be also possible to prop up
Hold the server of the Third-party payment platform of customer end A pp.Detailed process is as follows:
User can to payment server transmission by the customer end A pp (hereinafter referred to as client) operated on mobile phone terminal
Bracelet payment is opened in wearable device registration request, application, and client is by user identifier (account of the user in payment server), hand
Machine terminal iidentification (IMEI), bracelet mark (bracelet MAC Address) are uploaded to server in the registration request.
Payment server generates symmetric key (the i.e. identical server authentication for authenticating bracelet by scheduled algorithm
Key and equipment authentication key), symmetric key and user identifier, bracelet mark are signed by preset privacy key together
Afterwards, it is encapsulated in write instruction, client is sent to by the encrypted tunnel between payment server and client.
Client is after receiving the write instruction of server-side, first according to number in preset terminal public key verifying write instruction
According to legitimacy, if data do not conform to rule and directly refuse write instruction.After through legitimate verification, client connection is write
Enter the bracelet specified in instruction, the symmetric key for payment server being issued after successful connection is written in bracelet.Symmetric key
User needs to tap bracelet to confirm to write operation during write-in bracelet, symmetrical close after user taps bracelet
The storage region of key write-in bracelet.
After write operation success, client generates a pair of of unsymmetrical key according to user identifier, corresponding to user identifier
Client public key and private key for user.Client leads to the client public key that the whether successful result of write operation, bracelet are identified and generated
It crosses preset terminal secret key to sign, and the above- mentioned information after signature is encapsulated in write-in response, sent out by encrypted tunnel
Give payment server.Private key for user is stored in local by client.
Payment server first passes through preset server public key to client after receiving the write-in response of client
Signature is verified, and refuses the registration request of client if authentication failed.After signature verification passes through, payment server is to visitor
Family end issues password confirming request, it is desirable that client provides the user password of the account on payment server.
Client shows the prompt information of input password to user, and user inputs its account on payment server in client
Number password.The password received is sent to payment server in password confirming response by client.
Payment services end check password confirm response in user password, verification pass through after by symmetric key (server is recognized
Card key), the corresponding relationship of client public key that generates of user identifier, mobile phone terminal mark, bracelet mark and client saves
Come, notice client bracelet succeeds in registration, and registration process terminates.
After bracelet succeeds in registration on payment server, when user wishes to pay by bracelet, pass through client
The certification request of payment is sent to server, includes order information, the user identifier, mobile phone terminal mark to be paid in certification request
Know and bracelet identifies.
After the certification request for receiving client, payment server compares the mark of the mobile phone terminal in certification request, and saves
Corresponding relationship in correspond to the mobile phone terminal mark of bracelet mark in certification request, refuse certification request if different, prop up
Pay failure;If identical, payment server generates random clear data, using this clear data as downlink authentication information.
After payment server is signed downlink authentication information, user identifier, bracelet mark with preset privacy key, it is encapsulated in
In detection instruction, client is sent to by the encrypted tunnel between client.
Client verifies detection instruction according to preset terminal public key first after receiving the detection instruction of payment server
The legitimacy of middle signed data, if data do not conform to rule refusal detection instruction, payment failure.It is tested in the legitimacy by signing
After card, client connecting detection instruction in specified bracelet, will test after successful connection instruction in downlink authentication information hair
Give bracelet.Bracelet generates uplink authentication information after encrypting using the symmetric key of preservation to downlink authentication information, and will
Uplink authentication information is back to client.The percussion that the process that bracelet encrypts downlink authentication information does not need user is true
Recognize, user's operation can be further reduced, optimizes user experience.
After client receives the uplink authentication information of bracelet generation, by the uplink authentication information private key for user locally saved
It signs, data, the bracelet mark after signature is encapsulated in detection response, it is logical by the encryption between payment server
Road is sent to payment server.
Payment server, can be corresponding according to bracelet mark in detection response after the detection response for receiving client upload
Client public key carries out signature check to detection response, and certification request fails if signature check failure.After signature check success,
Payment server identifies corresponding symmetric key with bracelet and encrypts to downlink authentication information, by encrypted data and detection
Uplink authentication information in response is compared, that is, under the downlink authentication information and bracelet encryption that compare payment server encryption
Whether row authentication information is identical, identical, to the successful message of client return authentication and continues the payment of order;It is not identical then
To client return authentication failure news.After client receives the successful message of certification, complete to use together with payment server
The delivery operation of family order;If client receives the message of authentification failure, user is notified to be unable to complete due to authentification failure
This payment.
Corresponding with the realization of above-mentioned process, embodiments herein additionally provides a kind of certification user applied on the server
Device, a kind of device for applying the certification user in the terminal of accessing user's wearable device, a kind of apply in server
On the device of registration wearable device, a kind of device of application registration wearable device at the terminal, a kind of apply taking
Payment mechanism, a kind of payment mechanism applied at the terminal and a kind of payment applied on wearable device on business device fill
It sets.These devices can also be realized by software realization by way of hardware or software and hardware combining.With software reality
It is by the CPU of server, terminal or wearable device by corresponding computer as the device on logical meaning for existing
Program instruction is read into memory what operation was formed.For hardware view, in addition to CPU shown in fig. 6, memory and non-volatile
Except property memory, terminal or wearable device where device also typically include the chip etc. for carrying out wireless signal transmitting-receiving
Other hardware, the server where device also typically include for realizing other hardware such as board of network communicating function.
Fig. 7 show a kind of device for authenticating user provided in this embodiment, and using on the server, the server is protected
There are the user identifier of user, the corresponding relationship of wearable device mark and server authentication key, described device includes certification
Request reception unit, detection instruction issuance unit, detection response receiving unit and matching unit, in which: certification request receives single
Member carries the user identifier of the user for receiving the certification request that user is sent by terminal in the certification request
And/or wearable device mark;Detection instruction issuance unit issues to terminal for obtaining downlink authentication information and carries downlink
Authentication information, the user wearable device mark detection instruction;Detection response receiving unit is for receiving terminal return
The detection response for carrying uplink authentication information, the uplink authentication information by detection instruction specify wearable device root
It is generated according to equipment authentication key and downlink authentication information, the equipment authentication key is identical or opposite as server authentication key
It answers;Matching unit is used for server authentication key matching downlink authentication information and uplink authentication information using the user,
With success, the then described user passes through certification.
Optionally, the server also preserves the client public key of user, and the client public key corresponds to the user's
User identifier, wearable device mark and server authentication key are a pair of secret keys with the private key for user for being stored in terminal;It is described
The detection response that terminal returns is signed by the private key for user for being stored in terminal;Described device further includes detection response verification unit,
For carrying out signature check to the detection response of the terminal according to the client public key of the user, the user if verifying failure
Authentification failure.
Optionally, the server also preserves terminal iidentification, and the user that the terminal iidentification corresponds to the user marks
Know, wearable device identifies and server authentication key;In the certification request further include: send the terminal mark of certification request
Know;Described device further include: terminal iidentification verification unit, for user identifier or wearable device in corresponding to certification request
The terminal iidentification of mark, with send certification request terminal iidentification difference when, user authentication failure.
Optionally, the server also preserves privacy key, the privacy key and the terminal for being stored in terminal
Public key is a pair of secret keys;Described device further includes detection instruction signature unit, for being carried out with privacy key to detection instruction
Signature.
Optionally, the server is payment server, and the certification request is payment request;Described device further include:
Payment services unit, for providing payment services to by the user of certification.
Fig. 8 show a kind of device for authenticating user provided in this embodiment, applies in accessing user's wearable device
In terminal, described device includes certification request transmission unit, detection instruction receiving unit, uplink authentication information unit, detects and answer
Answer transmission unit and authentication result receiving unit, in which: certification request transmission unit is used for depending on the user's operation to server
Certification request is sent, the user identifier and/or wearable device mark of the user are carried in the certification request;Detection refers to
Receiving unit is enabled for receiving the detection instruction of server, downlink authentication information is carried in the detection instruction and wearable is set
Standby mark;Uplink authentication information unit is used to for downlink authentication information being sent to wearable setting of specifying in the detection instruction
It is standby, receive the uplink authentication information that the wearable device returns;The uplink authentication information by the wearable device according to
The equipment authentication key and downlink authentication information of preservation generate, and the equipment authentication key is recognized with the server for being stored in server
It is identical or corresponding to demonstrate,prove key;Detection response transmission unit is used to send the detection for carrying uplink authentication information to server and answers
It answers;Authentication result receiving unit is recognized for receiving server according to the uplink authentication information, downlink authentication information and server
Demonstrate,prove the user authentication result that key determines.
Optionally, the terminal preserves the private key for user of the user, the private key for user and is stored in server
Client public key is a pair of secret keys;Described device further includes detection response signature unit, for the private key for user pair with the user
Detection response is signed.
Optionally, the terminal preserves terminal public key, the terminal public key and the privacy key for being stored in server
For a pair of secret keys;The detection instruction that the server issues is signed by privacy key;Described device further includes detection instruction school
Verification certificate member is refused if verifying failure for carrying out signature check according to detection instruction of the terminal public key to the server
The detection instruction.
Optionally, the certification request is payment request, and the terminal is completed after user authentication result is by certification
The delivery operation of user.
Fig. 9 show a kind of device for registering wearable device provided in this embodiment, using on the server, from function
Upper division, described device further include registration request receiving unit, write instruction issuance unit and write-in response receiving unit,
In: registration request receiving unit is for receiving the wearable device registration request that user is sent by terminal, the registration request
In carry the user user identifier and wearable device mark;Write instruction issuance unit is for obtaining the user's
Server authentication key and equipment authentication key issue to terminal and carry equipment authentication key, the wearable of the user sets
The write instruction of standby mark;Write-in response receiving unit is used to receive the write-in response of terminal return, if write-in response shows
Equipment authentication key has successfully been stored in the wearable device specified in said write instruction, then saves the user of the user
The corresponding relationship of mark, wearable device mark and server authentication key.
Optionally, said write response receiving unit includes that password confirming request issues module and password confirming response reception
Module, in which: it is described for showing that equipment authentication key has successfully been stored in write-in response that password confirming request issues module
When in the wearable device specified in write instruction, password confirming request is issued to terminal;Password confirming response receiving module is used
The user of the user is saved if user password is correct in the password confirming response that reception terminal carries user password
The corresponding relationship of mark, wearable device mark and server authentication key.
It optionally, further include the client public key that the terminal generates in the write-in response that the terminal returns;The password
Confirmation response receiving unit is specifically used for: the password confirming response that terminal carries user password is received, if user password is just
Really, then user identifier, wearable device mark, server authentication key and the corresponding of client public key for saving the user are closed
System.
Optionally, the server also preserves privacy key and server public key;The privacy key and preservation
It is a pair of secret keys in the terminal public key of terminal;The server public key is a pair of secret keys with the terminal secret key for being stored in terminal.Institute
Stating device further includes write instruction signature unit, for being signed with privacy key to write instruction;Described device is also wrapped
Write-in response verification unit is included, for carrying out signature check to the write-in response of the terminal using server public key, if school
It tests failure and then refuses the registration request.
Figure 10 show a kind of device for registering wearable device provided in this embodiment, using at the terminal, from function
Upper division, described device further include registration request transmission unit, write instruction receiving unit, write operation execution unit and write-in
Response transmission unit, in which: registration request transmission unit is for sending wearable device note to server depending on the user's operation
Volume is requested, and the user identifier and wearable device mark of the user are carried in the registration request;Write instruction receives single
Member for receiving the write instruction of server, carried in said write instruction equipment authentication key, the user it is wearable
Device identification;Write operation execution unit is used to execute write device authentication key to the wearable device specified in write instruction
Operation;Response transmission unit is written and is used to send write-in response to server, carries write device in said write response and recognizes
Demonstrate,prove the whether successful message of key.
Optionally, described device further includes password confirming request reception unit, for sending write-in response to server
Afterwards, the user password carrying of user's input is back to clothes by the password confirming request for receiving server in password confirming response
Business device.
Optionally, described device further includes user key generation unit, for when write device authentication key operation at
After function, the private key for user and client public key of the user are generated, the private key for user is saved;It is also carried in said write response
The client public key of the user.
Optionally, the terminal preserves terminal public key and terminal secret key;The terminal public key and it is stored in server
Privacy key is a pair of secret keys;The terminal secret key is a pair of secret keys with the server public key for being stored in server;The dress
Setting further includes write instruction verification unit, for carrying out signature check using write instruction of the terminal public key to the server,
Refuse said write instruction if verifying failure.Described device further includes write-in response signature unit, for using terminal secret key
It signs to write-in response.
Embodiments herein provides a kind of payment mechanism, using on the server, functionally divides, including payment
Request reception unit, certification instruction issuance unit, authentication response receiving unit and payment matching unit, in which: payment request connects
Unit is received for receiving the payment request that user is sent by payment client terminal, the user of user is carried in the payment request
Mark and/or wearable device mark;Certification instruction issuance unit is for obtaining downlink authentication information, and under payment client terminal
Give out a contract for a project and includes the certification instruction of downlink authentication information and wearable device mark;Authentication response receiving unit is for receiving payment visitor
Family end return the authentication response information for carrying uplink authentication information, the uplink authentication information by certification instruction in specify
Wearable device is generated according to equipment authentication key and downlink authentication information, the equipment authentication key and server authentication key
It is identical or corresponding;Pay matching unit be used for using the user server authentication key matching downlink authentication information and
Row authentication information, then the user passes through certification to successful match, and delivery operation is carried out after certification passes through.
Optionally, the payment request is that user is carried out by the expression selected on payment client terminal by wearable device
The information of payment is triggered.
Embodiments herein provides a kind of payment mechanism, using at the terminal, functionally divides, including payment
Request transmitting unit, certification instruction receiving unit and authentication response transmission unit, in which: payment request transmission unit is for responding
In delivery operation of the user on payment client terminal, payment request is sent to server, carries user in the payment request
User identifier and/or wearable device mark;Certification instruction receiving unit is used to receive that server to issue recognizes including downlink
The certification instruction for demonstrate,proving information and wearable device mark, and is sent to wearable device for the downlink authentication information, so as to by
Wearable device generates uplink authentication information using the equipment authentication key and downlink authentication information itself saved;Authentication response hair
It send unit for receiving the uplink authentication information of wearable device return, and is sent to server, so that server is according to uplink
Authentication information authenticates user, and delivery operation is carried out after certification passes through.
Optionally, delivery operation of the user on payment client terminal be specially user selection expression by wearable device into
The operation of row payment.
Embodiments herein provides a kind of payment mechanism of wearable device, applies on wearable device, from function
Division, including payment authentication information receiving unit and uplink authentication information generation unit can be gone up, in which: payment authentication information receives
Unit is used to receive the payment authentication information of payment client terminal transmission, and the payment authentication information includes that server is based on payment visitor
The downlink authentication information that the payment request for the user that family end is sent is issued;Uplink authentication information generation unit is used for according to preservation
Equipment authentication key and downlink authentication information generate uplink authentication information, and by the uplink authentication information be sent to payment visitor
Family end, so that uplink authentication information is sent to server by payment client terminal, so that server can be based on uplink authentication information
User is authenticated, and carries out delivery operation after certification passes through.
Optionally, described device further include: payment binding unit, for what is issued in response to user by payment client terminal
Bind request is paid, the equipment authentication key carried in bind request will be paid and saved.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.