Service calling authentication method and system

Through the service subscription center and whitelist mechanism, the authentication problem of service calls is solved in vehicle software-defined cars, identity credential information is generated and updated, network security challenges brought by servitization are solved, and security and performance are improved.

CN118740451APending Publication Date: 2024-10-01AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410848994.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In vehicle software-defined cars, network security issues caused by servitization, especially under limited hardware resources, how to effectively solve the authentication problem of service calls to prevent illegal calls and hijacking.

Method used

Obtain the service call statement of the service consumer through the service subscription center, use the service call whitelist to determine the legitimacy of the statement, determine the service provider to be called, and generate and update identity credential information during each call life cycle to ensure the smoothness of the service call process. Security.

Benefits of technology

It improves the security of service calls, avoids illegal calls by malicious terminals, enhances the service provider's identification of service consumers, reduces the risk of replay attacks, and improves the real-time response capability and performance of the authentication process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740451A_ABST
    Figure CN118740451A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of service providing and consumption, and discloses a service calling authentication method and system.The method comprises the steps that a service calling declaration of a service consumer is obtained, and the service calling declaration comprises service consumption information; when the service calling declaration is determined to be legal based on the service calling white list, determining a to-be-called service provider according to the service consumption information; sending the service consumption information to a to-be-called service provider; and receiving first calling identity credential information fed back by the service provider according to the service consumption information, and feeding back the first calling identity credential information to the service consumer. As the service calling declaration is subjected to legality judgment through the service calling white list, service calling of a malicious terminal is avoided, and the safety of service calling is improved. And meanwhile, the to-be-called service provider can perform identifier identification on the service consumer through the first calling identity credential information, so that the service calling security is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of service provision and consumption, and in particular to a service call authentication method and system. Background Art

[0002] As vehicle software defines cars more and more deeply, in order to improve software utilization and development efficiency, the proportion of vehicle capabilities in service is also increasing, and the communication bandwidth in the car is also increasing. Currently, the service-oriented architecture (SOA) has set off a software revolution from design to implementation in the automotive field. All OEMs and leading parts manufacturers are laying out and implementing in the new vehicle model architecture.

[0003] As vehicle capabilities are service-oriented, network security issues are also introduced. After vehicle capabilities are service-oriented, any Ethernet node in the vehicle may receive information about the in-vehicle service. If it is illegally called, the vehicle will be illegally controlled. In serious cases, it may cause the vehicle to be hijacked and lead to social security issues such as robbery and murder. Limited by the computing power of current vehicle chips, the service authentication method in the Internet field cannot be completely copied to the vehicle side for use. Therefore, in the context of limited hardware resources, how to solve the authentication of service calls has become a key issue in the field of network security in the current service-oriented implementation process. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention provides a service call authentication method and system, which are used to solve the problem of service call authentication under the background of limited hardware resources.

[0005] According to one aspect of an embodiment of the present invention, a service call authentication method is provided, the method is applied to a service subscription center, and the method includes:

[0006] Obtaining a service call statement from a service consumer, wherein the service call statement includes service consumption information;

[0007] When it is determined that the service call declaration is legal based on the service call whitelist, determining the service provider to be called according to the service consumption information;

[0008] Sending the service consumption information to the service provider to be called;

[0009] The first calling identity credential information is received from the service provider according to the service consumption information, and the first calling identity credential information is fed back to the service consumer.

[0010] The embodiment of the present application obtains the service call statement of the service consumer, which includes service consumption information; when the service call statement is determined to be legal based on the service call whitelist, the service provider to be called is determined according to the service consumption information; the service consumption information is sent to the service provider to be called; the first call identity credential information fed back by the service provider according to the service consumption information is received, and the first call identity credential information is fed back to the service consumer. Since the legality of the service call statement is judged through the service call whitelist, the service call of malicious terminals is avoided, and the security of the service call is improved. At the same time, the first call identity credential information allows the service provider to be called to identify the service consumer, further improving the security of the service call.

[0011] According to another aspect of an embodiment of the present invention, a service call authentication method is provided, the method is applied to a service provider, and the method includes:

[0012] Acquire service consumption information sent by the service subscription center, wherein the service consumption information at least includes: consumption service content and first life cycle information;

[0013] Determine a second life cycle duration interval based on the consumption service content;

[0014] Determine a call life cycle of a service call based on the first life cycle information and the second life cycle duration interval; the number of the call life cycles is at least one;

[0015] During the calling life cycle, generating first calling identity credential information;

[0016] The first calling identity credential information is sent to the service subscription center.

[0017] In an optional manner, the service consumption information further includes: a calling code; and the step of generating the first calling identity credential information includes:

[0018] Determining a call life cycle duration of the call life cycle;

[0019] Obtain a call authorization code and a pre-made key for the call life cycle;

[0020] The first calling identity credential information is generated based on the calling code, the calling authorization code, the prefabricated key, the first life cycle information and the calling life cycle duration.

[0021] In an optional manner, after the step of sending the first calling identity credential information to the service subscription center, the method further includes:

