Specific embodiment
In practical application, all of user will not carry out business mistake with server simultaneously in an operation system
Journey.The usual server of any one operation system, all without according to can simultaneously access all users'
Standard otherwise has huge resource configuring its hardware and Internet resources in the time more than 99%
Waste.So, even if all users initiate to ask to server simultaneously, the disposal ability of server, connect
Entering the restriction of capacity does not allow server while responding to all users yet.The identity information of user is needed
Ensure that each user is unique in the operation system, and in operation system running, service
As long as device can distinguish the identity of each user in the user being currently accessed.
Therefore, embodiments herein proposes a kind of new service implementation method based on user identity, clothes
Business device distinguishes the user being currently accessed using the short mark of identity more shorter than identity information, with the short mark of identity
Know and replace identity information carrying out follow-up business procedure, so as to reduce business procedure in indicate user identity
Required byte number, so as to solve problems of the prior art.
In embodiments herein, mutually may have access to by network between terminal and server.Wherein, eventually
End can be mobile phone, panel computer, PC (Personal Computer, PC), notebook etc.
Equipment;Server is used for providing the network-side service of certain business, can be one and physically or logically service
Device, or the physically or logically server, the mutual association that share different responsibilities by two or more
With the various functions of server in realize the embodiment of the present application.The embodiment of the present application is to terminal, server
Species, and the type of communication network, agreement etc. are not limited between terminal and server.
In embodiments herein, the stream on the server of the service implementation method application based on user identity
Journey is as shown in figure 1, apply the flow process in terminal as shown in Figure 2.
In terminal, step 210 sends the identity information of user to server.
On the server, step 110, receives the identity information of the user for carrying out self terminal.
For the business based on user identity, in terminal connection server, can provide to server makes
With the identity information of the user of terminal.The identity information of user can be the business that user is located in server
ID, or ID and user's institute's using terminal in system is in the operation system
Terminal iidentification.
Wherein, ID can uniquely represent user, the registration account of such as user in the operation system
Family, user name, the unique encodings that the operation system is user's distribution etc.;Terminal iidentification can be in the business
Certain terminal is uniquely represented in system, can be the hardware address of terminal, such as MAC (Media Access
Control, medium education) address, UUID (Universally Unique Identifier, it is general only
One identification code) etc., or the operation system for terminal distribution unique encodings, can also be other
Identifier, embodiments herein is not limited.
Terminal can be when User logs in operation system, by the identity information of user in logging request
It is sent to server.
On the server, step 120, it is determined that having the identity of corresponding relation short with the identity information for receiving
Identify and be handed down to the terminal;Wherein, the byte number that the short mark of identity takes is less than identity information.
In terminal, step 220 receives the short mark of identity corresponding to sent identity information from server
Know.
Server can be based on the identity information of predetermined algorithm self terminal in future and be mapped as the short mark of identity,
As long as so that different identity informations corresponds to the short mark of different identity.For example, identity can be believed
Breath obtains informative abstract using digest algorithm;Check informative abstract whether with it is currently used in the short mark of identity
It is sensible same, if the same modification information make a summary until from it is currently used in the short mark of identity it is different;Will
The informative abstract of gained is used as the short mark of identity corresponding to the identity information.
The identity information that server after the business procedure of user terminates, can delete the user is short with identity
The corresponding relation of mark.For example, terminal to server sends user and logs off request, is logging off
The short mark of identity information or identity of user is carried in request;The business procedure of the user terminates, service
Device deletes the identity information of the user and the corresponding relation of the short mark of identity.For another example, when terminal and server
Between connection disconnect after, server is thought to terminate using the business procedure of the user of the terminal, then delete
The identity information of the user and the corresponding relation of the short mark of identity.
Terminal can after the short mark of identity that the subscriber identity information sent corresponding to it is received from server,
Preserve the short mark of identity for receiving;After business procedure terminates, it is short that terminal can delete preserved identity
Mark.Deleting the local short mark of identity for preserving can improve the safety of business procedure.
In one implementation, server is short as identity using the identity sequence number with predetermined length
Mark, (i.e. those are already allocated to the body that terminal is used to the currently used identity sequence number of server maintenance
Part serial number) record, or safeguard not currently used identity sequence number record.Send out terminal is received
After the subscriber identity information for sending, server selects a conduct to be somebody's turn to do from not currently used identity sequence number
The short mark of identity of user, is handed down to terminal.Do not limit in specific selection mode the present embodiment, example
Such as, currently used maximum identity sequence number can Jia 1 by server, if the identity sequence number of gained
It is not used by then as the short mark of identity of the user, continues Jia 1 if having been used, until obtaining
Till the identity sequence number being not used by is used as the short mark of identity of the user.Determine that the identity of user is short
After mark, server preserves the identity information of the user and the corresponding relation of identity sequence number, and this is used
The identity sequence number at family increases in currently used identity sequence number record, or by the identity of the user
Serial number is deleted from not currently used identity sequence number record.
After the business procedure of the user terminates, server deletes the identity information and identity sequence of the user
Number corresponding relation, the corresponding identity sequence number of the identity information of the user is included into into not currently used body
In part serial number, will the user identity sequence number delete from currently used identity sequence number record,
Or increase to the identity sequence number of the user in not currently used identity sequence number record.
In this implementation, a number of identity sequence number is used as into current accessed server
The short mark of identity of user, these identity sequences number can be multiplexed by multiple users in different time sections, this
Sample, using length the identity of accessing user can be distinguished much smaller than the serial number of subscriber identity information.
In terminal, step 230 proceeds to the service request of server using the short mark of the identity for receiving,
Business Processing is carried out for server for the user with the identity information corresponding to the short mark of the identity.
On the server, step 130, receives the service request initiated according to the short mark of identity, for tool
The user for having the identity information corresponding to the short mark of the identity carries out Business Processing.
Terminal is received after the short mark of identity that server is issued, and with the short mark of the identity identity of user is replaced
Information is carrying out follow-up business procedure.Terminal proceeds to the industry of server using the short mark of the identity for receiving
Business request, specifically, terminal can be using the short mark of the identity directly to server initiating business request;
Business information with the short mark of the identity can also be supplied to other equipment, being used by other equipment should
The short mark of identity is initiated and the user-dependent service request to server.
Server receives the service request initiated according to the short mark of identity, and the service request can come from service
Device issues the terminal of the short mark of the identity, it is also possible to from other equipment.Server is directed to the short mark of the identity
Knowing corresponding user carries out Business Processing.
In one example, terminal generates one-dimension code or Quick Response Code according to the short mark of identity for receiving, by life
Into one-dimension code or Quick Response Code shown;After one-dimension code that other equipment end of scan shows or Quick Response Code,
The short mark of identity therein is obtained, is identified to server initiating business request using the identity is short;Receive industry
After business request, server carries out Business Processing for the corresponding user of the short mark of identity in request.Due to
The information capacity limited (especially one-dimension code) that bar code is carried by, and the variation with business and
The raising of business procedure complexity, needs the information passed on by bar code increasing, in business procedure
The short mark of middle use identity replaces after complete subscriber identity information, has more multicapacity can be used in bar code
Other business information, the bigger operation system of so increasingly complex operation system and number of users can
Business procedure is realized using bar code, so as to make full use of the convenience of bar code, simplifies the behaviour of user
Make, improve business efficiency.
The process of service request and Business Processing according to different business systems business characteristic, implement and
Difference, can refer to prior art, repeat no more.
It can be seen that, in embodiments herein, server is terminal distribution by it corresponding to user identity
The short mark of the less identity of information, byte number distinguishing the user being currently accessed, with server adopt by terminal
Follow-up business procedure can be completed with the short mark of identity, reducing indicate in business procedure user identity institute
Need byte number, extend large user's quantity, based on user identity operation system implementation, be
User provides more facilities.
One of the application using example in, user installs the client of payment transaction system on mobile phone
Application program --- App is paid, to move payment by payment transaction system.Paying App peaces
When running for the first time after dress, the server of payment transaction system is concurrent for the terminal iidentification of handset allocation 32
Payment App is given, terminal iidentification is used for uniquely representing the mobile phone in payment transaction system.When user is led to
When crossing payment App login payment transaction systems, server will be 16 ID of user's distribution
Payment App is sent to, ID is used for uniquely representing the user in payment transaction system.User marks
Know and terminal iidentification is paid for App and is stored in locally.Payment transaction system requirements ID and terminal mark
Know in payment transaction after binding, to increase safety.
A kind of specific payment transaction is as follows:When user moves payment with mobile phone, by payment App
Generate one-dimensional bar code and be shown to gathering method, apparatus;The equipment of beneficiary is shown by scanning on mobile phone
One-dimension code obtaining identity of the user in payment transaction system, to pay to server request fund.
If paying App generates one-dimension code using ID and terminal iidentification, can remove because of one-dimension code
Outside other necessary informations, carry without enough byte numbers altogether up to 48 user totem information and
Terminal identification information and cause the payment transaction to realize.
In this application example, the identity sequence number that length is 10 is used as the short mark of identity by server.
The identity sequence number record that server maintenance is currently not used by.
When user logs in payment transaction system by paying App, App is paid by the identity information of user
(ID and terminal iidentification) is sent to server in logging request.After receiving logging request, clothes
Business device is that the user distributes an identity sequence number being currently not used by, and short as the identity of the user
Mark is sent to payment App.Server preserves the right of the identity sequence number, ID and terminal iidentification
Should be related to, the identity sequence number is deleted from the identity sequence number record being currently not used by.
Pay App and receive the identity sequence number that server is issued, save it in local.When user's handss
When machine moves payment, pay App and generate one-dimension code using 10 identity sequences number for preserving, show
Show and give gathering method, apparatus.The one-dimension code shown on beneficiary device scan mobile phone, what is sent to server
In service request, using the identity sequence number as paying party.
Server receives the service request of gathering method, apparatus, searches corresponding with identity sequence number in service request
ID and terminal iidentification, completed with corresponding ID and terminal iidentification collect money method, apparatus please
The payment transaction process asked.
When user exits payment App, payment transaction process terminates.Pay App and delete local preservation
Identity sequence number.Server deletes the corresponding of the identity sequence number of the user and ID and terminal iidentification
Relation, during the identity sequence number of the user to be added to the identity sequence number record being currently not used by.This
Sample, the identity sequence number can be used for the payment transaction process of other mobile-phone payments App.
Corresponding with the realization of above-mentioned flow process, embodiments herein additionally provides a kind of application on the server
Based on the business realizing device of user identity, and a kind of business based on user identity applied in terminal
Realize device.Both devices can be realized by software, it is also possible to be tied by hardware or software and hardware
The mode of conjunction is realized.It is by terminal or clothes as the device on logical meaning as a example by implemented in software
The CPU (Central Process Unit, central processing unit) of business device is by corresponding computer program instructions
Read what operation in internal memory was formed.From for hardware view, except the CPU shown in Fig. 3, internal memory with
And outside nonvolatile memory, the terminal that the business realizing device based on user identity is located generally also is wrapped
Include for carrying out the chip etc. of wireless signal transmitting-receiving other hardware, the business realizing device based on user identity
The server at place is generally also included for realizing the board etc. of network communicating function other hardware.
Fig. 4 show a kind of business realizing device based on user identity of the embodiment of the present application offer, should
With on the server, including at the short mark issuance unit of identity information receiving unit, identity and service request
Reason unit, wherein:Identity information receiving unit is used to receive the identity information of the user for carrying out self terminal;Body
The short mark issuance unit of part is used for the short mark of identity for determining with the identity information for receiving has corresponding relation simultaneously
It is handed down to the terminal;The short byte number for taking that identifies of the identity is less than identity information;At service request
Reason unit is used to receive the service request initiated according to the short mark of identity, for corresponding to the identity
The user of the identity information of short mark carries out Business Processing.
Optionally, the identity information receiving unit specifically for:From terminal receive user logging request,
Logging request includes the identity information of user;Described device also includes that corresponding relation deletes unit, is used for
After the business procedure of user terminates, the identity information pass corresponding with the short mark of identity of the user is deleted
System.
In one example, the short mark of the identity includes:Identity sequence number with predetermined length;It is described
Identity it is short mark issuance unit specifically for:Select in not currently used identity sequence number first, making
It is that there is the short mark of the identity of corresponding relation with the identity information for receiving and the terminal is handed down to.
In above-mentioned example, described device can also include identity sequence recovery unit, in business mistake
After journey terminates, the corresponding identity sequence number of the identity information of the user is included into into not currently used identity
In serial number.
Optionally, the identity information includes:ID, or ID and terminal iidentification.
Optionally, the service request initiated according to the short mark of identity includes:Scanning is according to the short mark of identity
Know the service request initiated after the one-dimension code or Quick Response Code for generating.
Fig. 5 show a kind of business realizing device based on user identity of the embodiment of the present application offer, should
In terminal, including the short mark receiving unit of identity information transmitting element, identity and short identification service please
Unit is sought, wherein:Identity information transmitting element is used to send the identity information of user to server;Identity
Short mark receiving unit is used to from server receive the short mark of identity corresponding to the identity information;It is described
The byte number that the short mark of identity takes is less than identity information;Short identification service request unit is used for using described
Identity is short to identify the service request for proceeding to server, short corresponding to the identity for having for server
The user of the identity information of mark carries out Business Processing.
Optionally, the identity information transmitting element specifically for:User logs in request is sent to server,
Logging request includes the identity information of user.
Optionally, described device also includes that the short mark storage unit of identity and the short mark of identity delete unit,
Wherein:The short mark storage unit of identity is used for after the short mark of identity is received from server, preserves what is received
The short mark of identity;The short mark of identity deletes unit to be used for after business procedure terminates, and deletes the identity for preserving
Short mark.
Optionally, the identity information includes:ID, or ID and terminal iidentification.
Optionally, the use identity is short identifies the service request for proceeding to server, including:According to institute
State the short mark of identity and generate one-dimension code or Quick Response Code;The one-dimension code or Quick Response Code are being scanned by other equipment
Afterwards, the service request to server is initiated by other equipment.
The preferred embodiment of the application is the foregoing is only, it is all at this not to limit the application
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.
In a typical configuration, computing device includes one or more processors (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read only memory (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique is realizing information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer include, but are not limited to phase transition internal memory (PRAM),
Static RAM (SRAM), dynamic random access memory (DRAM), it is other kinds of with
Machine access memorizer (RAM), read only memory (ROM), Electrically Erasable Read Only Memory
(EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk is stored or it
His magnetic storage apparatus or any other non-transmission medium, can be used to store the letter that can be accessed by a computing device
Breath.Define according to herein, computer-readable medium does not include temporary computer readable media (transitory
Media), such as the data signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
Exclusiveness is included, so that a series of process, method, commodity or equipment including key elements is not only wrapped
Include those key elements, but also including other key elements being not expressly set out, or also include for this process,
The intrinsic key element of method, commodity or equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that including the process of the key element, method, commodity or setting
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or with reference to software and
The form of the embodiment of hardware aspect.And, the application can be adopted and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to disk memory, CD-ROM,
Optical memory etc.) on implement computer program form.