Bank electronic account transaction authority control method, system and platform
By dynamically loading and combining multiple permission verification strategies and combining multi-dimensional information, the problem of insufficiently detailed and flexible permission division in the existing system is solved, and transaction control and user experience improvement in complex business scenarios are achieved.
Patent Information
- Application Number
- CN202410989127.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The existing bank electronic account transaction authority control system does not divide the authority dimensions in a detailed and flexible manner and cannot achieve specified control or restrictions, resulting in high management and control costs and poor user experience.
By obtaining multi-dimensional information in user transaction requests, dynamically loading multiple permission verification strategies, and combining merchants, interfaces, accounts, limits and other information to form multiple combined configurations, transaction control in complex business scenarios is achieved, allowing for specific business scenarios. Implement specific permission verification policies.
It realizes transaction control in complex business scenarios, supports multi-dimensional permission configuration, reduces management and control costs, and improves user experience.
Smart Images

Figure CN118521316B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, system and platform for controlling transaction authority of a bank electronic account. Background Art
[0002] With the development of electronic technology, the existing technology can no longer effectively guarantee the security of transactions by simply setting passwords for bank cards. For example, if a merchant's electronic account is suspected of illegal activities, it is necessary to manage the designated electronic account and control its deposits and withdrawals. Including but not limited to the above scenarios, more dimensions of permission control are needed to support it, such as: merchant business scenario dimension, restricting transactions in a certain business scenario of a merchant; electronic account dimension, based on the merchant business scenario, restricting the withdrawal and deposit of a designated electronic account, etc.
[0003] The existing system only controls permissions in two dimensions: merchants and interfaces. Obviously, it cannot meet the current complex and ever-changing business scenarios. To achieve specific account control, it can only be done by completely disabling transactions on designated interfaces under designated merchants, which will affect the normal transactions and user experience of the entire merchant. Because the existing system's permission dimensions are not detailed and flexible enough, to achieve designated control or restrictions, it can only be achieved by controlling a wide range of business scenarios, which has high control costs and poor user experience. Summary of the invention
[0004] The present disclosure provides a bank electronic account transaction authority control method, system and platform, which can solve the problem that the authority dimension division of the existing system is not detailed and flexible enough, cannot achieve specified control or restriction, and has high control cost. The present disclosure provides the following technical solutions:
[0005] As one aspect of an embodiment of the present disclosure, a method for controlling transaction authority of a bank electronic account is provided, comprising:
[0006] Obtain the transaction request initiated by the user at the upstream merchant, filter it through the network IP whitelist, verify the signature of the gateway service and decrypt the message, and then send it to the electronic account transaction system;
[0007] The electronic account transaction system dynamically loads configuration information of multiple permission verification strategies according to the multi-dimensional information in the transaction request, creates and manages all permission verification strategies according to the configuration information, and each permission verification strategy receives the multi-dimensional information in the transaction request and returns the verification result. If all permission verification strategies return valid verification results, the verification process ends and returns the verification result to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information or business operation information;
[0008] The multi-dimensional information is combined with each other to form multiple combination configurations, specifically: the upstream merchant information and system interface information are combined to form the merchant interface authority configuration, the account information and limit information are combined to form the account limit configuration, the upstream merchant information and limit information are combined to form the merchant limit configuration, and the account information and business operation information are combined to form the account operation restriction configuration;
[0009] The authority verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration or account operation restriction configuration.
[0010] Optionally, the merchant configuration implements the merchant start and stop verification step; the system interface configuration implements the system interface start and stop verification step; the merchant interface authority configuration implements the merchant interface authority verification step; the account limit configuration implements the account limit verification step; the merchant limit configuration implements the merchant limit verification step; and the account operation restriction configuration implements the account operation verification step.
[0011] Optionally, the verification steps respectively implemented by the single or multiple combined configurations are loaded as single elements in different arrangements and put into a permission verification policy container for management.
[0012] Optionally, when a certain permission verification strategy is selected, the permission verification strategy is taken out from the container, and each verification step in the permission verification strategy is executed.
[0013] Optionally, if any permission verification strategy returns an invalid verification result, the process fails and returns to the upstream merchant.
[0014] Optionally, the configuration information is stored in an XML file, a JSON file or a database.
[0015] Optionally, the permission verification strategy is provided by a strategy pattern or a factory pattern.
[0016] Optionally, all permission verification policies are created and managed according to the configuration information, including forming different permission verification policies into policy chains according to different scenarios according to the configuration information, and verifying them one by one according to the order in the policy chain.
[0017] As another aspect of the disclosed embodiment, a bank electronic account transaction authority control system is provided, including: a transaction request sending module, which obtains a transaction request initiated by a user at an upstream merchant, and sends the transaction request to the electronic account transaction system after filtering through a network IP whitelist, verifying the signature of a gateway service, and decrypting the message;
[0018] The authority verification execution module, the electronic account transaction system dynamically loads the configuration information of multiple authority verification strategies according to the multi-dimensional information in the transaction request, creates and manages all the authority verification strategies according to the configuration information, each of the authority verification strategies will receive the multi-dimensional information in the transaction request and return the verification result, if all the authority verification strategies return a valid verification result, the verification process ends and returns the verification result to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information or business operation information; the multi-dimensional information is combined with each other to form multiple combination configurations, specifically: the upstream merchant information and the system interface information are combined to form the merchant interface authority configuration, the account information and the limit information are combined to form the account limit configuration, the upstream merchant information and the limit information are combined to form the merchant limit configuration, and the account information and the business operation information are combined to form the account operation restriction configuration; the authority verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration or account operation restriction configuration.
[0019] As another aspect of an embodiment of the present disclosure, a bank electronic account transaction authority control platform is provided, including an upstream merchant device and a transaction system device, and the platform implements the above-mentioned bank electronic account transaction authority control method when executing the computer program.
[0020] Compared with the prior art, the beneficial effects of the present disclosure are:
[0021] 1. The permission verification strategy disclosed in this disclosure can support transaction control in complex business scenarios through multi-dimensional configurations such as merchants, interfaces, accounts, funds inflow and outflow directions, transaction limits, merchant transaction volumes, etc.
[0022] 2. The present disclosure can execute specific permission verification strategies for specific business scenarios. The specific steps in the strategy can be configured and used immediately after modification. When a permission verification strategy is selected, the strategy is taken out of the container and each verification step in the strategy is executed to achieve the purpose of flexible permission configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a flow chart of the bank electronic account transaction authority control method in Example 1;
[0024] Figure 2 A flowchart for selecting the authority verification strategy in Example 1;
[0025] Figure 3 This is a schematic diagram of the multi-dimensional information combination configuration in Example 1;
[0026] Figure 4 This is a schematic diagram of the permission verification strategy configuration in Example 1;
[0027] Figure 5 This is a flowchart of the permission verification strategy initialization in Example 1;
[0028] Figure 6 This is a schematic block diagram of the bank electronic account transaction authority control system in Example 2. DETAILED DESCRIPTION
[0029] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0030] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0031] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0032] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0033] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.
[0034] In addition, the present disclosure also provides a bank electronic account transaction authority control method, system and platform, all of which can be used to implement any bank electronic account transaction authority control method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.
[0035] The execution subject of the bank electronic account transaction authority control method may be a computer or other platform capable of implementing the bank electronic account transaction authority control. For example, the method may be executed by a terminal device or a server or other processing device, wherein the terminal device may be a user equipment (UE), a mobile device, a user terminal, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the bank electronic account transaction authority control method may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0036] Example 1
[0037] This embodiment provides a bank electronic account transaction authority control method, such as Figure 1 As shown, the following steps are included:
[0038] S10, obtaining the transaction request initiated by the user at the upstream merchant, filtering through the network IP whitelist, gateway service signature verification and message decryption, and then sending it to the electronic account transaction system;
[0039] S20, the electronic account transaction system dynamically loads the configuration information of multiple permission verification strategies according to the multi-dimensional information in the transaction request, creates and manages all the permission verification strategies according to the configuration information, each of the permission verification strategies will receive the multi-dimensional information in the transaction request and return the verification result, if all the permission verification strategies return a valid verification result, the verification process ends and the verification result is returned to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information or business operation information; the multi-dimensional information is combined with each other to form a plurality of combined configurations, specifically: the upstream merchant information and the system interface information are combined to form the merchant interface permission configuration, the account information and the limit information are combined to form the account limit configuration, the upstream merchant information and the limit information are combined to form the merchant limit configuration, and the account information and the business operation information are combined to form the account operation restriction configuration; the permission verification strategy also includes a single or multiple combined configurations of the following configurations: merchant configuration, system interface configuration, merchant interface permission configuration, account limit configuration, merchant limit configuration or account operation restriction configuration.
[0040] The following describes in detail each step of the embodiment of the present disclosure.
[0041] S10, obtaining the transaction request initiated by the user at the upstream merchant, filtering through the network IP whitelist, gateway service signature verification and message decryption, and then sending it to the electronic account transaction system;
[0042] In this embodiment, the user initiates a transaction request through an upstream merchant. After the upstream merchant processes it, the transaction request is sent to the bank system. After the gateway passes the IP whitelist and signature verification and decryption, it is sent to the electronic account transaction system.
[0043] In one embodiment, the dynamic IP whitelist may be implemented by an intelligent IP detection algorithm, which may be implemented by a machine learning model, including the following steps:
[0044] Data collection: collect behavioral data of IP addresses, including access frequency, access path, access time period, etc.;
[0045] Feature engineering: extracting and constructing features, such as access frequency statistics, time series features, access path features, etc.;
[0046] Model selection: Select a suitable machine learning model, such as random forest, XGBoost, LSTM, etc., and formulate the behavior pattern of the IP address based on the features;
[0047] Training process: Use labeled data to train the model. The labels can include normal behavior and abnormal behavior.
[0048] Model evaluation: Evaluate the model effect through cross-validation, ROC curve, AUC value, etc.; adjust model parameters to improve accuracy.
[0049] In another embodiment, the IP address of abnormal behavior can be realized by the isolation forest algorithm or K-Means clustering algorithm in the anomaly detection algorithm. The isolation forest algorithm is suitable for processing high-dimensional data and can effectively identify isolated points. The implementation steps are as follows: construct multiple decision trees, each tree tries to isolate a single sample; calculate the path length of the sample, and the sample with a short isolated path is usually an anomaly; standardize the path length and judge the degree of abnormality; in another embodiment, the K-Means clustering algorithm clusters the IP address into multiple clusters according to the behavior pattern through cluster analysis, and the outlier point is an anomaly. The implementation steps are as follows: select a suitable K value, run the K-Means algorithm, and divide all sample IPs; calculate the distance from each sample to its center point, and identify abnormal IPs according to the distance.
[0050] In this embodiment, the gateway service signature verification and message decryption can ensure the confidentiality, integrity and non-repudiation of data in network transmission, and enhance the security and reliability of the system. The gateway service signature verification can be verified in the following way: after receiving the request, the gateway service first extracts the attached signature and original data; uses the corresponding public key to verify the signature to ensure that the request data has not been tampered with during the transmission process; if the signature verification fails, the request is rejected and the error log is recorded, and an appropriate error code or message is returned to the client; message decryption can be achieved in the following way: using the AES encryption and decryption process, the encrypted data is sent to the gateway service through a secure channel such as HTTPS / TLS to prevent the data from being stolen or tampered with during transmission; decryption is achieved as follows: the gateway service first extracts the AES encrypted ciphertext and initial vector from the request; uses the AES key stored in the HSM or security management service to perform decryption operations to restore the original request data.
[0051] S20, the electronic account transaction system dynamically loads the configuration information of multiple permission verification strategies according to the multi-dimensional information in the transaction request, creates and manages all permission verification strategies according to the configuration information, each of the permission verification strategies will receive the multi-dimensional information in the transaction request and return the verification result, if all permission verification strategies return a valid verification result, the verification process ends and the verification result is returned to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information or business operation information; the multi-dimensional information is combined with each other to form multiple combination configurations, specifically: the upstream merchant information and system interface information are combined to form the merchant interface permission configuration, the account information and limit information are combined to form the account limit configuration, the upstream merchant information and limit information are combined to form the merchant limit configuration, and the account information and business operation information are combined to form the account operation restriction configuration; the permission verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface permission configuration, account limit configuration, merchant limit configuration or account operation restriction configuration, such as Figure 2 shown.
[0052] In this embodiment, the electronic account transaction system loads the configuration of the permission verification strategy through the StrategyConfig.loadConfig method; uses StrategyManager to create and manage all permission verification strategies according to the configuration; when verification is required, StrategyManager will execute each strategy in sequence; each strategy will receive data and parameters and return verification results; if all strategies return valid verification results, the entire verification process passes; if any strategy returns an invalid verification result, the process fails. By adopting the above-mentioned method of creating and managing all permission verification strategies according to the configuration information, different verification strategies can be dynamically loaded and executed at runtime without modifying the existing code; when adding new strategies, only new strategy classes and annotations need to be added without changing the existing code; through multi-dimensional information verification (such as role verification, time verification, etc.), the system can perform strict security checks to ensure the security of the request. For example, for the scenario verification of the merchant dimension, a new scenario name is added to the data table Scenario Strategy_Config (permission verification strategy configuration) as the merchant dimension scenario, and the policy chain that may be verified under the scenario is associated. The system interface layer needs to detect the merchant's calling authority, add the class name of the interface calling layer to the data table strategy_config, and perform a policy chain check. For example, if the class name of the system interface layer is com.example.api, then configure the file address of the policy chain in config_file, and the policy name is merchant interface access verification. According to the following json configuration, it can be verified whether the merchant has the authority and whether it is in the transaction time period allowed. If the verification fails, it returns "Policy chain verification failed: merchant dimension scenario & merchant interface access verification". It can be seen that this embodiment can flexibly perform policy chain verification in different scenarios for all system execution nodes. It only needs to query the basic fields of the data table to simply complete the merchant dimension verification and transaction dimension verification, and individually implement policy chains for different scenarios. The parameter configuration in the policy chain can also flexibly design whether to enable key parameters, etc.
[0053] In this embodiment, the multi-dimensional information is combined with each other to form multiple combination configurations, such as Figure 3As shown, specifically: the upstream merchant information and limit information are combined to form the merchant limit configuration; the upstream merchant information and system interface information are combined to form the merchant interface authority configuration. If Class A merchants (or designated a merchants) are configured to open b interface, then Class A merchants (designated a merchants) can pass the merchant interface authority verification step when calling b interface; the account information and limit information are combined to form the account limit configuration. If the transaction limit of Class A accounts (or designated a accounts) is configured to be x, then the Class A accounts (designated a accounts) can pass the account limit verification step when the transaction amount does not exceed x; the account information and business operation information are combined to form the account operation restriction configuration. If Class A accounts (or designated a accounts) are configured not to be able to perform deposit operations, then the Class A accounts (designated a accounts) cannot pass the account operation restriction verification step when depositing.
[0054] Optionally, the authority verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration, or account operation restriction configuration. In this embodiment, through multi-dimensional configurations such as merchants, interfaces, accounts, funds inflow and outflow directions, transaction limits, merchant transaction volumes, etc., transaction control in complex business scenarios can be supported.
[0055] Among them, the merchant configuration implements the merchant start and stop verification step; the system interface configuration implements the system interface start and stop verification step; the merchant interface authority configuration implements the merchant interface authority verification step; the account limit configuration implements the account limit verification step; the merchant limit configuration implements the merchant limit verification step; the account operation restriction configuration implements the account operation verification step.
[0056] Furthermore, the verification steps implemented by the single or multiple combined configurations are loaded as single elements in different arrangements and put into the permission verification strategy container for management, such as Figure 4 As shown, in this embodiment, the authority verification strategy 1 includes steps such as merchant start and stop verification, interface start and stop verification, and merchant interface authority verification; the authority verification strategy 2 includes steps such as account start and stop verification, account limit verification, and account withdrawal and deposit verification.
[0057] Optionally, when a certain permission verification strategy is selected, the permission verification strategy is taken out from the container, and each verification step in the permission verification strategy is executed.
[0058] In this embodiment, taking Java language as an example, the instantiation objects of each verification step and the permission verification strategy can be created and loaded in advance through Java reflection technology, and put into the container for management, so as to realize the dynamic permission control when the bank electronic account transaction system is connected to the upstream merchant, such as Figure 5The specific steps of initializing the verification strategy are as follows: project startup initialization; scan and instantiate all verification steps, generate singleton objects, create singleton steps, and put them into the step container pool; read the policy configuration from the policy configuration, create the permission verification strategy and its corresponding implementation steps; according to the permission verification strategy configuration, load each policy step in the step container pool and put it into the permission verification strategy container pool; startup initialization is completed.
[0059] When a certain permission verification strategy is selected, the strategy is taken out from the permission verification strategy container, and each verification step in the strategy is executed in sequence. In this process, a specific permission verification strategy is executed for a specific business scenario, and the specific steps in the strategy are configurable, which realizes the flexibility of permission configuration.
[0060] Example 2
[0061] As another aspect of the embodiment of the present disclosure, a bank electronic account transaction authority control system 100 is also provided. Figure 6 As shown, the following steps are included:
[0062] Transaction request sending module 1 obtains the transaction request initiated by the user at the upstream merchant, and sends it to the electronic account transaction system after filtering through the network IP whitelist, gateway service signature verification and message decryption;
[0063] The authority verification execution module 2, the electronic account transaction system dynamically loads the configuration information of multiple authority verification strategies according to the multi-dimensional information in the transaction request, creates and manages all the authority verification strategies according to the configuration information, each of the authority verification strategies will receive the multi-dimensional information in the transaction request and return the verification result, if all the authority verification strategies return a valid verification result, the verification process ends and the verification result is returned to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information or business operation information; the multi-dimensional information is combined with each other to form a plurality of combination configurations, specifically: the upstream merchant information and the system interface information are combined to form the merchant interface authority configuration, the account information and the limit information are combined to form the account limit configuration, the upstream merchant information and the limit information are combined to form the merchant limit configuration, and the account information and the business operation information are combined to form the account operation restriction configuration; the authority verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration or account operation restriction configuration.
[0064] Based on the above modules, the disclosed embodiment constructs a bank electronic account transaction authority control method, including: obtaining a transaction request initiated by a user at an upstream merchant, filtering through a network IP whitelist, verifying the signature of a gateway service, and decrypting the message, and then sending it to an electronic account transaction system; the electronic account transaction system selects an authority verification strategy based on the upstream merchant information and system interface information in the transaction request, and the authority verification strategy can support transaction control in complex business scenarios. When a certain authority verification strategy is selected, each verification step in the authority verification strategy is executed in sequence, and business processing is executed after the verification passes, and the processing result is returned to the upstream merchant, thereby achieving the purpose of flexible authority configuration. A bank electronic account transaction authority control system 100 is implemented.
[0065] The following is a detailed description of each module in the embodiment of the present disclosure.
[0066] The transaction request sending module 1 obtains the transaction request initiated by the user at the upstream merchant, and sends it to the electronic account transaction system after filtering through the network IP whitelist, gateway service signature verification and message decryption.
[0067] In this embodiment, the user initiates a transaction request through an upstream merchant. After the upstream merchant processes it, the transaction request is sent to the bank system. After the gateway passes the IP whitelist and signature verification and decryption, it is sent to the electronic account transaction system.
[0068] In one embodiment, the dynamic IP whitelist may be implemented by an intelligent IP detection algorithm, which may be implemented by a machine learning model, including the following steps:
[0069] Data collection: collect behavioral data of IP addresses, including access frequency, access path, access time period, etc.;
[0070] Feature engineering: extracting and constructing features, such as access frequency statistics, time series features, access path features, etc.;
[0071] Model selection: Select a suitable machine learning model, such as random forest, XGBoost, LSTM, etc., and formulate the behavior pattern of the IP address based on the features;
[0072] Training process: Use labeled data to train the model. The labels can include normal behavior and abnormal behavior.
[0073] Model evaluation: Evaluate the model effect through cross-validation, ROC curve, AUC value, etc.; adjust model parameters to improve accuracy.
[0074] In another embodiment, the IP address of abnormal behavior can be realized by the isolation forest algorithm or K-Means clustering algorithm in the anomaly detection algorithm. The isolation forest algorithm is suitable for processing high-dimensional data and can effectively identify isolated points. The implementation steps are as follows: construct multiple decision trees, each tree tries to isolate a single sample; calculate the path length of the sample, and the sample with a short isolated path is usually an anomaly; standardize the path length and judge the degree of abnormality; in another embodiment, the K-Means clustering algorithm clusters the IP address into multiple clusters according to the behavior pattern through cluster analysis, and the outlier point is an anomaly. The implementation steps are as follows: select a suitable K value, run the K-Means algorithm, and divide all sample IPs; calculate the distance from each sample to its center point, and identify abnormal IPs according to the distance.
[0075] In this embodiment, the gateway service signature verification and message decryption can ensure the confidentiality, integrity and non-repudiation of data in network transmission, and enhance the security and reliability of the system. The gateway service signature verification can be verified in the following way: after receiving the request, the gateway service first extracts the attached signature and original data; uses the corresponding public key to verify the signature to ensure that the request data has not been tampered with during the transmission process; if the signature verification fails, the request is rejected and the error log is recorded, and an appropriate error code or message is returned to the client; message decryption can be achieved in the following way: using the AES encryption and decryption process, the encrypted data is sent to the gateway service through a secure channel such as HTTPS / TLS to prevent the data from being stolen or tampered with during transmission; decryption is achieved as follows: the gateway service first extracts the AES encrypted ciphertext and initial vector from the request; uses the AES key stored in the HSM or security management service to perform decryption operations to restore the original request data.
[0076] The authority verification execution module 2, the electronic account transaction system dynamically loads the configuration information of multiple authority verification strategies according to the multi-dimensional information in the transaction request, creates and manages all the authority verification strategies according to the configuration information, each of the authority verification strategies will receive the multi-dimensional information in the transaction request and return the verification result, if all the authority verification strategies return a valid verification result, the verification process ends and the verification result is returned to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information or business operation information; the multi-dimensional information is combined with each other to form a plurality of combination configurations, specifically: the upstream merchant information and the system interface information are combined to form the merchant interface authority configuration, the account information and the limit information are combined to form the account limit configuration, the upstream merchant information and the limit information are combined to form the merchant limit configuration, and the account information and the business operation information are combined to form the account operation restriction configuration; the authority verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration or account operation restriction configuration.
[0077] In this embodiment, the electronic account transaction system loads the configuration of the permission verification strategy through the StrategyConfig.loadConfig method; uses StrategyManager to create and manage all permission verification strategies according to the configuration; when verification is required, StrategyManager will execute each strategy in sequence; each strategy will receive data and parameters and return verification results; if all strategies return valid verification results, the entire verification process passes; if any strategy returns an invalid verification result, the process fails. By adopting the above-mentioned method of creating and managing all permission verification strategies according to the configuration information, different verification strategies can be dynamically loaded and executed at runtime without modifying the existing code; when adding new strategies, only new strategy classes and annotations need to be added without changing the existing code; through multi-dimensional information verification (such as role verification, time verification, etc.), the system can perform strict security checks to ensure the security of the request. For example, for the scenario verification of the merchant dimension, a new scenario name is added to the data table Scenario _Strategy_Config (permission verification strategy configuration) as the merchant dimension scenario, and the strategy chain that may be verified under the scenario is associated. The system interface layer needs to detect the merchant's calling authority, add the class name of the interface calling layer to the data table strategy_config, and perform a policy chain check. For example, if the class name of the system interface layer is com.example.api, then configure the file address of the policy chain in config_file, and the policy name is merchant interface access verification. According to the following json configuration, it can be verified whether the merchant has the authority and whether it is in the transaction time period allowed. If the verification fails, it returns "Policy chain verification failed: merchant dimension scenario & merchant interface access verification". It can be seen that this embodiment can flexibly perform policy chain verification in different scenarios for all system execution nodes. It only needs to query the basic fields of the data table to simply complete the merchant dimension verification and transaction dimension verification, and individually implement policy chains for different scenarios. The parameter configuration in the policy chain can also flexibly design whether to enable key parameters, etc.
[0078] In this embodiment, the multi-dimensional information is combined with each other to form a plurality of combination configurations, specifically: the upstream merchant information and the limit information are combined to form the merchant limit configuration; the upstream merchant information and the system interface information are combined to form the merchant interface authority configuration, and the Class A merchant (or the designated a merchant) is configured to open the b interface, so that the Class A merchant (designated a merchant) can pass the merchant interface authority verification step when calling the b interface; the account information and the limit information are combined to form the account limit configuration, and the transaction limit of the Class A account (or the designated a account) is configured to be x, and the Class A account (designated a account) can pass the account limit verification step when the transaction amount does not exceed x; the account information and the business operation information are combined to form the account operation restriction configuration, and the Class A account (or the designated a account) is configured not to be able to perform the deposit operation, so the Class A account (designated a account) cannot pass the account operation restriction verification step when depositing.
[0079] Optionally, the authority verification strategy also includes a single or multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration, or account operation restriction configuration. In this embodiment, through multi-dimensional configurations such as merchants, interfaces, accounts, funds inflow and outflow directions, transaction limits, merchant transaction volumes, etc., transaction control in complex business scenarios can be supported.
[0080] Among them, the merchant configuration implements the merchant start and stop verification step; the system interface configuration implements the system interface start and stop verification step; the merchant interface authority configuration implements the merchant interface authority verification step; the account limit configuration implements the account limit verification step; the merchant limit configuration implements the merchant limit verification step; the account operation restriction configuration implements the account operation verification step.
[0081] Furthermore, the verification steps implemented by the single or multiple combined configurations are loaded as single elements in different arrangements and managed in a permission verification strategy container. In this embodiment, permission verification strategy 1 includes steps such as merchant start and stop verification, interface start and stop verification, and merchant interface permission verification; permission verification strategy 2 includes steps such as account start and stop verification, account limit verification, and account withdrawal and deposit verification.
[0082] Optionally, when a certain permission verification strategy is selected, the permission verification strategy is taken out from the container, and each verification step in the permission verification strategy is executed.
[0083] In this embodiment, taking Java language as an example, the instantiation objects of each verification step can be created and loaded in advance with the permission verification strategy through Java reflection technology, and put into the container for management, so as to realize the dynamic permission control when the bank electronic account transaction system connects with the upstream merchants. The specific steps of verification strategy initialization are as follows: project startup initialization; scan and instantiate all verification steps, generate singleton objects, create singleton steps, and put them into the step container pool; read the policy configuration from the policy configuration, create the permission verification strategy and its corresponding implementation steps; according to the permission verification policy configuration, load each policy step in the step container pool, and put it into the permission verification policy container pool; start initialization completed.
[0084] When a certain permission verification strategy is selected, the strategy is taken out from the permission verification strategy container, and each verification step in the strategy is executed in sequence. In this process, a specific permission verification strategy is executed for a specific business scenario, and the specific steps in the strategy are configurable, which realizes the flexibility of permission configuration.
[0085] In some embodiments, the system 100 operates in the following manner during use:
[0086] S1: Run the transaction request sending module 1. Obtain the transaction request initiated by the user at the upstream merchant, and send it to the electronic account transaction system after filtering through the network IP whitelist, gateway service signature verification and message decryption.
[0087] S2: Run the authority verification execution module 2. The electronic account transaction system selects an authority verification strategy according to the upstream merchant information and system interface information in the transaction request, executes each verification step in the authority verification strategy in sequence, executes business processing after the verification passes, and returns the processing result to the upstream merchant.
[0088] Based on the description of the above embodiments, it can be seen that the embodiments of the present disclosure can achieve the following technical effects:
[0089] (1) The permission verification strategy in this embodiment can support transaction control in complex business scenarios through multi-dimensional configuration such as merchants, interfaces, accounts, funds inflow and outflow directions, transaction limits, merchant transaction volumes, etc.
[0090] (2) This embodiment can execute a specific permission verification strategy for a specific business scenario. The specific steps in the strategy are configurable and can be used immediately after modification. When a permission verification strategy is selected, the strategy is taken out of the container and the verification steps in the strategy are executed to achieve the purpose of flexible permission configuration.
[0091] Example 3
[0092] The disclosed embodiment provides a bank electronic account transaction authority control platform, including an upstream merchant device and a transaction system device. When the bank electronic account transaction authority control platform executes the computer program, the bank electronic account transaction authority control method in Embodiment 1 is implemented.
[0093] Embodiment 3 of the present disclosure is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0094] Although embodiments of the present disclosure have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present disclosure, and the scope of the present disclosure is defined by the appended claims and their equivalents.
Claims
1. A bank electronic account transaction authority control method, characterized in that: include: Obtain the transaction request initiated by the user at the upstream merchant, filter it through the network IP whitelist, verify the signature of the gateway service and decrypt the message, and then send it to the electronic account transaction system; The electronic account transaction system dynamically loads configuration information of multiple authority verification strategies according to the multi-dimensional information in the transaction request, creates and manages all authority verification strategies according to the configuration information, and each authority verification strategy receives the multi-dimensional information in the transaction request and returns the verification result. If all authority verification strategies return valid verification results, the verification process ends and returns the verification result to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information and business operation information; The multi-dimensional information is combined with each other to form multiple combination configurations, specifically: the upstream merchant information and system interface information are combined to form the merchant interface authority configuration, the account information and limit information are combined to form the account limit configuration, the upstream merchant information and limit information are combined to form the merchant limit configuration, and the account information and business operation information are combined to form the account operation restriction configuration; The authority verification strategy also includes multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration, and account operation restriction configuration; The merchant configuration implements the merchant start and stop verification step; the system interface configuration implements the system interface start and stop verification step; the merchant interface authority configuration implements the merchant interface authority verification step; the account limit configuration implements the account limit verification step; the merchant limit configuration implements the merchant limit verification step; the account operation restriction configuration implements the account operation verification step; The verification steps respectively implemented by the plurality of combined configurations are loaded in different arrangements and put into a permission verification strategy container for management; When a certain permission verification strategy is selected, the permission verification strategy is taken out from the container, and each verification step in the permission verification strategy is executed; If any permission verification strategy returns an invalid verification result, the process fails and returns to the upstream merchant.
2. The bank electronic account transaction authority control method according to claim 1, characterized in that: The configuration information is stored in an XML file, a JSON file or a database.
3. The bank electronic account transaction authority control method according to claim 1, characterized in that: The permission verification strategy is provided by the strategy mode or the factory mode.
4. The bank electronic account transaction authority control method according to claim 1, characterized in that: All permission verification policies are created and managed according to the configuration information, including forming a policy chain of different permission verification policies according to different scenarios according to the configuration information, and verifying them one by one according to the order in the policy chain.
5. A bank electronic account transaction authority control system, characterized in that: The transaction request sending module obtains the transaction request initiated by the user at the upstream merchant, and sends it to the electronic account transaction system after filtering through the network IP whitelist, gateway service signature verification and message decryption; Permission verification execution module, The electronic account transaction system dynamically loads the configuration information of multiple authority verification strategies according to the multi-dimensional information in the transaction request, creates and manages all the authority verification strategies according to the configuration information, each of the authority verification strategies receives the multi-dimensional information in the transaction request and returns the verification result. If all the authority verification strategies return valid verification results, the verification process ends and returns the verification result to the upstream merchant; the multi-dimensional information includes upstream merchant information, system interface information, account information, limit information and business operation information; the multi-dimensional information is combined with each other to form multiple combination configurations, specifically: the upstream merchant information and system interface information are combined to form the merchant interface authority configuration, the account information and limit information are combined to form the account limit configuration, the upstream merchant information and limit information are combined to form the merchant limit configuration, and the account information and business operation information are combined to form the account operation restriction configuration; The authority verification strategy also includes multiple combination configurations of the following configurations: merchant configuration, system interface configuration, merchant interface authority configuration, account limit configuration, merchant limit configuration or account operation restriction configuration; the merchant configuration implements the merchant start and stop verification step; the system interface configuration implements the system interface start and stop verification step; the merchant interface authority configuration implements the merchant interface authority verification step; the account limit configuration implements the account limit verification step; the merchant limit configuration implements the merchant limit verification step; the account operation restriction configuration implements the account operation verification step; the verification steps respectively implemented by the multiple combination configurations are loaded in different arrangements and put into the authority verification strategy container for management; when a certain authority verification strategy is selected, the authority verification strategy is taken out of the container and the verification steps in the authority verification strategy are executed; if the verification result returned by any authority verification strategy is invalid, the process fails and returns to the upstream merchant.
6. A bank electronic account transaction authority control platform, comprising upstream merchant equipment and transaction system equipment, characterized in that: The bank electronic account transaction authority control platform implements the bank electronic account transaction authority control method described in any one of claims 1 to 4 when executing the computer program.