[0022] Upon receiving a first service call request from a service consumer, obtaining request information of the first service call request, wherein the request information includes second call identity credential information;

[0023] Performing call verification on the second call identity credential information based on the first call identity credential information;

[0024] When the call verification passes, respond to the first service call request.

[0025] In an optional manner, the request information also includes first service call information. If the number of the call lifecycles is at least two, after the step of determining the lifecycle information of the service call based on the first lifecycle information and the second lifecycle duration interval, it also includes:

[0026] Generate a service call dynamic whitelist based on the first service call information and the second life cycle duration interval;

[0027] Upon receiving a second service request sent by a service consumer, verifying the second service call request based on the service call whitelist;

[0028] When the verification passes, responding to the second service call request;

[0029] When the verification fails, the second service invocation request is discarded.

[0030] In an optional manner, the step of determining the duration interval of the second life cycle based on the consumption service content includes:

[0031] Determining a service security level corresponding to the service consumption information based on the consumption service content;

[0032] A second life cycle duration interval of the service call is determined according to the service security level.

[0033] The embodiment of the present application obtains the service consumption information sent by the service subscription center, and the service consumption information includes at least: the consumption service content and the first life cycle information; the second life cycle duration interval is determined based on the consumption service content; the call life cycle of the service call is determined based on the first life cycle information and the second life cycle duration interval; the number of call life cycles is at least one; within the call life cycle, the first call identity credential information is generated; and the first call identity credential information is sent to the service subscription center. Since the call life cycle is determined and the first call identity credential information is generated within each call life cycle, the security of service calls within different call life cycles is improved.

[0034] According to another aspect of an embodiment of the present invention, a service call authentication method is provided, the method is applied to a service consumer, and the method includes:

[0035] Sending a service call statement to a service subscription center, wherein the service call statement includes service consumption information;

[0036] Receive first calling identity credential information fed back by the service subscription center;

[0037] The service provider of the to-be-called service is called based on the first calling identity credential information.

[0038] In an optional manner, the step of calling the service provider of the to-be-called service based on the first calling identity credential information includes:

[0039] Generate a first service call request based on the first service call information;

[0040] Using the first calling identity credential information as the second calling identity credential information of the first service calling request;

[0041] Sending the first service call request carrying the second call identity credential information to the service provider of the to-be-called service for call verification;

[0042] When the call verification passes, the service provider is called.

[0043] In an optional manner, after the step of calling the service provider when the call verification passes, the method further includes:

[0044] When it is identified that the life cycle corresponding to the first calling identity credential information ends, if the service calling duration does not reach the first life cycle duration, requesting to obtain the third calling identity credential information;

[0045] Generate a second calling code, and generate second service calling information based on the first service calling information and the second calling code;

[0046] Generate a second service call request based on the second service call information;

[0047] Using the third calling identity credential information as the fourth calling identity credential information of the second service calling request;

[0048] The embodiment of the present application sends a service call statement to a service subscription center, the service call statement includes service consumption information; receives first call identity credential information fed back by the service subscription center; and calls the service provider of the service to be called based on the first call identity credential information. Since the service call statement is sent to the service subscription center, the service subscription center and the service provider can implement authentication processing, thereby improving the security of the service call process.

[0049] According to another aspect of an embodiment of the present invention, a service call authentication system is provided, the service call authentication system comprising: a service provider, a service consumer, and a service subscription center;

[0050] The service provider is used to implement the steps of the service call authentication method for the service provider as described above;

[0051] The service consumer is used to implement the steps of the service call authentication method for the service consumer as described above;

[0052] The service subscription center is used to implement the steps of the service call authentication method for the service subscription center as described above.

[0053] In the service call authentication system of the present application, the service subscription center's management function for services is used to collect service call applications sent by service consumers, and the legitimacy of the services applied for by service consumers is identified in combination with the service call whitelist issued by the cloud; at the same time, the service call code, call authorization code and call life cycle are introduced, and the service call code, call authorization code and call life cycle are verified based on cryptographic operations after the first verification, and a dynamic whitelist is built in the memory. In the subsequent life cycle (that is, the first life cycle), only the whitelist content needs to be verified, which avoids frequent encryption and decryption operations and prompts the real-time response capability of service authentication. When the service authentication is about to end, the service provider immediately responds to the service call after the whitelist verification, and performs encryption and decryption operations on the credentials at the same time. After the verification passes, the whitelist is updated again; when the life cycle is about to end, the whitelist verification and encryption and decryption verification are executed in sequence, which solves the time performance problem of service call authentication at the end of the life cycle for controllers with limited performance.

[0054] On the other hand, the whitelist issued by the cloud ensures the security of the derivation of service call credentials. On the other hand, each life cycle re-derives a secure random number as an updated service call code and call authorization code, reducing the window for replay attacks. At the same time, only legitimate call credentials issued by the service consumer are used to achieve cryptographic security protection of the authentication process credentials.

[0055] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0057] Figure 1 A schematic diagram showing a flow chart of a first embodiment of a service call authentication method provided by the present invention;

