CPC G06F 21/54 (2013.01) [G06F 9/547 (2013.01); G06F 21/51 (2013.01); H04L 67/133 (2022.05)] | 20 Claims |
1. A method, comprising:
sending, by an invoker, a first invoking request to an application programming interface (API) exposing function entity using an original security method, wherein the first invoking request is configured to invoke a service API;
receiving, by the API exposing function entity, the first invoking request from the invoker;
sending, by the API exposing function entity, a response message of the first invoking request to the invoker, wherein the response message comprises a cause value indicating that the service API failed to be invoked because of a security method error from a mismatch between the original security method of the invoker and a new security method of the API exposing function entity;
receiving, by the invoker, the response message from the API exposing function entity;
obtaining, by the invoker, the new security method of the API exposing function entity;
sending, by the invoker, a second invoking request to the API exposing function entity using the new security method, wherein the second invoking request comprises a name of the service API, and wherein the second invoking request is configured to invoke the service API; and
receiving, by the API exposing function entity, the second invoking request from the invoker.
|