Summary of the invention
The embodiment of the present invention provides a kind of authorization method, system and device, in order to realize client about obtaining the dynamic authorization of key, and make more client obtain the key for access relevant content, meet user and can obtain the demand of same key in a plurality of clients.
A kind of authorization method that the embodiment of the present invention provides comprises:
Server receives the key request that a client sends, and therefrom obtains a client features information, and a client features information type; Or server receives the key request that a plurality of clients send, and therefrom obtains each client features information and each client features information type; Wherein, described client features information type, be by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user request;
Client features information described in described server by utilizing, or utilize described client features information and described client features information type, the key of described client-requested is encrypted;
Key described in described server by utilizing after client features information type and described encryption generates the certificate of authority, and this certificate of authority is sent to described client;
Wherein, described by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user's request, comprise: client is according to the priority of predefined client features information type, first select the client features information type that priority is high, and extract corresponding client features information according to this client features information type, if extracted unsuccessfully, according to the client features information type of the selected suboptimum of the priority of client features information type, and the extraction client features information corresponding with this client features information type, until successfully extract client feature information.
A kind of key acquisition method that the embodiment of the present invention provides comprises:
When server only has a client, the certificate of authority that this client issues from server, obtain a client features information type and the key through encrypting; When server has a plurality of client, the certificate of authority that in described a plurality of clients, each client issues from server, obtain characteristic information type and the key through encrypting of each client in described a plurality of client; Wherein, described client features information type, be by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user request;
Described client is extracted client features information according to described client features information type, and utilizes this client features information, or utilizes this client features information and client features information type to described secret key decryption, the key after being deciphered;
Wherein, described by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user's request, comprise: client is according to the priority of predefined client features information type, first select the client features information type that priority is high, and extract corresponding client features information according to this client features information type, if extracted unsuccessfully, according to the client features information type of the selected suboptimum of the priority of client features information type, and the extraction client features information corresponding with this client features information type, until successfully extract client feature information.
A kind of server that the embodiment of the present invention provides comprises:
Receive request unit, the key request sending for receiving a client, and therefrom obtain a client features information, and a client features information type, or, the key request sending for receiving a plurality of clients, and therefrom obtain each client features information and each client features information type, wherein, described client features information type, be by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user request, described by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user's request, comprise: client is according to the priority of predefined client features information type, first select the client features information type that priority is high, and extract corresponding client features information according to this client features information type, if extracted unsuccessfully, according to the client features information type of the selected suboptimum of the priority of client features information type, and the extraction client features information corresponding with this client features information type, until successfully extract client feature information,
Ciphering unit, for utilizing described client features information, or utilizes described client features information and described client features information type, and the key of described client-requested is encrypted;
Send certificate of authority unit, for utilizing the key after described client features information type and described encryption to generate the certificate of authority, and this certificate of authority is sent to described client.
A kind of client that the embodiment of the present invention provides comprises:
Certificate of authority unit, when only having a client at server, obtains a client features information type and the key through encrypting from server the certificate of authority issuing, or, for when server has a plurality of client, the certificate of authority issuing from server, obtain characteristic information type and the key through encrypting of each client in described a plurality of client, wherein, described client features information type, be by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user request, described by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user's request, comprise: client is according to the priority of predefined client features information type, first select the client features information type that priority is high, and extract corresponding client features information according to this client features information type, if extracted unsuccessfully, according to the client features information type of the selected suboptimum of the priority of client features information type, and the extraction client features information corresponding with this client features information type, until successfully extract client feature information,
Key acquiring unit, for extracting client features information according to described client features information type, and utilize this client features information, or utilize this client features information and client features information type to described secret key decryption, the key after being deciphered.
A kind of authoring system that the embodiment of the present invention provides comprises:
Server, the key request sending for receiving a client, and therefrom obtain a client features information, and a client features information type, or, the key request sending for receiving a plurality of clients, and therefrom obtain one or more client features information, and one or more client features information type, utilize described client features information, or utilize described client features information and described client features information type, the key of described client-requested is encrypted, utilize the key after described client features information type and described encryption to generate the certificate of authority, and this certificate of authority is sent to described client, wherein, described client features information type, be by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user request, described by client according to the priority of predefined client features information type, selected client features information type from the corresponding client features information type of the device type of the client with user's request, comprise: client is according to the priority of predefined client features information type, first select the client features information type that priority is high, and extract corresponding client features information according to this client features information type, if extracted unsuccessfully, according to the client features information type of the selected suboptimum of the priority of client features information type, and the extraction client features information corresponding with this client features information type, until successfully extract client feature information,
Client, obtains client features information type and the key through encrypting for the certificate of authority issuing from described server; By the key of client features Information generation, or the key generating by this client features information and described client features information type is to the secret key decryption in the described certificate of authority, the key after being deciphered.
The embodiment of the present invention, receives by server the key request that client sends, and therefrom obtains client features information type; Described server is encrypted the key of described client-requested; Key described in described server by utilizing after client features information type and described encryption generates the certificate of authority, and this certificate of authority is sent to described client, thereby realized server to client about obtaining the dynamic authorization of key, make more client can obtain the key for access relevant content, and can meet user and obtain for accessing the demand of the same key of identical content in a plurality of clients.
Embodiment
The embodiment of the present invention provides a kind of authorization method, system and device, in order to realize client about obtaining the dynamic authorization of key, and make more client obtain the key for access relevant content, meet user and can obtain the demand of same key in a plurality of clients.
The key for access relevant content of the client-requested described in the embodiment of the present invention can be various keys, such as the Protective Key of domain key, digital content (as e-book etc.).
The embodiment of the present invention arranges the corresponding relation of client features information type and client features information in advance in client, for example, client features information type is hard disk, the sequence number that corresponding client features information is hard disk.The corresponding relation of client device type and client features information type further can also be set, make client by detection, learn after the device type of self, can find corresponding client features information type, thereby extract corresponding client features information according to this client features information type.If the corresponding a plurality of client features information types of the device type of a certain client, according to the selected a kind of client features information type of the priority of predefined client features information type.Described client features information is exactly for identifying the characteristic information of this client.Certainly, further can also in server, set in advance above-mentioned corresponding relation.
Below in conjunction with accompanying drawing, the embodiment of the present invention is elaborated.
Referring to Fig. 1, a kind of authoring system that the embodiment of the present invention provides comprises: server 11 and at least one client 12.
Server 11, the key request sending for receiving client 12, and therefrom obtain client features information type; Key to described client 12 requests is encrypted; Utilize the key after this client features information type and encryption to generate the certificate of authority, and this certificate of authority is sent to described client 12.
Client 12, obtains client features information type and the key through encrypting for the certificate of authority issuing from described server 11 according to user's request; By the key of client features Information generation, or the key generating by this client features information and described client features information type is to the secret key decryption in the described certificate of authority, the key after being deciphered.
Preferably, the key request that described server 11 further sends from described client 12, obtain client features information, utilize this client features information and/or described client features information type to be encrypted the key of described client 12 requests.When described server 11 receives the key of a plurality of clients 12 requests when identical, described server 11 utilizes the client features information of the plurality of client 12 and/or described client features information type to be encrypted the same key of the plurality of client 12 requests; Client features information and the client features information type of utilizing described a plurality of client 12 to submit to generate the certificate of authority.
Preferably, described server 11 adopts certain algorithm (as Message Digest 5 etc.) to generating encryption key after client features information processing; Or, adopt certain algorithm to process rear generation encryption key to client features information and client features information type;
Described server 11 adopts encryption key to be encrypted the key of described client 12 requests.
Preferably, the key request that described server 11 further sends from described client 12, obtain encryption key, utilize this encryption key to be encrypted the key of described client 12 requests.That is to say, after described client 12 adopts certain algorithm to client features information processing, generate encryption key; Or, adopt certain algorithm to process rear generation encryption key to client features information and client features information type, the encryption key of generation is sent to server 11.
Preferably, client 12, selectes client features information type according to user's request according to the priority of predefined client features information type, and extracts the client features information corresponding with this client features information type; This client features information and selected client features information type are sent to server 11.
Preferably, server 11 utilizes the client features information of a plurality of clients 12 to adopt complete public key broadcasts to encrypt scheduling algorithm the Protective Key of same digital content is encrypted, and makes wherein arbitrary client 12 can utilize the client features information of self to be decrypted the key obtaining from the certificate of authority; The key that server 11 utilizes after encrypting, and the client features information type that a plurality of clients 12 are submitted to generates the certificate of authority, that is to say the client features information type that the certificate of authority has comprised the key after encrypting and asked all clients submissions of same key.
Preferably, before the selected client features information type of client 12, first extract the device type of self, obtain the corresponding client features information type of self device type, the in the situation that of the corresponding a plurality of client features information type of equipment of itself type, according to the selected a kind of client features information type of the priority of predefined client features information type, and extract client features information according to this client features information type, if extracted unsuccessfully, according to the client features information type of the selected suboptimum of the priority of client features information type, and the extraction client features information corresponding with this client features information type, until extract the operation success of client features information.
Preferably, the client features information type that client 12 is obtained from the certificate of authority comprises multiple client features information type; From this multiple client features information type, select a kind of client features information type, and extract the client features information corresponding with this client features information type from self, if extracted unsuccessfully, from multiple client features information type, select another kind of client features information type, until extract the success of client features information.Wherein, while selecting a kind of client features information type in the multiple client features information type from the certificate of authority, can select according to the priority of the client features information type setting in advance.
Provide the concrete structure explanation of above-mentioned server 11 and client 12 below.
Referring to Fig. 2, preferably, described server 11 comprises:
Receive request unit 21, the key request sending for receiving client 12, and therefrom obtain client features information and client features information type.
Ciphering unit 22, for utilizing client features information to be encrypted the key of client 12 requests.
Send certificate of authority unit 23, for utilizing the key after client features information type and encryption to generate the certificate of authority, and this certificate of authority is sent to client 12.
Referring to Fig. 3, preferably, described client 12 comprises:
Information extraction unit 31, for selecting client features information type according to user's request according to the priority of predefined client features information type, and extracts the client features information corresponding with this client features information type.
Encryption key unit 32, for utilizing described client features information, or utilizes described client features information and described selected client features information type to generate encryption key.
Transmitting element 33, for by described selected client features information type, and described encryption key or described client features information send to described server 11.
Certificate of authority unit 34, obtains client features information type and the key through encrypting for the certificate of authority issuing from server 11 according to user's request.
Key acquiring unit 35, for extracting client features information according to client features information type, and utilizes this client features information to described secret key decryption, the key after being deciphered.
Provide several specific embodiments below.
Embodiment 1:
Certain electronic reader manufacturer need to the preset DRM of being subject to protection in a collection of reader that there is no an extension storage card digital content.First preset multinomial mandated program in general reader client and authorization server.The mandated program that priority is higher is: by the device number of electronic reader and card number that can extension storage card simultaneously and digital content binding, the mandated program that priority is lower is: digital content is only bound with device number.Authorization server is encrypted the Protective Key of digital content according to the characteristic information of this batch of client; In the certificate of authority, describe subsequently this batch of client characteristic information type and encrypt after content key.This certificate of authority can be for this batch of electronic reader.
Embodiment 2:
Apparatus characteristic information type and the corresponding apparatus characteristic information thereof with different priorities is set on an authorization server and on a plurality of PC equipment in advance, makes certain e-book DRM protection system can support the PC equipment that these are special.Due on PC, conventionally for the hardware of binding, as the equipment such as video card, network interface card all likely do not exist, hard disk sequence number may can not detect out yet, therefore need to possess for these features preset many covers on client software the feature information extraction scheme of priority.As preferential extraction hard disk, network interface card, video card, next extracts mainboard, CPU, internal memory, more secondly, above-mentioned 6 kinds of device numbers that utilization can be extracted, application is bound such as " hardware adaptive mechanism method ".For example, when certain user PC does not contain network interface card, user buys e-book by this PC.After obtaining RO voucher, client learns that by checkout equipment type equipment is PC, according to preset scheme, learn the client features information type that PC equipment is corresponding, and choose the client features information type that priority is higher (as being hard disk, network interface card, video card), and corresponding client features information is obtained in detection, this obtains failure, choose the client features information type (as being mainboard, CPU, internal memory) of the priority suboptimum that PC equipment is corresponding, and detect and obtain corresponding client features information, this obtains successfully.The digest value of this client features information and characteristic information type, client features information type (as are designated: PC hardware binding type 2), with RO voucher, send to together RO authorization server.RO server is after judgement RO voucher is effective; use client features information and characteristic information type as parameter; by generating the algorithm (as Message Digest 5) of key, calculate encryption key K1, and with this encryption key K1, the Protective Key Kc of digital content is encrypted, generate K2.In the certificate of authority, describe again client features information type and utilize the Protective Key K2 after K1 encrypts, as follows:
<bindtype>PC hardware binding type 2</bindtype>
<ECK>K2</ECK>
RO server returns to client by this certificate of authority.Client obtains after this certificate of authority, by its preservation.When user prepares to use e-book, client detects this certificate of authority, and gets corresponding client features information type and utilize the Protective Key after client features information encryption; Client is obtained corresponding client features information according to client features information type, uses client features Information generation decruption key, and Protective Key K2 is decrypted and obtains Kc.Recycling Kc deciphering e-book, thus make the user can reading electronic book.
Embodiment 3:
When certain e-book DRM protection system is also supported mobile phone except supporting PC equipment; client is after having obtained the RO voucher that server issues; by checkout equipment type, learn that equipment of itself is mobile phone; and learn according to predetermined scheme the client features information type that mobile phone is corresponding; and detect and to obtain corresponding client features information (as being SIM card number, cell phone apparatus number etc.), it is sent to RO authorization server together with RO voucher.RO authorization server is after the validity of judgement RO voucher; after the Protective Key of digital content being encrypted according to client features information; together with client features information type, add in the certificate of authority of generation, and this certificate of authority is returned to this mobile phone.This mobile phone has obtained after the certificate of authority, by its preservation.When user prepares to use e-book, this mobile phone detects this certificate of authority, and gets client features information type and the Protective Key after client features information encryption; Mobile phone obtains corresponding client features information according to client features information type, uses client features information to be decrypted Protective Key; Protective Key deciphering e-book after recycling deciphering, thus the e-book content that user needs obtained.
Embodiment 4:
When user wishes can read same e-book on 2 PC and a mobile phone.On first PC, client learns that by checkout equipment type equipment is PC, according to preset scheme, learn the client features information type (as being hard disk, network interface card) that preecedence requirement is obtained, and corresponding client features information is obtained in detection, obtain successfully, client features information, client features information type are sent to authorization server; On second PC, client learns that by checkout equipment type equipment is PC, according to preset scheme, learn the client features information type (as being hard disk, network interface card) that preecedence requirement is obtained, and corresponding client features information is obtained in detection, obtain failure, so search again the client features information type (as being mainboard, CPU, internal memory) of suboptimum in preset scheme corresponding to PC, and detect and obtain corresponding client features information, obtain successfully.This client features information, client features information type are sent to authorization server.On mobile phone, client learns that by checkout equipment type equipment is mobile phone, according to preset scheme, learn the client features information (as being cell phone apparatus ID) that preecedence requirement is obtained, and corresponding client features information is obtained in detection, obtain successfully, client features information, client features information type are sent to authorization server.Authorization server is after getting the client features information and client features information type of these 3 equipment; Protective Key by three's client features information encryption e-book; then the client features information type of these three clients being submitted to, the Protective Key after encryption are described in respectively in the certificate of authority; as shown in Figure 4; authorization server sends this certificate of authority to these three client devices of user, thereby makes user on these three equipment, by this certificate of authority, to read same e-book.
On first PC, client, by detecting successively client features information type on the certificate of authority, learns that the most preferred client features information type that PC is corresponding is hard disk, network interface card, obtains immediately corresponding client features information, obtains successfully; Use this client features decrypts information to obtain the Protective Key of e-book.
On second PC, client, by detecting successively client features information type on the certificate of authority, learns that the most preferred client features information type that PC is corresponding is hard disk, network interface card, obtains immediately corresponding client features information, obtains failure; Detecting the preferred client features information type of the next one corresponding to PC is mainboard, CPU, internal memory, obtains immediately corresponding client features information, obtains successfully; Use this client features decrypts information to obtain the Protective Key of e-book.
On mobile phone, client, by detecting successively client features information type on the certificate of authority, learns that the most preferred client features information type that mobile phone is corresponding is device id, obtains immediately corresponding client features information, obtains successfully; Use this client features decrypts information to obtain the Protective Key of e-book.
Obviously, the technical scheme that the embodiment of the present invention provides can also be applied in other field.For example, in the management process of territory, conventionally need to be by the same apparatus bound of territory certificate.When territory certificate need to be with special PC apparatus bound, client learns that by checkout equipment type equipment is PC, according to preset scheme, learn the most preferred client features information type that PC is corresponding (as being hard disk, network interface card), and corresponding client features information is obtained in detection, obtain failure, so choose the less preferred client features information type that PC is corresponding (as being mainboard, CPU, internal memory), and obtain corresponding client features information, obtain successfully.This client features information, client features information type are sent to field managing server.The client features information that field managing server is used client to send is encrypted domain key; In the certificate of territory, describe client features information type and utilize the domain key after client features information encryption, as follows:
<bindtype>PC hardware adaptive mechanism binding </bindtype>
<EDK>XXX</EDK>
Field managing server returns to client by this territory certificate.Client obtains after the certificate of territory, by its preservation.When user need to use this territory certificate, client is obtained the client features information type in this territory certificate and is utilized the domain key after client features information encryption; Client is obtained corresponding client features information according to client features information type, uses this client features information to be decrypted domain key.
Introduce the method that the embodiment of the present invention provides below.
Referring to Fig. 5, a kind of authorization method that the embodiment of the present invention provides comprises step:
S501, server receive the key request that client sends, and therefrom obtain client features information type.
S502, server are encrypted the key of client-requested.
Key after S503, server by utilizing client features information type and encryption generates the certificate of authority, and this certificate of authority is sent to client.
Referring to Fig. 6, a kind of key acquisition method that the embodiment of the present invention provides comprises step:
The certificate of authority that S601, client issue from server according to user's request, obtain client features information type and the key through encrypting.
S602, client are extracted client features information according to client features information type, and utilize this client features information to secret key decryption, the key for access relevant content after being deciphered.
In sum, the embodiment of the present invention receives by server the key request that client sends, and therefrom obtains client features information type; Server is encrypted the key of client-requested; Key after server by utilizing client features information type and encryption generates the certificate of authority, and this certificate of authority is sent to client, thereby realized server to client about obtaining the dynamic authorization of key, make more client can obtain the key for access relevant content, and can meet user and obtain for accessing the demand of the same key of identical content in a plurality of clients.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.