[0058] Figure 2 A schematic diagram showing a flow chart of a second embodiment of a service call authentication method for a service consumer provided by the present invention;

[0059] Figure 3 A schematic diagram showing a flow chart of a second embodiment of a service call authentication method for a service provider provided by the present invention;

[0060] Figure 4 The following is a schematic diagram showing the workflow of the service consumer and the service provider in one implementation of the service call authentication method of the present application;

[0061] Figure 5 A structural diagram of an embodiment of a service invocation authentication device provided by the present invention is shown. DETAILED DESCRIPTION

[0062] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0063] It should be noted that a service call authentication system is proposed in this application, and the service call authentication system may include a service provider, a service consumer, and a service subscription center; wherein the service provider, the service consumer, and the service subscription center may be connected to each other respectively. The service provider, the service consumer, and the service subscription center may be set in the same device, such as being set in the service call authentication device, or may be set in different devices, and the embodiments of this application are not limited to this.

[0064] It is understandable that the service provider, also known as the service producer, is mainly responsible for creating, managing, and publishing services. In the vehicle service call authentication system, the number of service providers can be one or more; for a service provider, the services it provides can be one or more, and the embodiments of the present application do not limit this.

[0065] It should be understood that for the vehicle service call authentication system, the services provided by the service provider may include: vehicle control services, infotainment services, autonomous driving services, vehicle safety services, etc., and the embodiments of the present application do not limit this. In actual applications, each service provider can register the service content, service name, service ID and other service information that can be provided in the service subscription center. Through this service information, the service subscription center can find the service provider corresponding to the service call request.

[0066] It is understandable that the service consumer can also be called a service consumer. The service consumer sends a service call request to the service subscription center, and then determines and connects to the corresponding service provider. The service consumer establishes a connection with the service provider and calls the service provided by the service provider to meet business needs, thereby realizing service consumption on the vehicle side. The process of calling the service can be synchronous or asynchronous, and the embodiments of the present application are not limited to this.

[0067] It should be understood that the service subscription center is also a bridge between the service provider and the service consumer. The service subscription center provides the service provider with a service registration function and broadcasts the service information of the entire vehicle to each service consumer in the vehicle, thereby enabling the service consumer to initiate a consumption request / service consumption statement based on the service information.

[0068] It should be noted that the service subscription center, service consumer and service provider in the service call authentication system of this application can be used to implement the service call authentication method proposed in this application.

[0069] In the service call authentication system of the present application, the service subscription center's management function for services is used to collect service call applications sent by service consumers, and the legitimacy of the services applied for by service consumers is identified in combination with the service call whitelist issued by the cloud; at the same time, the service call code, call authorization code and call life cycle are introduced, and the call code, service call authorization code and call life cycle are verified based on cryptographic operations after the first verification, and a dynamic whitelist is built in the memory. In the subsequent life cycle (that is, the first life cycle), only the whitelist content needs to be verified, which avoids frequent encryption and decryption operations and improves the real-time response capability of service authentication. When the service authentication is about to end, the service provider immediately responds to the service call after the whitelist verification, and performs encryption and decryption operations on the credentials at the same time. After the verification passes, the whitelist is updated again; when the life cycle is about to end, the whitelist verification and encryption and decryption verification are executed in sequence, which solves the time performance problem of service call authentication at the end of the life cycle for controllers with limited performance.

[0070] On the other hand, the whitelist issued by the cloud ensures the security of the derivation of service call credentials. On the other hand, each life cycle re-derives a secure random number as an updated service call code and call authorization code, reducing the window for replay attacks. At the same time, only legitimate call credentials issued by the service consumer are used to achieve cryptographic security protection of the authentication process credentials.

[0071] Specifically, Figure 1 As shown, Figure 1 A flow chart of a first embodiment of a service call authentication method applied to a service subscription center according to the present invention is shown, the method comprising:

[0072] Step S10, obtaining a service call statement of a service consumer, wherein the service call statement includes service consumption information;

[0073] Step S20, when it is determined that the service call declaration is legal based on the service call whitelist, determining the service provider to be called according to the service consumption information;

[0074] It should be noted that the above service call declaration is also the declaration issued by the service consumer to the service subscription center when a service call is required. The service call life may include service consumption information, based on which the service name and / or service ID and other service information that the service consumer needs to call can be determined, and then the corresponding service provider to be called by the service consumer can be determined.

[0075] It is understandable that in the SOA architecture, the service subscription center may receive service call declarations sent by malicious terminals / irrelevant terminals, etc. Therefore, in order to identify the service consumer, the service subscription center of the embodiment of the present application also includes a service call whitelist. Through the service call whitelist, it can be determined whether the service consumer is on the list of preset consumers.

[0076] It should be noted that the service call whitelist can be issued by the cloud or a preset whitelist, and the embodiments of the present application do not limit this.

[0077] In one implementation of the embodiment of the present application, the legitimacy of the service applied for by the service consumer can be identified through the service call whitelist issued by the cloud.

