Method and device for docking financial institution business interface, equipment and storage medium
By using multiple objects in the preset processing library to process and adapt business data, the problem of low efficiency in business interface docking between external institutions and financial institutions is solved, and efficient interface docking is achieved.
Patent Information
- Application Number
- CN202510033272.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, the docking efficiency of the business interface between external institutions and financial institutions is low, mainly because the business interfaces of different financial institutions adopt different encryption methods and pass different encryption parameters, resulting in the need for separate adaptation.
Provide a method to achieve docking with the business interface of the financial institution by obtaining business data for the target financial institution and using multiple objects in the preset processing library (communication protocol library, encryption algorithm library, special field library, data format library and numerical conversion library) to process and adapt.
It improves the efficiency of connecting the business interface between external institutions and financial institutions, and avoids developers' manual settings of cumbersome normative configurations, such as format conversion and encryption and decryption.
Smart Images

Figure CN120030074A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology for the financial industry, and specifically to a method, device, equipment, computer program product and storage medium for connecting to a business interface of a financial institution. Background Art
[0002] At present, financial institutions have entered the information management, but there are still many problems in the interface connection between external institutions and various financial institutions. For example, different financial institutions' business interfaces may use different encryption methods, and external institutions need to adapt them separately; some interfaces may also require the transmission of specific encryption parameters, and the differences in these parameters also increase the difficulty of connection. The existing technology is to adapt the business interfaces of different financial institutions separately. Therefore, there is a problem of low efficiency in the connection between external institutions and financial institutions' business interfaces. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, apparatus, device, computer program product and storage medium for connecting to the business interface of a financial institution, so as to solve the problem of low connection efficiency between the business interface of an external institution and a financial institution in the prior art.
[0004] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for connecting to a business interface of a financial institution, the method is applied to an external institution, and the external institution performs business connection with a business interface of a target financial institution, the method comprising:
[0005] Obtain business data for the business interface of the target financial institution;
[0006] Determine that each of the multiple objects in the preset processing library has an object for the target financial institution's business interface; the preset processing library at least includes a communication protocol library, an encryption algorithm library, a special field library, a data format library, and a value conversion library;
[0007] The business data is sent to the financial institution business interface based on the business data and the objects in each preset processing library for the target financial institution business interface.
[0008] In an embodiment of the present application, the method also includes: determining that there is no object for the target financial institution business interface among multiple objects in the preset processing library; determining the newly added objects in the preset processing library based on the docking document of the target financial institution business interface, and docking with the financial institution business interface based on the business data, the newly added objects and the objects for the target financial institution business interface in the remaining preset processing libraries.
[0009] In an embodiment of the present application, the step of sending business data to the business interface of the financial institution according to the business data and the objects for the business interface of the target financial institution in each preset processing library includes: converting the numerical values in the business data based on the objects for the business interface of the target financial institution in the numerical conversion library; the numerical values include at least date and time; encrypting the special fields in the business data based on the objects for the business interface of the target financial institution in the special field library; the special fields include at least ID card, mobile phone number and bank card number; encrypting the business data based on the objects for the business interface of the target financial institution in the encryption algorithm library; the objects in the encryption algorithm library include at least MD5 and SHA-256; formatting the business data based on the objects for the business interface of the target financial institution in the data format library; the objects in the data format library include at least Json, xml and binary; connecting with the business interface of the financial institution based on the objects for the business interface of the target financial institution in the communication protocol library; the objects in the communication protocol library include at least http.
[0010] In an embodiment of the present application, the connection between the object for the target financial institution business interface in the communication protocol library and the financial institution business interface includes: the object for the target financial institution business interface in the communication protocol library sends the processed business data synchronously and / or asynchronously to the target financial institution business interface.
[0011] In the embodiment of the present application, the method further includes: based on the object for the target financial institution business interface in each preset processing library, synchronously receiving and / or asynchronously receiving notification data sent by the target financial institution business interface.
[0012] In an embodiment of the present application, based on the object for the target financial institution business interface in each preset processing library, the step of synchronously receiving and / or asynchronously receiving notification data sent by the target financial institution business interface includes: connecting with the financial institution business interface based on the object for the target financial institution business interface in the communication protocol library, and obtaining undecrypted data; formatting the undecrypted data based on the object for the target financial institution business interface in the data format library to determine the first data to be decrypted; decrypting the first data to be decrypted based on the object for the target financial institution business interface in the encryption algorithm library to determine the second data to be decrypted; decrypting the special field in the second data to be decrypted based on the object for the target financial institution business interface in the special field library to determine the decrypted data; converting the numerical value in the decrypted data based on the object for the target financial institution business interface in the numerical conversion library to determine the notification data.
[0013] A second aspect of the present application provides a device for docking with a financial institution's business interface, which is applied to an external organization, and the external organization conducts business docking with a target financial institution's business interface. The device includes: an acquisition module, which is used to acquire business data for the target financial institution's business interface; a determination module, which is used to determine that objects for the target financial institution's business interface are provided among multiple objects in each preset processing library; the preset processing library includes at least a communication protocol library, an encryption algorithm library, a special field library, a data format library and a numerical conversion library; and a docking module, which is used to send the business data to the financial institution's business interface based on the business data and the objects for the target financial institution's business interface in each preset processing library.
[0014] A third aspect of the present application provides a device for connecting to a financial institution's business interface, the device comprising:
[0015] a memory configured to store instructions; and
[0016] The processor is configured to call instructions from the memory and implement the above-mentioned method of connecting to the business interface of the financial institution when executing the instructions.
[0017] A fourth aspect of the present application provides a computer program product, including a computer program, which implements the above-mentioned method of connecting to the business interface of a financial institution when executed by a processor.
[0018] A fifth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned method for connecting to a financial institution's business interface.
[0019] Through the above technical solution, the business data for the target financial institution's business interface is first obtained, and then it is determined that there are objects for the interface in each of the multiple objects in the preset processing library. Then, based on the business data and the objects in each preset processing library, the data for docking with the financial institution's business interface is determined. Ultimately, it avoids the need for developers to manually set up cumbersome normative configurations in the financial industry, such as format conversion and encryption and decryption operations, thereby improving the development efficiency of docking with financial institution business interfaces.
[0020] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0022] Figure 1A flowchart schematically shows a method for connecting to a financial institution's business interface according to an embodiment of the present application;
[0023] Figure 2 A schematic diagram of a structure of a device for connecting to a financial institution's business interface according to an embodiment of the present application is shown;
[0024] Figure 3 A schematic diagram of a structure of a device for connecting to a financial institution's business interface according to an embodiment of the present application is shown;
[0025] Figure 4 A design diagram of a modularized interface for connecting to a financial institution's business interface according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0027] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0028] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0029] Figure 1 The following schematically shows a flow chart of a method for connecting to a financial institution's business interface according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a method for connecting to a business interface of a financial institution, and the method may include the following steps.
[0030] Step 101: Obtain business data for a target financial institution's business interface.
[0031] In an embodiment of the present application, the target financial institution business interface may refer to an API or service endpoint provided by the target financial institution, allowing external institutions to exchange data or perform business operations with it. The business interfaces of different financial institutions may be different, so they need to be adapted for specific financial institutions. However, adapting the business interfaces of repeated financial institutions each time will increase the repetitive workload of developers. Business data may refer to data used to interact with the business interface of the target financial institution. These data may include transaction information, account information, user data, etc., and the specific content depends on business needs. Business data usually has a certain format and structure, and may need to be processed (such as format conversion, encryption and decryption, etc.) to adapt to the requirements of the business interface of the financial institution.
[0032] Step 102: Determine that each of the multiple objects in the preset processing library has an object for the target financial institution's business interface; the preset processing library at least includes a communication protocol library, an encryption algorithm library, a special field library, a data format library, and a numerical conversion library.
[0033] In the embodiment of the present application, the preset processing library is used to help simplify the docking process with the business interface of the financial institution. Each processing library may contain different functional modules, and each module (object) can independently complete specific tasks or operations. Different processing libraries are for different types of processing requirements, such as conversion, encryption, communication, etc. of interface data formats. Objects can refer to specific functional implementations within each processing library. Each library may contain multiple objects, each of which is responsible for a specific function (such as data encryption, format conversion, etc.). These objects are pre-defined and can be called and executed in the subsequent docking process. Objects for the business interface of the target financial institution may refer to objects specifically designed for docking with the business interface of the target financial institution. They provide corresponding processing functions for the interface specifications and requirements of the target financial institution. For example, some objects may implement specific encryption algorithms required by the financial institution, or some objects may support the data format of the institution. Communication protocol library: This library contains the communication protocol objects required for docking with the business interface of the financial institution, such as HTTP, HTTPS, SOAP, etc. It provides functions for processing network requests, responses, and data transmission. Encryption algorithm library: includes algorithm objects for encrypting and decrypting data. These encryption algorithms usually involve encrypting sensitive information (such as passwords, bank card numbers). Common algorithms include MD5, SHA-256, RSA, etc. This library ensures the security of data transmission. Special field library: This library contains objects for encryption, desensitization, etc. for certain specific fields (such as ID card number, mobile phone number, bank card number, etc.). Since these fields are sensitive information, they usually require special protection measures. Data format library: This library provides objects for converting data into the format required by the target financial institution. Common data formats include JSON, XML, CSV, etc. The data format library ensures that the data transmitted by the external system can be consistent with the format required by the financial institution interface. Numeric conversion library: Contains objects with numerical conversion functions, which are usually used to convert the format of digital types in business data, or to convert date and time formats from one standard to another. For example, convert a date represented by a string (such as "2024-12-20") to the date format required by the target financial institution (such as "2024 / 12 / 20"). By determining the objects in each preset processing library, you can ensure that all processing functions can adapt to the requirements of the target financial institution's business interface. Check whether the preset library contains the functional objects required for interface connection with the target financial institution, and ensure that each processing library can provide corresponding support. The objects in the preset processing library can ensure compatibility and efficiency with the target financial institution's business interface, avoid manual intervention and misconfiguration, thereby speeding up interface connection and improving data processing accuracy.
[0034] Step 103: According to the business data and the objects in each preset processing library for the target financial institution business interface, the business data is sent to the financial institution business interface.
[0035] In the embodiment of the present application, the business data is processed by the objects in the preset processing library to make it conform to the format, encryption, protocol and other requirements of the target financial institution interface. For example, the business data is converted into the XML format required by the financial institution through the data format library, the sensitive fields are encrypted using the encryption algorithm library, and the communication with the financial institution interface is realized through the communication protocol library. Through the objects in these preset processing libraries, various requirements for the interface with the financial institution can be automatically processed, which greatly improves the speed and accuracy of the interface docking.
[0036] Through the above technical solution, the business data for the target financial institution's business interface is first obtained, and then it is determined that there are objects for the interface in each of the multiple objects in the preset processing library. Then, based on the business data and the objects in each preset processing library, the data for docking with the financial institution's business interface is determined. Ultimately, it avoids the need for developers to manually set up cumbersome normative configurations in the financial industry, such as format conversion and encryption and decryption operations, thereby improving the development efficiency of docking with financial institution business interfaces.
[0037] In an embodiment of the present application, the method may further include: determining that there is no object for the target financial institution business interface among multiple objects in the preset processing library; determining a new object in the preset processing library based on the docking document of the target financial institution business interface, and docking with the financial institution business interface based on the business data, the new object and the objects for the target financial institution business interface in the remaining preset processing libraries.
[0038] In the embodiment of the present application, if the preset processing library does not contain a specific object for the target financial institution, it means that the existing processing library cannot directly process the specific functions required for docking with the business interface of the financial institution. For example, there may be no object that supports the specific data format of the financial institution, or the implementation of its specific encryption algorithm is missing. The docking document can be a technical document provided by the target financial institution, which lists in detail the interface specifications, requirements, and protocols and data formats that need to be followed by the institution. The document usually includes information such as the endpoints of the interface, data request / response format, encryption and decryption requirements, and special field processing rules. When it is found that the preset processing library lacks an adapter object for the target financial institution interface, it is necessary to add an adapter object according to the requirements of the docking document. These newly added objects may be modules for specific functions, such as supporting a specific data format (such as a certain XML structure or a specific version of the JSON format), supporting a certain encryption algorithm (such as RSA or a specific algorithm required by the financial institution), or implementing specific protocol support (such as SOAP protocol or a communication protocol customized by the financial institution). By adding new objects, it can be ensured that the preset processing library can adapt to the specific interface requirements of the target financial institution, and ensure that data conversion, encryption and decryption, protocol adaptation, etc. in the docking process can be carried out smoothly. This dynamic expansion of the processing library approach enables flexible response to the interface requirements of different financial institutions without the need to develop from scratch for each financial institution, saving a lot of development time and resources.
[0039] In an embodiment of the present application, the step of sending business data to the business interface of the financial institution according to the business data and the objects for the business interface of the target financial institution in each preset processing library may include: converting the numerical values in the business data based on the objects for the business interface of the target financial institution in the numerical conversion library; the numerical values include at least date and time; encrypting special fields in the business data based on the objects for the business interface of the target financial institution in the special field library; the special fields include at least ID card, mobile phone number and bank card number; encrypting business data based on the objects for the business interface of the target financial institution in the encryption algorithm library; the objects in the encryption algorithm library include at least MD5 and SHA-256; formatting the business data based on the objects for the business interface of the target financial institution in the data format library; the objects in the data format library include at least Json, xml and binary; connecting with the business interface of the financial institution based on the objects for the business interface of the target financial institution in the communication protocol library; the objects in the communication protocol library include at least http.
[0040] In the embodiments of the present application, MD5 is a common hash algorithm used to generate a unique fingerprint of data. SHA-256 is a more powerful hash algorithm, commonly used to generate longer and more secure digital signatures. Json is a widely used data exchange format, commonly used for requests and responses of Web services. XML is another common markup language, widely used in finance, banking and other fields. Binary is used to efficiently store and transmit data, and is commonly used for media files such as pictures and videos, or data formats of certain proprietary protocols. HTTP is a widely used protocol, particularly suitable for Web services (RESTful API, etc.).
[0041] In an embodiment of the present application, the connection between the object for the target financial institution business interface in the communication protocol library and the financial institution business interface may include: the object for the target financial institution business interface in the communication protocol library sends the processed business data synchronously and / or asynchronously to the target financial institution business interface.
[0042] In the embodiment of the present application, the method may further include: based on the object for the target financial institution business interface in each preset processing library, synchronously receiving and / or asynchronously receiving notification data sent by the target financial institution business interface.
[0043] In an embodiment of the present application, based on the object for the target financial institution business interface in each preset processing library, the step of synchronously receiving and / or asynchronously receiving notification data sent by the target financial institution business interface may include: connecting with the financial institution business interface based on the object for the target financial institution business interface in the communication protocol library, and obtaining undecrypted data; formatting the undecrypted data based on the object for the target financial institution business interface in the data format library to determine the first data to be decrypted; decrypting the first data to be decrypted based on the object for the target financial institution business interface in the encryption algorithm library to determine the second data to be decrypted; decrypting the special field in the second data to be decrypted based on the object for the target financial institution business interface in the special field library to determine the decrypted data; converting the numerical value in the decrypted data based on the object for the target financial institution business interface in the numerical conversion library to determine the notification data.
[0044] In the embodiment of the present application, the steps for the external organization to receive data are opposite to the steps for the external organization to send data. The principle is the same as that described above and will not be repeated here.
[0045] Figure 2 The structure block diagram of a device for connecting to a financial institution's business interface according to an embodiment of the present application is schematically shown. Figure 2As shown, an embodiment of the present application also provides a device for docking a business interface of a financial institution, which is applied to an external organization, and the external organization conducts business docking with the business interface of a target financial institution. The device may include: an acquisition module 210, which is used to acquire business data for the business interface of the target financial institution; a determination module 220, which is used to determine that there are objects for the business interface of the target financial institution among multiple objects in each preset processing library; the preset processing library includes at least a communication protocol library, an encryption algorithm library, a special field library, a data format library and a numerical conversion library; a docking module 230, which is used to send the business data to the business interface of the financial institution according to the business data and the objects for the business interface of the target financial institution in each preset processing library.
[0046] Figure 3 The structure block diagram of a device for connecting to a financial institution's business interface according to an embodiment of the present application is schematically shown. Figure 3 As shown, an embodiment of the present application also provides a device for connecting to a financial institution's business interface, which may include: a memory 310, configured to store instructions; and a processor 320, configured to call instructions from the memory 310 and to implement the above-mentioned method for connecting to a financial institution's business interface when executing the instructions.
[0047] Figure 4 A schematic diagram of a modular interface for connecting to a financial institution business according to an embodiment of the present application is shown. Figure 4 As shown, in an embodiment of the present application, the processing libraries of different modules can be dynamically called according to business needs. Figure 4 Five modules and five processing libraries are shown. The five modules correspond to the five processing libraries one by one. The communication module is responsible for data transmission with the financial institution interface. The communication module can call the http library, xml library and the custom A1 library. The message encryption module is used to ensure the integrity and confidentiality of business data during data transmission. The message encryption module can call MD5, SHA-256 and the custom B1 library. The special field module is used to protect sensitive fields in business data (such as ID card number, mobile phone number, bank card number, etc.). The special field module can call symmetric encryption, asymmetric encryption and the custom C1 library (supporting custom field encryption rules). The message parsing module is used to parse the received message data and convert it into an internal format that can be recognized by the interface. The message parsing module can call JSON, XML and the custom D1 library. The data conversion module is used to process the numerical conversion of business data, such as the format conversion of fields such as date, time and amount. The data conversion module can call the date, time and custom E1 library (supporting the requirements of financial institutions for specific numerical formats). Through modular design, the efficiency of interface docking development can be improved. Figure 4The module specifications shown in the table define in detail the configuration requirements, data input format, and output format that each module must follow when calling the corresponding processing library. Through such standardized definitions, each module can use the processing library without additional adaptation of the internal logic of the specific implementation library. Specifically, the design of each module specification enables the module to dynamically select and seamlessly switch to different implementation methods in the processing library when calling the processing library without changing the logic of the module itself. The core goal of this standardized design is to achieve a high degree of modular decoupling. Each module focuses on completing its core responsibilities, such as data scheduling, message assembly and distribution, without having to worry about the specific algorithm implementation details. For example, the communication module only needs to send and receive data according to the interface format provided by the specification without having to understand the differences in the underlying transmission protocol; the encryption module only needs to call the encryption algorithm library according to the specification without having to pay attention to the specific implementation of the MD5 or SHA-256 algorithm. In addition, through standardized input and output interfaces, each module node only needs to receive data parameters that meet unified standards and output processed standardized data. This ensures efficient collaboration between modules and can quickly adapt to the needs of different financial institution interfaces. For example, the data format library can easily switch between JSON, XML, or binary formats without affecting the work of the message parsing module.
[0048] The embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned method of connecting to the business interface of a financial institution when executed by a processor.
[0049] The embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method of connecting to the business interface of a financial institution.
[0050] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0051] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0052] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0053] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0054] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0055] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0056] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmitting media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0057] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0058] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for connecting to a financial institution's business interface, characterized in that: Applied to an external institution, the external institution performs business connection with a target financial institution's business interface, the method comprising: Acquire business data for the business interface of the target financial institution; Determine that each of the multiple objects in the preset processing library has an object for the business interface of the target financial institution; the preset processing library at least includes a communication protocol library, an encryption algorithm library, a special field library, a data format library and a value conversion library; The business data is sent to the financial institution business interface according to the business data and the objects in each preset processing library for the target financial institution business interface.
2. The method according to claim 1, characterized in that The method further comprises: Determining that there is no object for the business interface of the target financial institution among the multiple objects in the preset processing library; According to the docking document of the target financial institution's business interface, the newly added object in the preset processing library is determined, and the financial institution's business interface is docked according to the business data, the newly added object and the objects in the remaining preset processing libraries for the target financial institution's business interface.
3. The method according to claim 1, characterized in that The step of sending the business data to the business interface of the financial institution according to the business data and the object in each preset processing library for the business interface of the target financial institution comprises: Converting the numerical values in the business data based on the objects in the numerical conversion library for the business interface of the target financial institution; the numerical values at least include date and time; Encrypting the special fields in the business data based on the objects in the special field library for the business interface of the target financial institution; the special fields at least include an ID card, a mobile phone number and a bank card number; Encrypting the business data based on the object in the encryption algorithm library for the business interface of the target financial institution; the objects in the encryption algorithm library include at least MD5 and SHA-256; The business data is formatted based on the objects in the data format library for the business interface of the target financial institution; the objects in the data format library include at least Json, XML and binary; The object in the communication protocol library targeting the target financial institution's business interface is connected to the financial institution's business interface; the object in the communication protocol library at least includes http.
4. The method according to claim 3, characterized in that The object in the communication protocol library corresponding to the target financial institution's business interface is connected with the financial institution's business interface, including: Based on the object in the communication protocol library for the target financial institution's business interface, the processed business data is sent synchronously and / or asynchronously to the target financial institution's business interface.
5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Based on the object for the target financial institution business interface in each preset processing library, the notification data sent by the target financial institution business interface is synchronously received and / or asynchronously received.
6. The method according to claim 5, characterized in that The step of synchronously receiving and / or asynchronously receiving notification data sent by the target financial institution business interface based on the object for the target financial institution business interface in each preset processing library includes: Connecting with the financial institution business interface based on the object for the target financial institution business interface in the communication protocol library and obtaining undecrypted data; Performing format conversion on the undecrypted data based on the object in the data format library for the target financial institution business interface to determine first data to be decrypted; Decrypting the first data to be decrypted based on the object in the encryption algorithm library for the target financial institution business interface to determine the second data to be decrypted; Decrypting the special field in the second data to be decrypted based on the object for the target financial institution business interface in the special field library to determine the decrypted data; The numerical value in the decrypted data is converted based on the object in the numerical conversion library for the target financial institution business interface to determine the notification data.
7. A device for connecting to a financial institution's business interface, characterized in that: Applied to external institutions, the external institutions conduct business connection with the business interface of the target financial institution, including: An acquisition module, used to acquire business data for the business interface of the target financial institution; A determination module, used to determine that among the multiple objects in each preset processing library, there is an object for the business interface of the target financial institution; the preset processing library at least includes a communication protocol library, an encryption algorithm library, a special field library, a data format library and a numerical conversion library; The docking module is used to send the business data to the business interface of the financial institution according to the business data and the objects in each preset processing library for the business interface of the target financial institution.
8. A device for connecting to a financial institution's business interface, characterized in that: include: a memory configured to store instructions; as well as The processor is configured to call the instruction from the memory and implement the method for connecting to the business interface of a financial institution according to any one of claims 1 to 6 when executing the instruction.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for connecting to a financial institution's business interface according to any one of claims 1 to 6 is implemented.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing a machine to execute the method for connecting to a financial institution's business interface according to any one of claims 1 to 6.