Summary of the invention
Technical problem to be solved by this invention provides a kind of terminal room mutual authentication method and system, alleviates the information flow-rate load of information-providing server, improves system works efficient.
In order to solve the problems of the technologies described above, the invention provides a kind of terminal room mutual authentication method, comprising:
(1) central control server is preserved the subscription list of the authentication information of all user terminals and " information " item that user terminal is ordered, and user terminal is stored the authentication information of this user terminal at central control server; Described " information " is the information service by central control server provided;
(2) central control server is by after the authentication to service providing terminal, and service providing terminal obtains the authentication information of serviced terminal, and sends to central control server;
(3) central control server carries out authentication according to the authentication information of described serviced terminal to serviced terminal;
(4) if described authentication is passed through, central control server provides terminal to provide the context session of service to serviced terminal by maintenance service, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal.
Furthermore, described authentication information is: any one in user identifier, user name, password, the cell-phone number etc. or two or more combination in any.
Furthermore, described service providing terminal obtains the authentication information of serviced terminal, comprising: service providing terminal is with after serviced terminal connects, and service providing terminal reads the authentication information of serviced terminal; Perhaps serviced terminal sends pass-along message to service providing terminal, comprises the authentication information of serviced terminal in the described pass-along message.
Furthermore, operation described in the step (4) comprises: service providing terminal copies the particular content of " information " item of serviced terminal subscribes to serviced terminal, and perhaps service providing terminal replaces serviced terminal to pay dues.
Furthermore, described method is further comprising the steps of:
Service providing terminal or serviced terminal send record request message to central control server, and the request central control server writes down the behavioural information of helping each other; After central control server is received described record request message, the described behavioural information of helping each other is carried out record; The described behavior of helping each other comprises the behavior that service is provided mutually between the terminal.
Furthermore, central control server manages the described behavior of helping each other according to described record; Described management comprises: it is necessarily preferential to give service providing terminal according to the behavior of helping each other, and perhaps according to the predefined ratio of calculating payment service providing terminal is calculated payment.
Furthermore, described method also comprises:
Service providing terminal is chosen as serviced terminal the behavior of helping each other is provided for a long time, then serviced end message is listed in " the long-term table that helps "; Service providing terminal is according to the serviced end message in " the long-term table that helps ", for all serviced terminals provide the behavior of helping each other.
In order to solve the problems of the technologies described above, the present invention also provides a kind of terminal room mutual authentication system, comprising: central control server, service providing terminal, serviced terminal; Comprise on the described central control server: first memory module, authentication module, current mutual-aid relation maintenance module; Comprise on the described service providing terminal: second memory module, authentication information sending module, authentication information obtains module; Comprise on the described serviced terminal: the 3rd memory module;
Described first memory module is used to preserve the subscription list of the authentication information of all user terminals and user terminal ordered " information "; Described " information " is the information service by central control server provided;
Described second memory module is used to store the authentication information of this service providing terminal at central control server;
Described the 3rd memory module is used to store the authentication information of this serviced terminal at central control server;
Described authentication information obtains module and links to each other with described the 3rd memory module, is used to obtain serviced terminal authentication information;
Described authentication information sending module obtains module with described second memory module and authentication information respectively and links to each other, and the authentication information that is used to send the authentication information of service providing terminal and serviced terminal is described authentication module extremely;
Described authentication module is used for according to authentication information service providing terminal and serviced terminal being carried out authentication;
Described current mutual-aid relation maintenance module, be used for after the authentication of service providing terminal and serviced terminal is passed through, maintenance service provides terminal to provide the context session of service to serviced terminal, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal.
Furthermore, described central control server also comprises logging modle, and described service providing terminal or serviced terminal also comprise the request message sending module;
The described request message transmission module is used for sending record request message to described logging modle;
Described logging modle, be used to receive described record request message after, behavioural information is carried out record to helping each other; The described behavior of helping each other comprises the behavior that service is provided mutually between the terminal.
Furthermore, described central control server also comprises administration module, links to each other with described logging modle, is used for according to described record the described behavior of helping each other being managed; Described management comprises: it is necessarily preferential to give service providing terminal according to the behavior of helping each other, and perhaps according to the predefined ratio of calculating payment service providing terminal is calculated payment.
Furthermore, described service providing terminal also comprises: help the table record module, being used for being chosen as serviced terminal in service providing terminal provides when helping each other behavior for a long time, writes down described serviced end message in " the long-term table that helps ".
By system and method for the present invention, service providing terminal can be logined central control server with the identity of oneself, help serviced terminal to carry out the loading of its ordered " information " or pay dues etc., do not need serviced terminal input authentication information during the course; In addition, service providing terminal or serviced terminal are after the mutual authentication behavior takes place, transmission is helped each other behavioural information to central control server, central control server can write down service providing terminal automatically and help serviced terminal will carry out the behavioural information of helping each other that " information " is loaded or paid dues etc., and can give preferential to service providing terminal or calculate payment according to this record.
And, the present invention is under the situation that a plurality of user terminals are all helped by same user terminal, if wherein " information " of ordering between certain user's terminal has the part of repetition, then only need service providing terminal to download a correlations " information " afterwards to central control server, send described " information " by service providing terminal to other user terminals, and need not arrive the central control server download more repeatedly, thereby can alleviate the traffic load of central control server.
Embodiment
To provide the behavior of service to be called the behavior of helping each other between the terminal mutually in the present invention, to information service be provided and the server that this mutual help service of terminal room manages will be referred to as central control server (RCCS) for the user, to offer help or the terminal of serving is called service providing terminal to other-end, be called serviced terminal accepting the help each other terminal of behavior of other-end.Be understandable that, described service providing terminal and described serviced terminal can be any user terminal of initiating or accepting mutual help service, such as PC (personal computer), mobile phone etc., and system and method for the present invention can be implemented in the bilateral network of computer network, mobile communications network, fixed communication network or any combination between them.
Core concept of the present invention is: self has obtained the authentication information of serviced terminal by the service providing terminal of authentication, and send to RCCS, RCCS carries out after authentication passes through serviced terminal according to the authentication information of serviced terminal, RCCS safeguards that a service providing terminal provides the context session of service to serviced terminal, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal.By system and method for the present invention, need not be serviced terminal login central control server, just can help serviced terminal to realize acquisition " information " and pay operation such as expense by service providing terminal.
Below in conjunction with the drawings and the specific embodiments technical solution of the present invention is elaborated.
With reference to shown in Figure 1, be terminal room mutual authentication method flow chart of the present invention.Said method comprising the steps of:
Step 101:RCCS stores the subscription list of the authentication information of all user terminals and " information " item that user terminal is ordered; User terminal is stored the authentication information of this user terminal in RCCS;
Step 102:RCCS is by the authentication to service providing terminal;
Step 103: after service providing terminal obtains the authentication information of serviced terminal, send the authentication request message that comprises described authentication information and arrive RCCS;
After step 104:RCCS receives described authentication request message, serviced terminal is carried out authentication according to wherein authentication information;
Step 105: if authentication is passed through, RCCS safeguards that a service providing terminal provides the context session of service to serviced terminal, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal.
Specifically, authentication information described in thestep 101 can be any one in user ID, user name, password, the cell-phone number etc. or two or more combination in any, as long as can realize user terminal is distinguished the information of record, can can be adopted by the present invention as described authentication information;
Step 102 is specifically as follows: user login services provides terminal, and service providing terminal sends to RCCS with user's authentication information, and RCCS carries out authentication to service providing terminal.
Instep 103, service providing terminal obtains the specific implementation of the authentication information of serviced terminal, can illustrate below by two embodiment in several ways:
As one embodiment of the present of invention, service providing terminal is with after serviced terminal connects, and service providing terminal reads the authentication information of storing on the serviced terminal.Be specifically as follows: the storage card of serviced terminal is pulled up the corresponding draw-in groove that service providing terminal is inserted in the back, directly read authentication fileinfo in the card by service providing terminal; Perhaps make service providing terminal and serviced terminal realize that certain physics (wired or wireless) is connected, as data wire, bluetooth, infrared, and other available internetwork connection modes.
As an alternative embodiment of the invention, in thestep 102, service providing terminal obtains the specific implementation of the authentication information of serviced terminal, for: serviced terminal sends pass-along message to service providing terminal, comprises the authentication information of serviced terminal in the described pass-along message;
Also comprise the step that authenticating result is turned back to service providing terminal in thestep 104.
Accept service providing terminal in thestep 105 and carry out operation in the serviced terminal extent of competence with the identity of serviced terminal, comprise multiple situation, such as: the particular content of the item of information that service providing terminal is ordered with serviced terminal copies serviced terminal to, be specially the download behavior of service providing terminal enforcement from RCCS, copy serviced terminal again to, in mobile phone or mobile phone memory card, service providing terminal self is also stored portion generally speaking; Perhaps service providing terminal helps serviced terminal to pay dues; Perhaps help the particular content of the ordered information of serviced terminal modifications; certainly the situation that also comprises other; so long as the task that service providing terminal can help serviced terminal to finish all is included among the described behavior of helping each other of present embodiment, all within protection scope of the present invention.
With reference to shown in Figure 2, be the terminal room mutual authentication method second embodiment flow chart of the present invention.In order to realize record being carried out in this behavior of helping each other of terminal room according to the result of first embodiment, then on the basis of embodiment one, increased step, the concrete steps of second embodiment are as follows:
Step 201:RCCS stores the authentication information of all user terminals and reaches the subscription list of ordered " information " item of user terminal; User terminal is stored the authentication information of this user terminal in RCCS;
Step 202:RCCS is by the authentication to service providing terminal;
Step 203: after service providing terminal obtains the authentication information of serviced terminal, send the authentication request message that comprises described authentication information and arrive RCCS;
After step 204:RCCS receives described authentication request message, serviced terminal is carried out authentication according to wherein authentication information;
Step 205: if authentication is passed through, RCCS safeguards that a service providing terminal provides the context session of service to serviced terminal, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal;
Step 206: service providing terminal or serviced terminal send record request message to RCCS, comprise the behavioural information of helping each other in the described record request message;
After step 207:RCCS receives described record request message, the described behavioural information of helping each other is carried out record.
As seen, after above-mentioned steps, can realize record is carried out in this behavior of helping each other of terminal room.
Furthermore, described method can also comprise:
Step 208:RCCS manages the described behavior of helping each other according to described record.Described management can comprise a lot of aspects, such as give according to the behavior of helping each other service providing terminal necessarily preferential, service providing terminal is calculated payment etc. according to the predefined ratio of calculating payment.
With reference to shown in Figure 3, be terminal room mutual authentication method the 3rd embodiment flow chart of the present invention.
Step 301:RCCS stores the authentication information of all user terminals and reaches the subscription list of ordered " information " item of user terminal; User terminal is stored the authentication information of this user terminal in RCCS;
Step 302:RCCS is by the authentication to service providing terminal;
Step 303: after service providing terminal obtains the authentication information of serviced terminal, send the authentication request message that comprises described authentication information and arrive RCCS,
After step 304:RCCS receives described authentication request message, serviced terminal is carried out authentication according to wherein authentication information;
Step 305: if authentication is passed through, RCCS safeguards that a service providing terminal provides the context session of service to serviced terminal, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal;
Step 306: service providing terminal is chosen as serviced terminal the behavior of helping each other is provided for a long time, then serviced end message is listed in " the long-term table that helps ";
Specifically, can send a request message to service providing terminal for serviced terminal, the request service providing terminal provides the behavior of helping each other for a long time, after serviced terminal receives this request message, is chosen as serviced terminal the behavior of helping each other is provided for a long time; Also can be, service providing terminal be for after serviced terminal provides the behavior of once helping each other, and selection provides the behavior of helping each other for a long time automatically.
Step 307: service providing terminal is according to the serviced end message in " the long-term table that helps ", for all serviced terminals provide the behavior of helping each other.
As seen, can realize that in the present embodiment service providing terminal provides the behavior of helping each other for serviced terminal for a long time.In fact,step 306,step 307 also can combine with the second embodiment of the present invention, and this has just constituted another embodiment of the present invention, like this, just both can realize that service providing terminal for a long time for serviced terminal provides the behavior of helping each other, can realize again the described behavior of helping each other is managed.
Specifically the serviced end message of record can comprise the information content that serviced terminal is ordered in " the long-term table that helps ", perhaps need service providing terminal for the expense of handing over, and the behavior time of origin etc. of helping each other, then service providing terminal is downloaded the ordered information content according to this behavior time of origin of helping each other or is replaced serviced terminal to pay dues.
Adopt the method for present embodiment, when serviced terminal request service providing terminal is offered help, if service providing terminal determines serviced terminal in " the long-term table that helps ", judge then whether related content is on the books in this locality, if related content has had copy in this locality, then use local content; If local not record, service providing terminal send authentication request to serviced terminal after RCCS, for serviced terminal provides the behavior of helping each other.As, user terminal B and user terminal C ask user terminal A to help, and the item of information that user terminal B and user terminal C subscribe to intersects to some extent, the item of information that intersects only needs user terminal A to use background process to download portion in advance and no longer is two parts, like this, oneself load ordered intersection information item content respectively than user terminal B and user terminal C, the load of RCCS has reduced half.
With reference to shown in Figure 4, be terminal room mutual authentication system schematic of the present invention.Described system comprisescentral control server 40,service providing terminal 41, servicedterminal 42; Comprise on the described central control server 40:first memory module 401,authentication module 402, current mutual-aidrelation maintenance module 403; Comprise on the described service providing terminal 41:second memory module 411, authenticationinformation sending module 412, authentication information obtainsmodule 413; Comprise on the described serviced terminal: the3rd memory module 421;
Describedfirst memory module 401 is used to preserve the subscription list of the authentication information of all user terminals and user terminal ordered " information ";
Describedsecond memory module 411 is used to store the authentication information of this service providing terminal at central control server;
Described the3rd memory module 421 is used to store the authentication information of this serviced terminal at central control server;
Described authentication information obtainsmodule 413 and links to each other with described the3rd memory module 421, is used to obtain serviced terminal authentication information;
Described authenticationinformation sending module 412 obtainsmodule 413 with describedsecond memory module 411 and authentication information respectively and links to each other, and the authentication information that is used to send the authentication information of service providing terminal and serviced terminal is described authentication module extremely;
Describedauthentication module 402 is used for according to authentication information service providing terminal and serviced terminal being carried out authentication;
Described current mutual-aidrelation maintenance module 403, be used for after the authentication of service providing terminal and serviced terminal is passed through, maintenance service provides terminal to provide the context session of service to serviced terminal, accepts service providing terminal and carries out operation in the serviced terminal extent of competence with the identity of serviced terminal.
As one embodiment of the present of invention, described central control server also comprises logging modle, and described service providing terminal or serviced terminal also comprise the request message sending module;
The described request message transmission module is used for sending record request message to described logging modle;
Described logging modle, be used to receive described record request message after, the described behavioural information of helping each other is carried out record.
And described central control server also comprises administration module, links to each other with described logging modle, is used for according to described record the described behavior of helping each other being managed; Described management comprises: it is necessarily preferential to give service providing terminal according to the behavior of helping each other, and perhaps according to the predefined ratio of calculating payment service providing terminal is calculated payment.
As another embodiment of the present invention, described service providing terminal also comprises: help the table record module, being used for being chosen as serviced terminal in service providing terminal provides when helping each other behavior for a long time, writes down described serviced end message in " the long-term table that helps ".
Below by the example in the concrete application technical solution of the present invention is carried out exemplary illustration.
Step 1: in remote central control system RCCS, stored the record of all users' authentication information (user ID, user name, password, cell-phone number etc.), user subscription information item, the particular content of item of information that all can be subscribed to for the user, pc client is when work, all be in the networking state, can ask RCCS to carry out authentication operations, store the authentication information (user ID, user name, password, cell-phone number etc.) of this user in RCCS in user's mobile phone or the mobile phone memory card;
Step 2: behind the identity login pc client of user A with oneself, mobile phone or the mobile phone memory card of user B connected with the pc client of oneself;
Step 3: the pc client of user A is read the authentication information of user B and is sent to RCCS, and RCCS carries out authentication to user B and the result returned the pc client of user A;
Step 4: if the authentication of user B is passed through, then the particular content of the pc client of user A item of information that user B is ordered copies in the mobile phone or mobile phone memory card of user B;
Step 5: the message that the pc client of user A helps user B to copy ordered content user A passes to RCCS and carries out record.
Step 6: whether user A can select to be willing to mean the help that user B provides item of information to load for a long time, as is ready, then pc client is listed user B in " the long-term table that helps ".
Step 7: the item of information generation intersection that each user in the pc client basis of user A oneself and " the long-term table that helps " orders, with the mode of background process the content of the item of information that intersection comprised is downloaded.
Step 8: user A if related content has had copy in local PC, then uses the content of local PC when providing the item of information loading to help for the user in " the long-term table that helps "; Otherwise, judge whether to start at once download by user A.
As seen, after method and system of the present invention can realize the identity login pc client of certain user terminal with oneself, be connected to the mobile phone of pc client or the authentication file in the mobile phone memory card carries out authentication by other user terminals, item of information that it is ordered is loaded in this mobile phone or the mobile phone memory card.The user terminal that this process does not need to be helped is imported authentication information (including but not limited to user name, password, cell-phone number etc.), and, when being other subscriber terminal authorities, pc client can store whether for a long time provide the help of hosting Information for it by this user intention.Then, pc client provides the user's that hosting Information helps subscription situation for a long time according to it, automatically the intersection of all users' subscription information is downloaded in advance in the mode of background process, then PC connected networks not when helping other people information of carrying out to load.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.