[0078] It should be understood that the above-mentioned preset consumers may be service consumers that are allowed to make service calls in the vehicle, such as in-vehicle applications, vehicle control systems, remote service clients, etc., and the embodiments of the present application are not limited to this.

[0079] It can be understood that by determining the service consumer who sent the service call declaration, and determining whether the service consumer is in the service call whitelist. If so, it can be said that the service call declaration is a legal call declaration, and the service provider corresponding to the service that the service consumer needs to call can be determined based on the service consumption information, that is, the service provider to be called is determined; if not, it can be said that the service call declaration is an illegal call declaration, and the illegal call declaration can be discarded or processed in other ways, and this application does not limit this.

[0080] In the specific implementation, the service subscription center obtains the service call statement of the service consumer, and verifies the service consumer through the service call whitelist to determine whether the service call statement is legal. If the service call statement is legal, the service provider to be called is determined based on the service consumption information. Since the service call statement is judged for legitimacy through the service call whitelist, malicious terminals are avoided from calling the service, and the security of service calls is improved.

[0081] Step S30, sending the service consumption information to the service provider to be called;

[0082] Step S90: receiving first calling identity credential information fed back by the service provider according to the service consumption information, and feeding back the first calling identity credential information to the service consumer.

[0083] It should be noted that, when the service provider to be called is determined, the service consumption information can be sent to the service provider to be called, so that the service provider to be called generates the first calling identity credential information based on the service consumption information.

[0084] It should be explained that the first calling identity credential information is also the identity credential information used to indicate that the service consumer can legally call the service provider to be called.

[0085] It is understandable that when the service subscription center sends the first calling identity credential information to the service consumer, it may also send identification information for identifying the service provider to the service consumer so that the service consumer can make a service call.

[0086] In a specific implementation, the service subscription center can send service consumption information to the service provider to be called; receive the first calling identity credential information fed back by the service provider based on the service consumption information, and feed back the first calling identity credential information to the service consumer. Since the service provider to be called can identify the service consumer through the first calling identity credential information, the security of service calling is further improved.

[0087] The embodiment of the present application obtains the service call statement of the service consumer, which includes service consumption information; when the service call statement is determined to be legal based on the service call whitelist, the service provider to be called is determined according to the service consumption information; the service consumption information is sent to the service provider to be called; the first call identity credential information fed back by the service provider according to the service consumption information is received, and the first call identity credential information is fed back to the service consumer. Since the legality of the service call statement is judged through the service call whitelist, the service call of malicious terminals is avoided, and the security of the service call is improved. At the same time, the first call identity credential information allows the service provider to be called to identify the service consumer, further improving the security of the service call.

[0088] Figure 1 A flowchart of a first embodiment of a service call authentication method applied to a service provider of the present invention is also shown, the method comprising:

[0089] Step S40, obtaining service consumption information sent by the service subscription center, wherein the service consumption information at least includes: consumption service content and first life cycle information;

[0090] Step S50, determining a second life cycle duration interval based on the consumption service content;

[0091] It needs to be explained that the life cycle described in the embodiment of the present application, that is, the duration or number of tasks required for a service call, is used as an example to illustrate the present application in the embodiment of the present application and the following embodiments, but this does not constitute a limitation on the embodiment of the present application.

[0092] It should be noted that the above service consumption information may include: service consumption content, call life cycle, call code N1, service consumer identity information and other information. Among them, the service consumption content may include the service consumer's list of services to be called. Through the service consumption content, the service provider can determine which services to be called that the service consumer needs; the call code N1 may be a security verification code derived by the service consumer, which may be randomly generated, or generated according to a certain rule, or fixedly generated, and the embodiments of the present application do not limit this.

[0093] In addition, it should be noted that the first life cycle is the duration required for the service consumer to call; the second life cycle duration interval is the life cycle duration interval that can be provided by the service provider.

[0094] It should be understood that different services may have different life cycle market intervals. Based on the consumption service content, the service to be called that the service consumer needs to call can be determined, and then the life cycle duration interval of the service to be called can be determined. For a call life cycle, its maximum duration is the maximum duration in the second life cycle duration interval.

[0095] It can be understood that the duration T1 of the first life cycle can be determined based on the first life cycle information. When the first life cycle duration T1 is greater than the maximum duration T2 of the second life cycle, at least two call life cycles are required to complete the call requirements of the service consumer. At this time, the first life cycle corresponds to at least two call life cycles; when the first life cycle duration is less than or equal to the maximum duration of the second life cycle, only one call life cycle is required to complete the call requirements of the service consumer. That is, step S60, based on the first life cycle information and the second life cycle duration interval, the call life cycle of the service call is determined; the number of the call life cycles is at least one.

[0096] It should be understood that the call life cycle is also the life cycle when the service is called. Based on the duration of the first life cycle and the duration interval of the second life cycle, the number of call life cycles required for the service call and the duration of each call life cycle can be determined.

[0097] Step S70, generating first calling identity credential information within the calling life cycle;

