Authorization method, electronic device, and storage medium
By detecting and applying for account certificates on the terminal device, the authorization process is simplified, the delay problem caused by frequent interactions in the account-based authorization scheme is solved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/084159
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-13
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-17
AI Technical Summary
In the account-based authorization scheme, the client side and the cloud side interact multiple times to obtain authorization, which results in a complicated decryption process, increases playback delay, and reduces user experience.
After the terminal electronic device detects the user's login account, it first detects whether the account certificate exists. If it does not exist, it applies for the account certificate. There is no need for the server to detect and return the judgment result, simplifying the interaction process between the terminal device and the server and reducing the need for playing encrypted videos. time delay.
It effectively reduces the interaction process between the terminal device and the server, improves the user experience, simplifies the authorization process, and reduces the delay in playing encrypted videos.
Smart Images

Figure CN2024084159_17102024_PF_FP_ABST
Abstract
Description
Authorization method, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 13, 2023, with application number 202310436710.8 and application name “An authorization method, electronic device and storage medium”. The entire contents of the above application are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to an authorization method, electronic device, and storage medium. Background Art
[0003] Digital Rights Management (DRM) refers to technologies used by publishers to control the use rights of protected objects. For example, it can be used to protect digital media content such as software, music, and movies and prevent illegal copying of digital media content.
[0004] In some implementation schemes, the rights management method is device-based authorization, that is, the DRM server uses the public key of the device's certificate to encrypt the device, and only the authorized device has the matching private key to decrypt the media content encrypted by the DRM server. However, with the increase in user devices, users hope to easily share encrypted content between different devices. In order to solve the above problem, some solutions have publicly proposed account-based authorization (also known as domain-based authorization). That is, multiple devices of the same user can be added to the same account (or the same domain), and multiple devices authorized by the user can share the same account certificate (or domain certificate) and the corresponding public-private key pair. The server uses the public key encryption of the account certificate so that each device under the same account can be decrypted by the corresponding private key, thereby quickly migrating or sharing encrypted content.
[0005] However, in the above account-based authorization solution, the client and the cloud must interact multiple times to obtain account-based authorization. The entire decryption process is relatively complicated, which increases the playback delay and reduces the user experience.
[0006] Summary of the Invention
[0007] In order to solve the problem in the above-mentioned account-based authorization solution that the terminal side and the cloud side need to interact multiple times to obtain account-based authorization, the entire decryption process is relatively complicated, which increases the playback delay and reduces the user experience, this application provides an authorization method, electronic device and medium.
[0008] In a first aspect, the present application provides an authorization method, which includes: a first electronic device detects an operation of a user logging into a first account; the first electronic device detects whether the first electronic device has an account certificate corresponding to the first account; in the case where the first electronic device does not have an account certificate corresponding to the first account, the first electronic device sends an account certificate acquisition request to a second electronic device, and the account certificate acquisition request is used to obtain the account certificate corresponding to the first account; the first electronic device detects an operation of a user opening encrypted content based on the first account, and detects that the first electronic device has an account certificate; the first electronic device sends an authorization request to the second electronic device, and the authorization request includes the account certificate.
[0009] It is understood that the first electronic device mentioned in this application can be a terminal electronic device, and the second electronic device can be a cloud server. Based on the above solution, before the terminal electronic device sends an authorization request to the server, for example, after the user logs in to the account, the terminal electronic device first detects whether the account certificate exists. If the account certificate does not exist, it can apply for the account certificate without the server detecting whether the account certificate exists and returning the judgment result. In this way, the interaction process between the terminal electronic device and the server can be effectively reduced, the delay in playing encrypted videos can be reduced, and the user experience can be improved.
[0010] In a possible implementation, the method further includes: the first electronic device detecting that the first account is logged out; the first electronic device setting the state corresponding to the first account certificate to a first state, wherein the first state includes a suspended state.
[0011] In this application, the terminal electronic device can also manage the account certificate by saving, canceling, changing the status, etc. For example, in some embodiments, the terminal electronic device can save the account certificate and the corresponding account after obtaining the account certificate, and when the user logs out of the current account, the account certificate is not deleted, and the status of the account certificate is changed to temporary storage, suspended use, etc., so that after the user logs in again, the status of the account certificate is changed to normal, so as to re-enable the certificate corresponding to the account. In this way, the user does not need to re-obtain the account certificate when logging in again, further simplifying the authorization process, reducing the delay in playing encrypted videos, and improving the user experience.
[0012] In one possible implementation, when the first electronic device detects an operation in which a user logs in to a first account, and the first electronic device detects that the first electronic device has an account certificate corresponding to the first account, the first electronic device obtains a status corresponding to the first account certificate; when the status corresponding to the first account certificate is a first status, the first electronic device changes the status corresponding to the first account certificate to a second status, where the first status includes a suspended status and the second status includes a normal status.
[0013] In one possible implementation, the first electronic device detects that the first account is logged out; the first electronic device sends an account certificate cancellation request to the second electronic device; the second electronic device sends an account certificate cancellation response to the first electronic device; and the first electronic device deletes the account certificate.
[0014] In a possible implementation, the second electronic device sends the account certificate cancellation response to the first electronic device, including: the second electronic device releases the binding relationship between the first electronic device and the account certificate, and sends the account certificate cancellation response to the first electronic device.
[0015] In one possible implementation, the method further includes: the second electronic device sending an authorization response to the first electronic device based on the authorization request, wherein the authorization response includes key information corresponding to the encrypted content; and the first electronic device decrypting the encrypted content based on the authorization response.
[0016] In one possible implementation, the account certificate acquisition request includes a digital authorization management certificate signature of the electronic device;
[0017] The second electronic device sends the account certificate corresponding to the first account to the first electronic device, including: when the second electronic device determines that the digital authorization management certificate signature verification passes, sending the account certificate corresponding to the first account to the first electronic device.
[0018] In a possible implementation, the first electronic device receives the account certificate sent by the second electronic device and stores the account certificate.
[0019] In a possible implementation, the first electronic device includes a terminal electronic device, and the second electronic device includes a cloud server.
[0020] In a second aspect, the present application provides an electronic device, including: an account management module, used to detect the operation of a user logging into a first account; a certificate management module, used to trigger a digital rights management framework to detect whether the first electronic device has an account certificate corresponding to the first account; a digital rights management framework, used to detect whether the first electronic device has an account certificate corresponding to the first account; the digital rights management framework, used to generate an account certificate acquisition request in response to the situation where the first electronic device does not have an account certificate corresponding to the first account, the account certificate acquisition request is used to obtain the account certificate corresponding to the first account; a certificate management module, used to send an account certificate acquisition request to a second electronic device; the digital rights management framework, used to detect the existence of an account certificate in the first electronic device, generate an authorization request, and send the authorization request to an application; the application, used to detect the user's operation of opening encrypted content based on the first account, send an authorization request to the second electronic device, and the authorization request includes the account certificate.
[0021] In this application, an account management module, a certificate management module, a digital rights management framework module, etc. can be added to the terminal device to implement the management of account certificate query, storage, cancellation, change of status, etc. Before the terminal electronic device sends an authorization request to the server, for example, after the user logs in to the account, the digital rights management framework module of the terminal electronic device first detects whether the account certificate exists. If the account certificate does not exist, the account certificate can be applied for without the server detecting whether the account certificate exists and returning the judgment result. In this way, the interaction process between the terminal electronic device and the server can be effectively reduced, the delay in playing encrypted videos can be reduced, and the user experience can be improved.
[0022] In a possible implementation, the account management module is configured to detect an operation of a user canceling a first account;
[0023] The digital rights management framework is used to generate an account certificate cancellation request and send the account certificate cancellation request to the certificate management module when the first account is cancelled; the certificate management module is used to send the account certificate cancellation request to the second electronic device; the digital rights management framework is used to delete the account certificate corresponding to the first account when receiving the account certificate cancellation response sent by the second electronic device.
[0024] In one possible implementation, the account management module is used to detect a user's operation of canceling a first account; the certificate management module is used to trigger the digital rights management framework to set the status corresponding to the first account certificate to a first status when the first account is canceled, wherein the first status includes a suspended status; the digital rights management framework is used to set the status corresponding to the first account certificate to the first status.
[0025] In one possible implementation, the certificate management module is used to trigger the digital rights management framework to change the state corresponding to the first account certificate to a second state when the account management module detects an operation of a user logging into a first account, and the first electronic device has an account certificate corresponding to the first account, and the state corresponding to the first account certificate is a first state. The first state includes a suspended state, and the second state includes a normal state; the digital rights management framework is used to change the state corresponding to the first account certificate to the second state.
[0026] In a third aspect, the present application provides an electronic device, comprising a memory for storing instructions executed by one or more processors; and a processor for executing the authorization method mentioned in the present application.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on an electronic device, the electronic device executes the authorization method mentioned in the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG1 is a schematic diagram showing a flow chart of a method for encrypting / decrypting a DRM file according to some embodiments of the present application;
[0029] FIG2 shows a schematic diagram of a framework of a terminal electronic device according to some embodiments of the present application;
[0030] FIG3 is a schematic diagram showing a flow chart of a method for encrypting / decrypting a DRM file in an Android system according to some embodiments of the present application;
[0031] FIG4 shows a schematic diagram of an account certificate and a DRM device certificate according to some embodiments of the present application;
[0032] FIG5 is a schematic diagram showing a process of authorizing the playback of encrypted videos based on an account number according to some embodiments of the present application;
[0033] FIG6 shows a schematic diagram of an application scenario of an embodiment of the present application according to some embodiments of the present application;
[0034] FIG7 shows a schematic diagram of a system architecture of an embodiment of the present application according to some embodiments of the present application;
[0035] FIG8 a shows a schematic flow chart of an authorization method according to some embodiments of the present application;
[0036] FIG8 b shows a schematic flow chart of an authorization method according to some embodiments of the present application;
[0037] FIG9 is a schematic diagram showing a flow chart of another authorization method according to some embodiments of the present application;
[0038] FIG10 shows a schematic diagram of the hardware structure of a terminal electronic device 100 according to some embodiments of the present application. DETAILED DESCRIPTION
[0039] The embodiments of the present application include but are not limited to an authorization method, an electronic device and a storage medium.
[0040] In order to facilitate understanding of the technical solution of the present application, the terms mentioned in the embodiments of the present application are first introduced.
[0041] 1. Digital Rights Management (DRM)
[0042] DRM is a protection technology based on the Public Key Infrastructure (PKI) system, which can be used to manage the use rights of protected digital media (such as images, audio and video, etc.). DRM can prevent digital media from being illegally copied. The business platform that provides the DRM file (also known as the Content Provider (CP)) can use DRM technology to encrypt the file to obtain the DRM file. Afterwards, the user can obtain the DRM file from the content provider through the electronic device's application (APP). Only when the electronic device is authorized by the content provider can the electronic device's APP decrypt and use the DRM file.
[0043] Among them, the electronic device can be a device that supports DRM technology. For example, the electronic device has a legal DRM device certificate. The DRM device certificate can have a pair of public / private keys generated using an asymmetric encryption algorithm. In response to the electronic device's request for a DRM file, the content provider can use the public key of the electronic device to encrypt the authorization information and send the encrypted authorization information to the electronic device. Among them, the authorization information includes a decryption key for the DRM file. After receiving the encrypted authorization information from the content provider, the electronic device can use the private key to decrypt the encrypted authorization information to obtain the decryption key for the DRM file. In this way, the electronic device can use the decryption key to decrypt the DRM file, and then obtain the decrypted DRM file. The electronic device provided in the embodiment of the present application can be an electronic device that can play or display multimedia data and supports DRM technology, including but not limited to mobile phones, tablets, PCs, large screens, wearable devices, car computers, etc.
[0044] 2. Uniform Resource Locator (URL)
[0045] URL is a method of specifying the location of information on the World Wide Web service program of the Internet.
[0046] 3. Application Programming Interface (API)
[0047] An API is an interface that provides applications and developers with the ability to access a set of routines without having to access the source code or understand the details of the internal workings. An API is an agreement that connects different components of a software system.
[0048] The technical solution of this application is introduced below with reference to the accompanying drawings.
[0049] First, the process of the encryption / decryption method of the DRM file is introduced in conjunction with Figure 1. As shown in Figure 1, the encryption and decryption method of the DRM file includes:
[0050] S101: The content provider submits the original content to the packager for encryption.
[0051] In some embodiments, the original content provided by the content provider may be an unencrypted file, such as an unencrypted video or audio file. The original content may be encrypted by a server-side packager to obtain encrypted content. It is understood that a packager is a file packaging and encryption tool that can automatically or based on user operation set an encryption key, file number, packaging encryption mode, etc. for a user-selected packaged file to obtain an encrypted file.
[0052] S102: The packager obtains a key from a Key Manager Server (KMS) and symmetrically encrypts the original content.
[0053] It is understood that the KMS can store multiple different symmetric keys. After the packager obtains the key from the KMS, it encrypts the original content and can send the correspondence between the original content and the key to the KMS. For example, when the original content is the first video, the key obtained from the KMS is recorded as the first key, and the packager symmetrically encrypts the first key corresponding to the first video.
[0054] S103: The packager injects the encrypted content into the Content Delivery Network (CDN).
[0055] In some embodiments, the packager may send the encrypted content to a CDN, which may receive and store the encrypted content.
[0056] It can be understood that CDN is a layer of intelligent virtual network built on the existing Internet by placing node servers in various parts of the network. CDN can redirect user requests to the service node closest to the user in real time based on comprehensive information such as network traffic and the connection and load status of each node, as well as the distance to the user and response time, so that users can obtain the required content nearby, thereby improving the response speed of users visiting the website.
[0057] S104: The terminal electronic device obtains the encrypted content through the CDN.
[0058] It can be understood that the encrypted content can be encrypted DRM multimedia data to be played, such as paid audio and video files.
[0059] S105: In response to the user's operation of playing the encrypted content in the terminal electronic device, the terminal electronic device sends a request for authorization message to the license server. After the authorization server authenticates the request for authorization message sent by the electronic device, it queries the KMS for the key corresponding to the encrypted content.
[0060] It is understood that after querying the key corresponding to the encrypted content, the authorization server can bind the key to the electronic device's certificate, encrypt the key and the corresponding authorization information using the public key of the electronic device's certificate, generate an authorization file, and return it to the electronic device. In this way, after receiving the authorization file, the electronic device can decrypt the authorization file using its private key, obtain the key contained in the authorization file, and use the key to decrypt the encrypted content.
[0061] It can be understood that the user's operation of playing encrypted content in an electronic device may include the user's operation of playing an encrypted video in an APP of the electronic device.
[0062] It is understood that the authorization request message may include the content ID or key ID of the encrypted content, which corresponds one-to-one with the key of the encrypted content to be played, and may also include information such as the user account and password, the electronic device identifier (such as a certificate), and the public key. The user account and password refer to the account and password that the user can use to log in to the APP of the electronic device.
[0063] It can be understood that the authorization server authenticates the authorization request message sent by the electronic device, which may refer to the authorization server authenticating the user account and password of the electronic device to verify whether the electronic device is a legitimate device and whether the user account and password are correct.
[0064] It is understandable that the authorization server may store certificates of the superior certificate issuing authority of multiple electronic devices, multiple user accounts and corresponding passwords. If the certificate of the electronic device is verified to be a certificate issued by the certificate issuing authority stored by the authorization server, it means that the electronic device is a legal device. At the same time, if the user account and the corresponding password are consistent with the user account and the corresponding password stored by the authorization server, it means that the user account and password entered by the user are correct. In the authorization request message, if the electronic device is verified to be a legal device and the user account and password are correct, the authorization server passes the authentication of the electronic device on the electronic device side.
[0065] S106: The authorization server binds the content key and the playback control information of the encrypted content to the device certificate, encrypts the content key and the corresponding authorization information using the public key of the electronic device certificate, generates an authorization file and returns it to the electronic device.
[0066] It is understood that the authorization file can be a file that grants the electronic device permission to use or play the encrypted content. For example, the authorization file can include information such as the duration and number of times the electronic device is allowed to use or play the encrypted content.
[0067] The electronic device uses its private key to decrypt the authorization file, obtains the decryption key carried therein, decrypts and plays the encrypted content.
[0068] In conjunction with Figures 2 and 3, the following describes the process flow of the encryption and decryption method of the DRM file, taking the terminal electronic device as an Android operating system as an example. As shown in Figure 2, the terminal electronic device may include: an Android operating system and a trusted execution environment (TEE). The Android operating system may include an application layer, a media digital rights management framework, and a digital rights management module (DRM module). The application layer may include various applications; the DRM module may include plug-ins (DRM Plugins) corresponding to various digital rights management, such as a digital rights management 1 plug-in, a digital rights management 2 plug-in, etc. The trusted execution environment may include various digital rights management trusted applications (DRM Trust Applications, DRM TAs) and corresponding digital rights management certificates, such as a digital rights management 1 trusted application, a digital rights management 2 trusted application, a digital version 1 management certificate, and a digital version 2 management certificate.
[0069] The following takes encrypted content as an example to describe the playback steps of DRM encrypted video in detail. As shown in FIG3 , the playback steps of the encrypted video may include:
[0070] S301: The application in the application layer obtains the encrypted video stream and parses the encrypted video stream to obtain DRM encryption parameters.
[0071] In some embodiments, the applications in the application layer may be video applications, music applications, etc., for example, they may include application 1 and application 2 for playing videos.
[0072] In some embodiments, the DRM encryption parameters may include a DRM encryption mode, a DRM encryption type, and the like.
[0073] S302: The application in the application layer calls the media digital rights management framework and provides the media digital rights management framework with DRM encryption parameters obtained from the encrypted video stream.
[0074] S303: The media digital rights management framework calls the digital rights management plug-in, generates an authorization request message based on the DRM encryption parameters, and returns it to the application.
[0075] In some embodiments, the authorization request message carries public key information of the device.
[0076] It is understood that the authorization request message may include the content ID or key ID of the encrypted video, which corresponds to the key of the encrypted video to be played. The authorization request message may also include information such as the user account and password, the electronic device's identifier (such as a certificate), and the public key. Among them, the user account and password refer to the account and password that the user can use to log in to the APP of the electronic device.
[0077] S304: The application in the application layer sends an authorization request message to the cloud to obtain an authorization response.
[0078] It is understood that the authorization response includes information such as the key corresponding to the encrypted video and the key usage rules. It is understood that upon receiving the authorization request message, the cloud can query the key corresponding to the encrypted content, bind the key and key usage rules to the electronic device's certificate, and encrypt the key and key usage rules using the public key of the electronic device's certificate. This generates an authorization file, i.e., the authorization response, and returns it to the application layer of the electronic device.
[0079] S305: The application in the application layer calls the API provided by the media digital rights management framework and sends the authorization response to the DRM module. The DRM module parses the authorization response to obtain the key corresponding to the encrypted content.
[0080] After receiving the authorization response, the DRM module of the electronic device can decrypt the authorization response using the private key of the electronic device, obtain the key carried in the authorization response, and decrypt the encrypted content using the key.
[0081] S306: The application in the application layer transmits the encrypted video stream to the DRM module through the API provided by the media digital rights management framework. The DRM module decrypts the video stream based on the content key, obtains the original content stream, and plays the video.
[0082] In some embodiments, the rights management method is device-based authorization, that is, each electronic device has a unique DRM certificate, the DRM is bound to the electronic device, and the authorization information of the electronic device is encrypted using the public key of the electronic device certificate. Only the corresponding electronic device has a matching private key, which is used to decrypt the key of the encrypted content and obtain the encrypted content.
[0083] However, device-based authorizations are deeply tied to a single device, limiting the ability to share authorizations across multiple devices. For example, if a user purchases video content, device-based authorizations only support a single device, preventing fast transfer between devices, impacting the user experience.
[0084] In some embodiments, account-based authorization (also referred to as domain-based authorization) is proposed. Specifically, referring to Figure 4, the same user has multiple devices: device 1-device n, and multiple devices form a device group. Each device has a corresponding DRM device certificate. For example, device 1 has DRM device certificate 1, and device n has DRM device certificate n. Multiple devices in a device group can be added to the same account (or the same domain), and multiple devices can share the same account certificate (or domain certificate) and the corresponding public-private key pair. By using the public key of the same account certificate to encrypt the authorized content, multiple devices under the same account have corresponding private keys for decryption, so that the encrypted content can be migrated or shared.
[0085] 5 , the following describes the process of playing encrypted videos based on account authorization in some embodiments, including:
[0086] S501: The terminal electronic device detects that a user attempts to play an encrypted video.
[0087] In some embodiments, the user's attempt to play the encrypted video may be an operation in which the user clicks a play control in an APP in the terminal electronic device to play the encrypted video.
[0088] S502: The terminal electronic device generates an authorization request.
[0089] S503: The terminal electronic device sends an authorization request to the authorization server.
[0090] In some embodiments, the terminal electronic device detects that there is no local authorization information for the encrypted video and sends the generated authorization request to the authorization server.
[0091] S504: The authorization server processes the authorization request.
[0092] In some embodiments, the authorization server may process the authorization request, for example, by determining whether the authorization request sent by the terminal electronic device lacks the corresponding domain / account certificate. If so, the process proceeds to S505, where the authorization server responds with a failure and returns an error code to the terminal electronic device. If not, the process proceeds to S513, where the authorization request is bound to the domain / account certificate.
[0093] It is understandable that since there is no API interface for managing account certificates in the current Android system's API framework, that is, there is no corresponding API interface that supports account authorization, whether there is an account certificate in the terminal electronic device needs to be determined by the authorization server.
[0094] In some embodiments, when the authorization server detects that the authorization request sent by the terminal electronic device lacks the corresponding domain / account certificate, the authorization server responds with a failure and returns an error code to the terminal electronic device.
[0095] In some embodiments, when the authorization server detects that the authorization request sent by the terminal electronic device contains the corresponding domain / account certificate, the authorization server responds successfully, goes to S513, binds the authorization request with the domain / account certificate, and sends an authorization response to the terminal electronic device.
[0096] S505: The authorization server fails to respond and returns an error code to the terminal electronic device.
[0097] S506: After receiving the error code, the terminal electronic device obtains domain / account information.
[0098] The domain / account information obtained by the terminal electronic device may include account / domain name, password and other information.
[0099] S507: The terminal electronic device generates a domain joining / account information request.
[0100] S508: The terminal electronic device sends a domain / account information joining request to the domain / account server.
[0101] S509: The domain / account server processes the domain / account information joining request sent by the terminal electronic device to obtain a domain / account certificate.
[0102] S510: The domain / account service sends the domain / account certificate to the terminal electronic device.
[0103] S511: The terminal electronic device saves the domain / account certificate.
[0104] In some embodiments, the domain / account credentials may include a name and a password.
[0105] S512: The terminal electronic device sends an authorization request to the authorization server.
[0106] It is understandable that after the terminal electronic device obtains the domain / account certificate, the authorization request sent to the authorization server may carry the domain / account certificate.
[0107] S513: The authorization server processes the authorization request and binds the authorization request to the domain / account certificate.
[0108] S514: The authorization server sends an authorization response to the terminal electronic device.
[0109] S515: The terminal electronic device plays the encrypted video.
[0110] In the above-mentioned account-based authorization process for playing encrypted videos, the terminal electronic device needs to send an authorization request to the authorization service on the server side each time the terminal electronic device logs in to the account to play the encrypted video, and the authorization service on the server side determines whether the terminal electronic device has an account certificate. When the terminal electronic device does not have an account certificate, the judgment result is returned to the terminal electronic device, so that the terminal electronic device can re-apply for the account certificate and then apply for playback authorization. This makes the service use complicated and the process lengthy. The terminal electronic device needs to interact with the cloud side multiple times to establish account-based authorization, which increases the delay in playing encrypted videos and reduces the user experience.
[0111] To solve the above problem, an embodiment of the present application proposes an authorization method. Before the terminal electronic device sends an authorization request to the server, for example, after the user logs in to the account, the terminal electronic device first detects whether an account certificate exists. When the account certificate does not exist, an account certificate can be applied for without the server detecting whether an account certificate exists and returning a judgment result. In this way, the interaction process between the terminal electronic device and the server can be effectively reduced, the delay in playing encrypted videos can be reduced, and the user experience can be improved.
[0112] In some embodiments, the terminal electronic device can also manage account certificates by saving, canceling, changing their status, etc. For example, in some embodiments, after obtaining the account certificate, the terminal electronic device can save the account certificate and the corresponding account, and when the user logs out of the current account, the account certificate is not deleted, and the status of the account certificate is changed to temporary storage, etc., so that after the user logs in again, the status of the account certificate can be changed to normal, so that the certificate corresponding to the account can be re-enabled. In this way, the user does not need to re-obtain the account certificate when logging in again, further simplifying the authorization process, reducing the delay in playing encrypted videos, and improving the user experience.
[0113] In some embodiments, an account certificate management module may be added to the terminal device to implement management such as querying, saving, canceling, and changing the status of the account certificate.
[0114] The following first introduces the application scenario of the embodiment of the present application in conjunction with Figure 6.
[0115] As shown in ① in Figure 6, a user attempts to watch a DRM-encrypted video on device A. First, the user needs to log in to the user account and download the encrypted media file from the content distributor through the video application.
[0116] As shown in step ② of Figure 6, after device A determines that the electronic device has an account certificate, the video application parses the encryption parameters from the media file, calls the DRM framework API to generate an authorization request, and sends the request to the authorization service in the video cloud service. The authorization service in the video cloud service verifies the user's subscription relationship. If the authorization service in the video cloud service detects that the user has purchased encrypted videos, it generates an authorization message and sends it to the video application in device A. The authorization is bound to the user's account certificate. The video application then sends the authorization to the DRM framework API interface for parsing and processing.
[0117] As shown in ③ of Figure 6, the video application in device A detects the user's operation of clicking to play the encrypted video. The video application calls the DRM framework API interface to decrypt the encrypted bit stream. The decrypted bit stream is decoded, rendered, and other processes to play the encrypted video.
[0118] As shown in Figure 6 (4), a user can initiate a content sharing or migration operation, authorize device B, and transfer the encrypted content to device B under the same account. There are various methods for content transfer, such as copying the encrypted content stored on device A to device B, or sending the Uniform Resource Locator (URL) in the video cloud service to device B, which then re-downloads the encrypted content from the video cloud service.
[0119] As shown in step ⑤ of Figure 6, the video application in device B calls the DRM framework API interface to decrypt the encrypted code stream, and uses account-based authorization to decrypt and play it, allowing the user to play the encrypted video on device B.
[0120] The following first introduces the system architecture for executing the authorization method in the embodiment of the present application.
[0121] As shown in Figure 7, the system architecture of the embodiment of the present application may include a digital rights management cloud service (server) and a terminal electronic device. The digital rights management cloud service may include a license authorization management service module and an account certificate management service module. The terminal electronic device may include an account management module, a certificate management module, a digital rights management framework module, an account certificate module, and a digital rights management device certificate module.
[0122] The account management module in the terminal electronic device is used to provide a unified account management service (the account can be any type of account, such as a device account, a user's mobile phone number, an email address, a user identification number, etc.). In the embodiment of the present application, the account management module can notify the certificate management module when it detects a user login, logout / cancellation operation.
[0123] The certificate management module in the terminal electronic device is used to provide DRM certificate management functions. When the certificate management module detects changes in the account (login, logout / cancellation), it can simultaneously complete operations such as applying for, enabling, and disabling the account certificate.
[0124] The DRM framework module in the terminal electronic device, or DRM framework, is used to provide system-level DRM-related functional interfaces, including DRM authorization management, content decryption, and secure storage of DRM certificates / account certificates.
[0125] The account certificate module in the terminal electronic device is used to store the generated account certificate.
[0126] The DRM device certificate module in the terminal electronic device is used to store the device certificate.
[0127] The account certificate management service module in the digital rights management cloud service is used to provide account certificate generation.
[0128] Based on the above system architecture, and through the interaction process between the end-side and the cloud test, the implementation process of an authorization method provided by this application is introduced below. Figures 8a and 8b are flow charts showing an authorization method according to some embodiments of this application. Figure 8a shows a flow chart of the authorization method in the user login process and the playback process. As shown in Figure 8a, the method includes the following steps:
[0129] 1. User login account process:
[0130] S801: The electronic device detects that the user completes the account login operation, and the account management module sends a login notification to the certificate management module.
[0131] In some embodiments, the account management module of the electronic device can detect the operation of the user logging into an account, such as the operation of logging into the first account.
[0132] S802: The certificate management module calls the interface provided by the DRM framework to query the status of the account certificate corresponding to the user account.
[0133] S803: The DRM framework returns the query result to the certificate management module.
[0134] In some embodiments, if the DRM framework finds that the account certificate exists, no further processing is required and the process ends. If the DRM framework finds that the account certificate does not exist, the process goes to S804, where the certificate management module calls the DRM framework interface and sends a request to the DRM framework to obtain the account certificate.
[0135] S804: The certificate management module sends a request to obtain an account certificate to the DRM framework.
[0136] S805: The DRM framework generates an account certificate request and returns the request to the certificate management module.
[0137] In some embodiments, the account certificate request is signed by the device's DRM certificate.
[0138] S806: The certificate management module sends the account certificate request to the account certificate management service on the cloud side.
[0139] S807: The account certificate management service verifies the legitimacy of the request.
[0140] The account certificate management service confirms whether the account certificate request has a valid DRM certificate signature. If the account certificate management service confirms that the account certificate request does not have a valid DRM certificate signature, the process ends. If the account certificate management service confirms that the account certificate request has a valid DRM certificate signature, the process proceeds to step S808.
[0141] S808: The account certificate management service generates an account certificate and sends the account certificate to the certificate management module.
[0142] After the account certificate management service passes the verification (that is, after the verification request is legitimate), it generates an account certificate corresponding to this account, saves the mapping relationship between the account certificate and the device's DRM certificate, and then returns the account certificate to the certificate management module on the terminal side.
[0143] S809: The certificate management module sends an account certificate response to the DRM framework.
[0144] S810: The DRM framework parses the response, saves the account certificate, and returns the processing result to the certificate management module.
[0145] The DRM framework parses the response and saves the account certificate in the system's secure storage.
[0146] 2. User playback encrypted video process:
[0147] S811: The video application detects that the user attempts to play the encrypted video and obtains an account-based authorization request from the DRM framework.
[0148] In some embodiments, the video application can determine whether to authorize the user based on the account, the device, or the account and the device according to business needs. When it is determined that authorization is based on the account, the DRM framework interface is called and information is sent to the DRM framework to obtain an account-based authorization request, wherein the sent information may include the authorization type as an account and specify the account name.
[0149] S812: The DRM framework generates an authorization request based on the account number and returns the authorization request to the video application.
[0150] In some embodiments, if the DRM framework detects that a corresponding account certificate exists locally, it generates an account-based authorization request, which carries an authorization type of account and the account name, and returns the authorization request to the video application. It is understood that in some embodiments, if there are special circumstances, such as, for example, during the above-mentioned user account login process, the DRM framework does not receive the account certificate, then if the DRM framework detects that the corresponding account certificate does not exist locally, it may continue to execute the aforementioned steps 805-810.
[0151] S813: The video application sends the authorization request to the authorization service on the cloud side.
[0152] S814: The authorization service verifies the account-based authorization request with the account certificate management service.
[0153] S815: The account certificate management service returns the verification result to the authorization service.
[0154] It is understandable that the verification result may be passed or failed. When the verification result is passed, the authorization service generates an authorization response and sends the generated authorization response to the video application.
[0155] S816: The authorization service generates an authorization response and sends the generated authorization response to the video application.
[0156] In some embodiments, the authorization response includes information such as a corresponding key, wherein the key is encrypted using the public key of the account certificate.
[0157] S817: The video application sends the authorization response to the DRM framework through the interface.
[0158] S818: The DRM framework parses and processes the authorization response, and returns the processing result to the video application.
[0159] In some embodiments, the DRM framework can parse the key information of the authorization response through the private key of the account certificate.
[0160] S819: The video application calls the DRM framework interface to decrypt the encrypted video.
[0161] S820: The DRM framework decrypts the encrypted content and sends the decryption result to the video application.
[0162] In some embodiments, the DRM framework decrypts the encrypted content using the key information parsed from the authorization and sends the decrypted video stream to the video application.
[0163] S821: The video application plays the video screen.
[0164] FIG8b shows the steps of the user logout process in the authorization method. As shown in FIG8b , the user logout process includes:
[0165] S822: When the account management module detects that the user has logged out, it sends a logout notification to the certificate management module.
[0166] S823: The certificate management module calls the DRM framework interface to query the account certificate.
[0167] S824: The DRM framework returns the query result to the certificate management module.
[0168] In some embodiments, if the DRM framework detects that the account certificate does not exist, the process ends; if the DRM framework detects that the account certificate exists, the process goes to step S825.
[0169] S825: The certificate management module obtains an account certificate cancellation request from the DRM framework.
[0170] S826: The DRM framework generates an account certificate revocation request and returns the account certificate revocation request to the certificate management module.
[0171] In some embodiments, the account certificate revocation request is signed by the device's DRM certificate.
[0172] S827: The certificate management module sends the account certificate cancellation request to the account certificate management service on the cloud side.
[0173] S828: Account certificate management service verification request.
[0174] In some embodiments, the account credential management service verifies the validity of the request.
[0175] S829: After the account certificate management service passes the verification, the binding relationship between the account certificate and the device is released, and an account certificate cancellation response is generated and returned to the certificate management module.
[0176] S830: The certificate management module calls the interface to send the received account certificate cancellation response to the DRM framework for processing.
[0177] S831: The DRM framework parses the response message, deletes the local account certificate, and returns the processing result to the certificate management module.
[0178] This embodiment of the application describes three business processes: user login, user encrypted video playback, and user logout. This is a general process flow. With the exception of user logout and encrypted video playback, which must be performed after the user has logged in, users are not required to complete all three processes in sequence. For example, after logging in once, a user can perform the encrypted video playback action multiple times, or they may not log out. A user may also log out immediately after logging in.
[0179] Based on the above solution, a new certificate management module has been added to the client side. This module automatically completes the account certificate management process when users log in or out, without requiring user or app involvement. The DRM framework also adds account certificate management capabilities, including an interface that allows for generating account certificate requests, processing account certificate responses, and securely storing account certificates. This simplifies the interaction between the client and the cloud when users play encrypted videos, reduces playback latency, and makes sharing DRM content across devices more convenient, enhancing the user experience.
[0180] Example 2:
[0181] In order to more clearly illustrate the present application, the following further describes an authorization method provided by the present application in combination with the system architecture of the present application and embodiment 1. FIG9 shows a flow chart of another authorization method, which includes:
[0182] 1. User login account process:
[0183] S901: The account management module detects that the user completes account login on the device and sends a login notification to the certificate management module.
[0184] S902: The certificate management module calls the interface provided by the DRM framework to query the account certificate corresponding to the user account.
[0185] In some embodiments, the status of the account certificate may include whether it exists, and whether the status is normal or suspended.
[0186] S903: The DRM framework returns the query result to the certificate management module.
[0187] If the DRM framework finds that the account certificate exists and is in normal status, the process ends; if the DRM framework finds that the account certificate exists but is in suspended status, go to step S904; if the DRM framework finds that the account certificate does not exist, go to step S906.
[0188] S904: The certificate management module calls the interface of the DRM framework to re-enable the account certificate.
[0189] S905: The DRM framework modifies the account certificate request and sends the processing result to the certificate management module.
[0190] In some embodiments, the DRM framework may re-modify the account certificate status to normal.
[0191] S906-S912: When the DRM framework finds that the account certificate does not exist, the application for the account certificate is re-executed. Please refer to the contents of steps S804-S810 and will not be repeated here.
[0192] 2. User logout process:
[0193] S913: When the account management module detects that the user has logged out, it sends a logout notification to the certificate management module.
[0194] S914: The certificate management module calls the DRM framework interface to query the status of the account certificate.
[0195] S915: The DRM framework sends the query result to the certificate management module.
[0196] If the DRM framework finds that the account certificate does not exist, no additional processing is required and the process ends; if the DRM framework finds that the account certificate exists, go to step S916.
[0197] S916: The certificate management module calls the DRM framework interface to suspend the use of the account certificate.
[0198] S917: The DRM framework modifies the account certificate status and returns the processing result to the certificate management module.
[0199] In some embodiments, the DRM framework does not delete the account certificate, but only changes its status to suspended, and returns the processing result to the certificate management module.
[0200] Based on the above steps of this application, the terminal electronic device can save the account certificate and the corresponding account after obtaining the account certificate, and when the user logs out of the current account, the account certificate will not be deleted, and the status of the account certificate will be changed to temporary storage, etc., so that the user can re-enable the certificate corresponding to the account after logging in again. In this way, the user does not need to obtain the account certificate again when logging in again, further simplifying the authorization process, reducing the delay in playing encrypted videos, and improving the user experience.
[0201] The hardware structure of the terminal electronic device mentioned in this application is introduced below. As shown in Figure 10, a schematic diagram of the hardware structure of a terminal electronic device 100 is shown. The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, an event camera, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0202] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0203] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on the instruction opcode and timing signal to complete the control of instruction fetching and execution.
[0204] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The wireless communication function of the electronic device can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor and the baseband processor. The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied in electronic devices. The wireless communication module 160 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc. applied in electronic devices.
[0205] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0206] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device can include one or N display screens 194, where N is a positive integer greater than one.
[0207] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0208] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0209] The electronic device can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0210] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0211] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device can listen to music or make hands-free calls through the speaker 170A.
[0212] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear.
[0213] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device can be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0214] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0215] The above describes the hardware structure that an electronic device may have. It is understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, separate certain components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0216] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.
[0217] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.
[0218] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0219] While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.
Claims
1. An authorization method, characterized in that: The method comprises: The first electronic device detects an operation of a user logging into the first account; The first electronic device detects whether the first electronic device has an account certificate corresponding to the first account; In response to the first electronic device not having an account certificate corresponding to the first account, the first electronic device sends an account certificate acquisition request to a second electronic device, where the account certificate acquisition request is used to acquire the account certificate corresponding to the first account; The first electronic device detects an operation of a user opening encrypted content based on the first account, and detects that the first electronic device has the account certificate; The first electronic device sends an authorization request to the second electronic device, where the authorization request includes the account certificate.
2. The method according to claim 1, characterized in that The method further comprises: The first electronic device detects that the first account is logged out; The first electronic device sets the state corresponding to the first account certificate to a first state, wherein the first state includes a suspended state.
3. The method according to claim 1 or 2, characterized in that: In response to the first electronic device detecting an operation of a user logging into a first account, and the first electronic device detecting that the first electronic device has an account certificate corresponding to the first account, the first electronic device acquires a state corresponding to the first account certificate; When the state corresponding to the first account certificate is a first state, the first electronic device changes the state corresponding to the first account certificate to a second state, where the first state includes a suspended state and the second state includes a normal state.
4. The method according to claim 1, characterized in that: The first electronic device detects that the first account is logged out; The first electronic device sends the account certificate cancellation request to the second electronic device; The second electronic device sends an account certificate cancellation response to the first electronic device; The first electronic device deletes the account certificate.
5. The method according to claim 4, characterized in that The second electronic device sending an account certificate cancellation response to the first electronic device includes: The second electronic device releases the binding relationship between the first electronic device and the account certificate, and sends an account certificate cancellation response to the first electronic device.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The second electronic device sends an authorization response to the first electronic device based on the authorization request, wherein the authorization response includes key information corresponding to the encrypted content; The first electronic device decrypts the encrypted content based on the authorization response.
7. The method according to any one of claims 1 to 6, characterized in that: The account certificate acquisition request includes a digital authorization management certificate signature of the electronic device; The second electronic device sending the account certificate corresponding to the first account to the first electronic device includes: When the second electronic device determines that the digital authorization management certificate signature verification passes, the account certificate corresponding to the first account is sent to the first electronic device.
8. The method according to any one of claims 1 to 7, characterized in that: The first electronic device receives the account certificate sent by the second electronic device, and stores the account certificate.
9. The method according to any one of claims 1 to 8, characterized in that: The first electronic device includes a terminal electronic device, and the second electronic device includes a cloud server.
10. An authorization method, characterized in that: The first operating system is run on the first electronic device, and the method includes: The first operating system detects an operation of a user logging into a first account; The first operating system detects whether the first electronic device has an account certificate corresponding to the first account; In response to the first electronic device not having an account certificate corresponding to the first account, the first operating system sends an account certificate acquisition request to the electronic device where the account certificate management service is located, where the account certificate acquisition request is used to acquire the account certificate corresponding to the first account; The first operating system detects an operation of a user opening encrypted content based on the first account, and detects that the first electronic device has the account certificate; The first operating system sends an authorization request to the electronic device where the authorization service is located, and the authorization request includes the account certificate.
11. The method according to claim 10, characterized in that The method further comprises: The first operating system detects that the first account is logged out; The first operating system sets the state corresponding to the first account certificate to a first state, wherein the first state includes a suspended state.
12. The method according to claim 10 or 11, characterized in that: In response to the first operating system detecting an operation of a user logging into a first account, and the first operating system detecting that the first electronic device has an account certificate corresponding to the first account, the first operating system obtains a status corresponding to the first account certificate; In a case where the state corresponding to the first account certificate is a first state, the first operating system changes the state corresponding to the first account certificate to a second state, where the first state includes a suspended state and the second state includes a normal state.
13. The method according to claim 10, characterized in that The first operating system detects that the first account is logged out; The first operating system sends the account certificate cancellation request to the electronic device where the account certificate management service is located; The electronic device where the account certificate management service is located sends an account certificate cancellation response to the first operating system; The first operating system deletes the account certificate.
14. An electronic device, characterized in that: include: An account management module, used to detect an operation of a user logging into a first account; A certificate management module, used to trigger the digital rights management framework to detect whether the first electronic device has an account certificate corresponding to the first account; A digital rights management framework, used to detect whether the first electronic device has an account certificate corresponding to the first account; The digital rights management framework is used to generate an account certificate acquisition request in response to the first electronic device not having an account certificate corresponding to the first account, wherein the account certificate acquisition request is used to acquire the account certificate corresponding to the first account; The certificate management module is used to send the account certificate acquisition request to the second electronic device; The digital rights management framework is used to detect that the first electronic device has the account certificate and generate an authorization request. and sending the authorization request to the application; The application is used to detect an operation of a user opening encrypted content based on the first account, and send an authorization request to the second electronic device, wherein the authorization request includes the account certificate.
15. The electronic device according to claim 14, characterized in that: The account management module is used to detect an operation of a user canceling the first account; The digital rights management framework is used to generate an account certificate cancellation request when the first account is cancelled, and send the account certificate cancellation request to the certificate management module; The certificate management module is used to send the account certificate cancellation request to the second electronic device; The digital rights management framework is used to delete the account certificate corresponding to the first account when receiving the account certificate cancellation response sent by the second electronic device.
16. The electronic device according to claim 14, characterized in that: The account management module is used to detect an operation of a user canceling the first account; The certificate management module is configured to trigger the digital rights management framework to set the state corresponding to the first account certificate to a first state when the first account is deregistered, wherein the first state includes a suspended state; The digital rights management framework is used to set the state corresponding to the first account certificate to the first state.
17. The electronic device according to claim 16, characterized in that: The certificate management module is configured to trigger the digital rights management framework to change the state corresponding to the first account certificate to a second state when the account management module detects an operation of a user logging into the first account, and the first electronic device has an account certificate corresponding to the first account, and the state corresponding to the first account certificate is a first state, wherein the first state includes a suspended state, and the second state includes a normal state; The digital rights management framework is used to change the state corresponding to the first account certificate to the second state.
18. An electronic device, characterized in that: include a memory for storing instructions executed by one or more processors; A processor, configured to execute the authorization method according to any one of claims 1 to 13.
19. A computer-readable storage medium, characterized in that: The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the authorization method according to any one of claims 1 to 13.
20. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the authorization method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Account login method and server
CN106656978A
5G message identity authentication method and system and computer readable storage medium
CN114650142A
Method, electronic equipment and system for authorizing by using other equipment
CN114722377A
Application login method and device, computer equipment and storage medium
CN115525888A
Mobile assisted television sign in using discovery and launch protocol
US20200067901A1