[0098] It should be noted that the above-mentioned first calling identity credential information is also the calling identity credential information used to match a calling lifecycle with its corresponding service consumption pair. When applied, the service provider can send the calling identity credential information to the service consumer, so that the service consumer generates a calling request based on the calling identity credential information, and then the service provider can verify based on the calling identity credential information in the calling request, thereby improving the security of the service call. For the method of generating the calling identity credential information, it can be a conventional identity key generation method, such as digital signature, symmetric encryption, etc., which is not limited in the embodiments of the present application.

[0099] It is understandable that based on the first life cycle duration and the maximum second life cycle duration, the number of call life cycles for service calls can be determined, that is, the number of call life cycles corresponding to the first life cycle. In each life cycle, the service provider can generate call identity credential information based on the service consumption information sent by the service provider.

[0100] In an implementation of the embodiment of the present application, the service consumption information further includes: a calling code; the step of generating the first calling identity credential information includes:

[0101] Determining a call life cycle duration of the call life cycle;

[0102] Obtain a call authorization code and a pre-made key for the call life cycle;

[0103] The first calling identity credential information is generated based on the calling code, the calling authorization code, the prefabricated key, the first life cycle information and the calling life cycle duration.

[0104] It should be noted that the service provider can derive a secure random number as the call authorization code N2 of the call life cycle in each call life cycle, based on the service consumer's identity information Service_Consum, call authorization code N2, call code N1, first life cycle duration T1, second life cycle maximum duration T2, and use cryptographic methods to calculate the service consumer's first call identity credential information. Specifically, the calculation method can be as follows:

[0105] Token=HMAC(Service_Consume|N2|N1|Min(T1,T2),PreStoredKey);

[0106] Among them, Token is the first calling identity credential information, HMAC is a hash-based message authentication encryption method, and PreStoredKey is a pre-made key.

[0107] Step S80: sending the first calling identity credential information to the service subscription center.

[0108] It is understandable that the first calling identity credential information generated in each life cycle can be sent to the service subscription center, so that the service subscription center can feed back the first calling identity credential information to the service consumer.

[0109] The embodiment of the present application obtains the service consumption information sent by the service subscription center, and the service consumption information includes at least: the consumption service content and the first life cycle information; the second life cycle duration interval is determined based on the consumption service content; the call life cycle of the service call is determined based on the first life cycle information and the second life cycle duration interval; the number of call life cycles is at least one; within the call life cycle, the first call identity credential information is generated; and the first call identity credential information is sent to the service subscription center. Since the call life cycle is determined and the first call identity credential information is generated within each call life cycle, the security of service calls within different call life cycles is improved.

[0110] Figure 1 A flowchart of a first embodiment of a service call authentication method applied to a service consumer of the present invention is also shown, the method comprising:

[0111] Step S01, sending a service call statement to a service subscription center, wherein the service call statement includes service consumption information;

[0112] Step S02, receiving first calling identity credential information fed back by the service subscription center;

[0113] Step S03: calling a service provider of the service to be called based on the first calling identity credential information.

[0114] It is understandable that when there is a demand for service consumption, the service consumer can generate a service call declaration based on information such as service consumption content, call lifecycle, call code N1, and service consumer identity information, and send the service call declaration to the service subscription center so that the service subscription center can determine the service provider of the service to be called corresponding to the service consumption content.

[0115] It should be noted that the above-mentioned calling code N1 and calling authorization code can be a derived random security number. Through the calling code and calling authorization code, the calling life cycle can be identified and verified.

[0116] It should be understood that the service subscription center can also feed back the first calling identity credential information sent by the service provider of the service to be called to the service consumer. When the service consumer obtains the first calling identity credential information, the service call can be made based on the first calling identity credential information.

[0117] The embodiment of the present application sends a service call statement to a service subscription center, the service call statement includes service consumption information; receives first call identity credential information fed back by the service subscription center; and calls the service provider of the service to be called based on the first call identity credential information. Since the service call statement is sent to the service subscription center, the service subscription center and the service provider can implement authentication processing, thereby improving the security of the service call process.

[0118] Based on the above embodiments, Figure 2 FIG. 2 is a flow chart showing another embodiment of the method for authenticating service calls applied to a service consumer of the present invention. Figure 2 As shown, the step of calling the service provider of the to-be-called service based on the first calling identity credential information includes:

[0119] Step S031, generating a first service call request based on the first service call information;

[0120] It should be noted that when the service consumer obtains the first calling identity credential information, the first calling identity credential information can be securely stored, and a first service calling request can be generated according to the first service calling information.

[0121] It can be understood that the first service calling information may include information about the service to be called, calling code N1, consumer identity information and other information.

[0122] Step S032: using the first calling identity credential information as the second calling identity credential information of the first service calling request;

[0123] Step S033, sending the first service call request carrying the second call identity credential information to the service provider of the to-be-called service for call verification;

[0124] Step S034: when the call verification passes, call the service provider.

[0125] It should be noted that in order to enhance the security of service calls, the service consumer can also use the securely stored first calling identity credential information as the calling identity credential of the first service calling request (that is, the second calling identity credential), and then send the first service calling request carrying the second calling identity credential information to the service provider, so that the service provider can perform call verification on the first service calling request.

[0126] It should be understood that the first service call request is also the service call request corresponding to the call lifecycle of the first service call.

[0127] It should be noted that the first calling identity credential information may correspond to a life cycle. At the end of the life cycle, the first calling identity credential information will lose its validity, and the length of the life cycle is equal to the corresponding calling life cycle duration. Therefore, based on the first calling identity credential information, the service consumer can determine the duration of each calling life cycle. At the end of a life cycle, if the duration of the service call does not reach the first life cycle duration, the service consumer can generate the service call information of the next life cycle based on the first service call information and the first calling identity credential information, that is, the second service call information. Specifically, when the call verification is passed, after the step of calling the service provider, it also includes:

[0128] Step S04, when it is identified that the life cycle corresponding to the first calling identity credential information ends, if the service calling duration does not reach the first life cycle duration, requesting to obtain the third calling identity credential information;

[0129] Step S05, generating a second calling code, and generating second service calling information based on the first service calling information and the second calling code;

[0130] Step S06, generating a second service calling request based on the second service calling information;

[0131] Step S07, using the third calling identity credential information as the fourth calling identity credential information of the second service calling request;

[0132] Return to the step of sending the first service call request carrying the second call identity credential information to the service provider of the to-be-called service for call verification to perform call verification on the second service call request.

[0133] It is understandable that the duration of the above service call is the sum of the duration of the call life cycle that has passed.

[0134] It should be noted that the service consumer can judge the life cycle of the first calling identity credential information, and when the life cycle is about to end, re-declare the service call declaration including the service list to be called, the call life cycle, the second call code N3 and other service consumption information to the service subscription center, so that the service subscription center and the service provider can send new calling identity credential information (that is, the third calling identity credential information) to the service consumer based on the service call declaration.

[0135] It should be understood that the re-declared call life cycle duration Tn should be the difference between the first life cycle duration T1 and the service call duration t that has been performed, that is, Tn=T1-t.

[0136] Furthermore, for the service consumer, upon receiving the third calling identity credential information, the third calling identity credential information can be used as the calling identity credential information of the second service calling request (that is, the fourth calling identity credential information). The service consumer can also obtain the calling code N1 corresponding to the first service calling request as the historical calling code of the second service calling request, and generate the second service calling request based on the information of the service to be called, the historical calling code, the second calling code N3 and other information contents.

[0137] Furthermore, the second service call request carrying the third call identity credential information may be sent to the service provider for call verification.

[0138] It is understandable that at the end of each life cycle, the above steps can be adaptively modified and executed until the service call duration reaches the first life cycle duration.

[0139] The embodiment of the present application generates a first service call request based on the first service call information; uses the first call identity credential information as the second call identity credential information of the first service call request; sends the first service call request carrying the second call identity credential information to the service provider of the service to be called for call verification; and calls the service provider when the call verification passes. Since it is determined at the end of each life cycle whether the service call duration reaches the first life cycle duration, and if it does not reach it, it is re-declared to achieve dynamic update of authorization information, call anomalies caused by loss of credentials and security risks caused by long-term non-update of credentials are avoided, while reducing performance problems caused by frequent encryption and decryption.

[0140] Based on the above embodiments, in the embodiment of the present application, after the step of sending the first calling identity credential information to the service subscription center, the step further includes:

[0141] Step S100, upon receiving a first service call request from a service consumer, obtaining request information of the first service call request, wherein the request information includes second call identity credential information;

[0142] Step S200, performing call verification on the second call identity credential information based on the first call identity credential information;

[0143] It should be noted that in the embodiment of the present application, the service provider can verify the service call request sent by the service consumer, and respond to the service call request when the verification passes. That is, in step S300, when the call verification passes, respond to the first service call request.

[0144] It should be noted that in order to implement the verification process, the service provider can parse the second calling identity credential information to obtain the calling code information, calling authorization code information, prefabricated key information, calling life cycle information, first life cycle information, etc. included in the second calling identity credential information.

[0145] It is understandable that, under normal circumstances, the second calling identity credential information and the first calling identity credential information issued by the service provider are the same information, so the second calling identity credential information can be verified based on the first calling identity credential information to determine whether to respond to the service call request. Specifically, when the service provider receives the service call request from the service consumer, it obtains the second calling identity credential information therein, and verifies the second calling identity credential information based on the prefabricated key PreStoredKey. When the verification passes, the call code, call authorization code, first life cycle and other information are verified. If they all pass, it means that the service call verification has passed. Then execute step S300, and when the call verification passes, respond to the first service call request.

[0146] Figure 3 A flow chart showing another embodiment of a method for authenticating service calls applied to a service provider according to the present invention.

[0147] It should be noted that, since the first life cycle duration may be greater than the allowed call duration of the service to be called, in order to reduce the resource occupation caused by frequent encryption and decryption during the service call process, in an embodiment of the present application, the request information also includes the first service call information. If the number of the call life cycles is at least two, after the step of determining the life cycle information of the service call based on the first life cycle information and the second life cycle duration interval, it also includes:

[0148] Step A10: generating a service call dynamic whitelist based on the first service call information and the second life cycle duration interval;

[0149] Step A20, upon receiving the second service request sent by the service consumer, verifying the second service call request based on the service call whitelist;

[0150] Step A30M, responding to the second service call request when the verification passes;

[0151] Step A30N: when the verification fails, discard the second service call request.

[0152] It is understandable that when the number of life cycles is at least two, the service provider can establish a dynamic whitelist table for service calls, which may include service consumer information, call code, call life cycle, first life cycle information, historical call code and other information.

[0153] It should be understood that when the service provider receives the service consumption information again, it can generate second calling identity credential information based on the service consumption information and send it to the service subscription center, so that the service subscription center sends the second calling identity credential information to the service consumer.

[0154] It should be noted that when the service provider receives the second service call request from the service consumer again, it can obtain the service consumer information, historical call code N1, call code N3, call life cycle and other information in the second call identity credential information; verify the historical call code and service consumer information through the information contained in the dynamic whitelist table. If the service consumer information and the historical call code are both in the dynamic whitelist table, the verification passes, and it is determined whether the total duration of the service call at the end of the life cycle has reached the first life cycle duration; if so, it can be said that the service call is completed, and the information corresponding to the service consumer is deleted from the dynamic whitelist table; if not, it means that there is still a life cycle that needs to be called for the service, and the verification code and call life cycle in the dynamic whitelist table are updated through the verification code N3 and the call life cycle to facilitate subsequent verification.

[0155] It is understandable that service call requests that fail verification may be discarded.

[0156] It should be understood that the subsequent life cycle processing process can refer to the above processing process, and the embodiments of the present application will not elaborate on this.

[0157] In one implementation of the embodiment of the present application, in order to determine the duration of the service to be called that is allowed to be called, a security level can be preset for each service that can be provided by the service provider, and services with different security levels have different corresponding life cycle duration intervals. Specifically, the step of determining the second life cycle duration interval based on the consumption service content includes:

[0158] Determining a service security level corresponding to the service consumption information based on the consumption service content;

[0159] A second life cycle duration interval of the service call is determined according to the service security level.

[0160] It should be noted that the embodiments of the present application do not limit the number of security levels and the specific security level corresponding to each service, and can be selected according to the actual application situation.

[0161] In one implementation of the embodiment of the present application, the security level corresponding to each service in the present application can be shown in the following table:

[0162]

[0163]

[0164] It should be understood that the security levels are from high to low, namely level 1, level 2, level 3, level 4, level 5, etc. The higher the corresponding security level, the shorter the life cycle of the corresponding service should be; while for the general basic services and experience services of the vehicle, the security level requirements are lower, and the corresponding life cycle of the service can be appropriately extended.

[0165] In one implementation of an embodiment of the present application, the above-mentioned life cycle may also be divided according to the number of service calls, which is not limited by the embodiment of the present application.

[0166] Reference Figure 4 , Figure 4 A schematic diagram of the workflow of the service consumer and the service provider in one implementation of the authentication method for calling the application service;

[0167] like Figure 4 As shown, when the service provider receives the service call request from the service consumer, it can verify the service call request, respond to the service call request and feedback the service call result when the verification is passed; at the same time, the service provider can establish a dynamic whitelist based on the service consumer information, call code, first life cycle information, service call cycle and other information; when the service consumer detects that a life cycle is about to end, it can re-declare and obtain the second call identity credential information, and then send a service call request to the service provider based on the second call identity credential information. When the service provider subsequently receives the service call request from the service consumer, it can verify it through the dynamic whitelist; when the verification is passed, there is no need to decrypt, directly respond to the service call request and feedback the service call result; if the verification fails, the second legal credential information included in the service call request needs to be decrypted and verified.

[0168] The embodiment of the present application generates a dynamic whitelist of service calls based on the first service call information and the second life cycle duration interval; when receiving the second service request sent by the service consumer, the second service call request is verified based on the service call whitelist; when the verification passes, the second service call request is responded to; when the verification fails, the second service call request is abandoned. The present application introduces the call code, the call authorization code and the life cycle, verifies the service call code, the call authorization code and the call life cycle based on the cryptographic operation after the first verification, and builds a dynamic whitelist in the memory. In the subsequent first life cycle, only the whitelist content needs to be verified, which avoids frequent encryption and decryption operations and prompts the real-time response capability of service authentication. When the service authentication is about to end, the service provider immediately responds to the service call after the whitelist verification, and simultaneously performs encryption and decryption operations on the credentials. When the life cycle is about to end, the whitelist verification and encryption and decryption verification are executed in sequence, which solves the time performance problem of service call authentication at the end of the life cycle for controllers with limited performance. On the other hand, a secure random number is re-derived as the updated service call code and call authorization code in each life cycle, reducing the window for replay attacks; at the same time, only the legitimate call credentials issued by the service consumer are used to achieve cryptographic security protection of the authentication process credentials.

[0169] It should be noted that the service provider, service consumer and service subscription center in the service call authentication system of the present application can all be placed in the service call authentication device, or can be placed in three devices respectively, and the embodiments of the present application are not limited to this.

[0170] In one implementation of the embodiment of the present application, Figure 5 The schematic diagram of the structure of an embodiment of the service calling authentication device of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of calling the authentication device.

[0171] like Figure 5 As shown, the service call authentication device may include: a processor (processor) 402, a communication interface (Communications Interface) 404, a memory (memory) 406, and a communication bus 408.

[0172] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the service call authentication method.

[0173] Specifically, the program 410 may include program code including computer executable instructions.

[0174] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the service call authentication device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0175] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0176] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.

[0177] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0178] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0179] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A service call authentication method, characterized in that: The method is applied to a service subscription center, and the method comprises: Obtaining a service call statement from a service consumer, wherein the service call statement includes service consumption information; When it is determined that the service call declaration is legal based on the service call whitelist, determining the service provider to be called according to the service consumption information; Sending the service consumption information to the service provider to be called; The first calling identity credential information is received from the service provider according to the service consumption information, and the first calling identity credential information is fed back to the service consumer.

2. A service call authentication method, characterized in that: The method is applied to a service provider, and the method comprises: Acquire service consumption information sent by the service subscription center, wherein the service consumption information at least includes: consumption service content and first life cycle information; Determine a second life cycle duration interval based on the consumption service content; Determine a call life cycle of a service call based on the first life cycle information and the second life cycle duration interval; the number of the call life cycles is at least one; During the calling life cycle, generating first calling identity credential information; The first calling identity credential information is sent to the service subscription center.

3. The service call authentication method according to claim 2, characterized in that: The service consumption information also includes: a calling code; the step of generating the first calling identity credential information includes: Determining a call life cycle duration of the call life cycle; Obtain a call authorization code and a pre-made key for the call life cycle; The first calling identity credential information is generated based on the calling code, the calling authorization code, the prefabricated key, the first life cycle information and the calling life cycle duration.

4. The service call authentication method according to claim 2, characterized in that: After the step of sending the first calling identity credential information to the service subscription center, the method further includes: Upon receiving a first service call request from a service consumer, obtaining request information of the first service call request, wherein the request information includes second call identity credential information; Performing call verification on the second call identity credential information based on the first call identity credential information; When the call verification passes, respond to the first service call request.

5. The service call authentication method according to claim 4, characterized in that: The request information also includes first service call information. If the number of the call lifecycles is at least two, after the step of determining the lifecycle information of the service call based on the first lifecycle information and the second lifecycle duration interval, the step further includes: Generate a service call dynamic whitelist based on the first service call information and the second life cycle duration interval; Upon receiving a second service request sent by a service consumer, verifying the second service call request based on the service call whitelist; When the verification passes, responding to the second service call request; When the verification fails, the second service invocation request is discarded.

6. The service call authentication method according to claim 2, characterized in that: The step of determining the duration interval of the second life cycle based on the consumption service content includes: Determining a service security level corresponding to the service consumption information based on the consumption service content; A second life cycle duration interval of the service call is determined according to the service security level.

7. A service call authentication method, characterized in that: The method is applied to a service consumer, and the method comprises: Sending a service call statement to a service subscription center, wherein the service call statement includes service consumption information; Receive first calling identity credential information fed back by the service subscription center; The service provider of the to-be-called service is called based on the first calling identity credential information.

8. The service call authentication method according to claim 7, characterized in that: The step of calling the service provider of the to-be-called service based on the first calling identity credential information comprises: Generate a first service call request based on the first service call information; Using the first calling identity credential information as the second calling identity credential information of the first service calling request; Sending the first service call request carrying the second call identity credential information to the service provider of the to-be-called service for call verification; When the call verification passes, the service provider is called.

9. The service call authentication method according to claim 8, characterized in that: After the step of calling the service provider when the call verification passes, the method further includes: When it is identified that the life cycle corresponding to the first calling identity credential information ends, if the service calling duration does not reach the first life cycle duration, requesting to obtain the third calling identity credential information; Generate a second calling code, and generate second service calling information based on the first service calling information and the second calling code; Generate a second service call request based on the second service call information; Using the third calling identity credential information as the fourth calling identity credential information of the second service calling request; Return to the step of sending the first service call request carrying the second call identity credential information to the service provider of the to-be-called service for call verification to perform call verification on the second service call request.

10. A service call authentication system, characterized in that: The service call authentication system includes: a service provider, a service consumer and a service subscription center; The service provider is used to implement the steps of the service call authentication method according to any one of claims 2 to 6; The service consumer is used to implement the steps of the service call authentication method as described in any one of claims 7 to 9; The service subscription center is used to implement the steps of the service call authentication method as described in claim 1.