License generation method and system based on custom form

Through the license generation method based on custom forms, the problem of inflexible license generation in multi-cloud management scenarios is solved, and license generation adapted to different cloud vendors and cloud types is realized, reducing maintenance costs.

CN119918028APending Publication Date: 2025-05-02CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411804624.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing license generation method lacks flexibility in multi-cloud management scenarios, and it is difficult to adapt to changes in cloud resources and differences between different cloud manufacturers and cloud types.

Method used

The license generation method based on custom forms is adopted, and a custom license application form is formed by pulling it, the control identification field is configured, and the form data is parsed in a low-code manner, and the JSON format data is generated and then encrypted.

Benefits of technology

Improves the flexibility of license generation and adjustment, adapts to different cloud vendors and cloud types in multi-cloud management scenarios, and reduces the maintenance cost of license management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119918028A_ABST
    Figure CN119918028A_ABST
Patent Text Reader

Abstract

The invention discloses a license generation method and system based on a user-defined form, and the method specifically comprises the steps: 1, forming a user-defined license application form through dragging based on a plurality of built-in controls in an application form maintenance stage, configuring a control identification field, and storing and issuing the form; 2, in a license generation stage, filling specific license information application parameters in the form according to business conditions; 3, analyzing the form data in a low-code mode, and performing conversion processing on the control value according to the control identifier to obtain JSON format data; and step 4, performing encryption processing on the JSON format data to form a safe license file with unreadable information for distribution. According to the method, version management and flexible configuration can be performed on the license, the service requirements of different cloud manufacturers, different cloud types and large version differences in a multi-cloud management scene are met, the maintenance cost of license management can be reduced, and efficient development of multi-cloud management services is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of multi-cloud management, and in particular relates to a license generation method based on a custom form. Background Art

[0002] License management is a common software authorization method and a common method used by the software industry to control and track software usage. In a cloud computing environment, authorization management faces more complexity. Because cloud resource types are very rich and resources in a cloud environment are dynamically changing, it is challenging to adjust authorization policies in real time to adapt to resource changes.

[0003] Multi-cloud management is the unified management of various cloud computing resources. Because it involves multiple cloud vendors, different vendors have different versions, and different projects have different cloud types, this business scenario requires management flexibility.

[0004] The general license generation method is to fix the application form to correspond to specific license information parameters, and adjust the form to adapt when the license parameters change. This maintenance solution lacks the necessary flexibility for complex multi-cloud management scenarios. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a license generation method and system based on a custom form in view of the above-mentioned deficiencies in the prior art, so as to improve the flexibility of license generation and adjustment.

[0006] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:

[0007] A license generation method based on a custom form, the method specifically comprising:

[0008] Step 1: In the application form maintenance phase, a custom license application form is formed by dragging and dropping multiple built-in controls, and the control identification fields are configured and the form is saved and published;

[0009] Step 2: In the license generation stage, fill in specific license information application parameters in the form according to business conditions;

[0010] Step 3: Parse the form data in a low-code manner, convert the control value according to the control identifier, and obtain JSON format data;

[0011] Step 4: Encrypt the JSON format data to form an information-unreadable and secure license file for distribution.

[0012] To optimize the above technical solutions, the specific measures taken also include:

[0013] In the above step 3, the identification information of each control in the form is parsed from three aspects: data structure, data type, and business identification to perform corresponding conversion processing on the filled-in control data to obtain data in JSON format.

[0014] In terms of the above data structure, the control identifiers include the part__ prefix, tree__ prefix, flat__ prefix, and | separator. The corresponding controls are the multiple-selection box group, the tree control, the design subtable, and all components. They are used to prevent the form from overwriting and will be ignored after parsing; they are used for tree structure nesting processing to achieve tree parsing of leaf node values; they are used for flattening when using variable arrays; and they define the JSON nested structure of parameters.

[0015] In terms of the above data types, the control identifiers include the number__ prefix, prop__ prefix, and / separator. The corresponding controls are number input, multiple-select box group, and all components, which are used to convert the string value of the input field into a number format, to convert the array structure into a property, and to be used with the part__ prefix to parse the included part.

[0016] In the above-mentioned business identification, the control identification includes the lic_ prefix, and the corresponding control is all components, which is used to filter the fields that do not need to be added to the license.

[0017] The process of converting the control value according to the control identifier in the above step 3 includes:

[0018] First, based on the part__ prefix, tree__ prefix, flat__ prefix, and number__ prefix, the array merging structure processing, tree structure nesting processing, variable list flattening processing, and string conversion to number are performed in turn;

[0019] Then, based on the prop__ prefix and the lic_ prefix, it parses the string into objects and filters the variables to be put into the license.

[0020] In the above step 4, the JSON format data is asymmetrically encrypted to form a license file.

[0021] A license generation system based on a custom form, the system specifically comprising:

[0022] The custom form module is used to form a custom license application form based on multiple built-in controls by dragging and dropping during the application form maintenance phase, and save and publish the form after configuring the control identification fields; in the license generation phase, fill in specific license information application parameters in the form according to business conditions;

[0023] The license parsing module is used to parse form data in a low-code manner, convert the control value according to the control identifier, and obtain JSON format data;

[0024] The license generation module is used to asymmetrically encrypt JSON format data to form an information-unreadable and secure license file for distribution.

[0025] The present invention has the following beneficial effects:

[0026] The present invention generates licenses based on custom forms, which can conveniently manage and flexibly configure license versions, thereby adapting to the business needs of different cloud vendors, different cloud types and versions with large differences in multi-cloud management scenarios. Combined with a low-code approach, it can greatly reduce the maintenance cost of license management, thereby helping multi-cloud management business to be carried out more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 The specific implementation process of the method of the present invention is as follows;

[0028] Figure 2 This is a schematic diagram of a custom form of the present invention;

[0029] Figure 3 This is the low-code processing logic for form data of the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0031] Although the steps in the present invention are arranged with numbers, they are not used to limit the order of the steps. Unless the order of the steps is clearly stated or the execution of a certain step requires other steps as a basis, the relative order of the steps can be adjusted. It is understood that the term "and / or" used in this article involves and covers any and all possible combinations of one or more of the associated listed items.

[0032] The main principle of the license generation method based on a custom form of the present invention is to use the custom form to solve the demand for flexible changes in the license content, and to parse the license content in a low-code manner (specifically, parsing the identification and naming of the form fields), thereby realizing flexible generation of the license. Figure 1 As shown, it specifically includes the following parts:

[0033] Step 1: In the application form maintenance phase, a custom license application form is formed by dragging and dropping multiple built-in controls, and the control identification fields are configured and the form is saved and published;

[0034] Step 2: In the license generation stage, fill in specific license information application parameters in the form according to business conditions;

[0035] Step 3: Parse the form data in a low-code manner, convert the control value according to the control identifier, and obtain JSON format data;

[0036] Step 4: Encrypt the JSON format data to form an information-unreadable and secure license file for distribution.

[0037] Accordingly, the present invention provides a license generation system based on a custom form, which specifically includes:

[0038] The custom form module is used to form a custom license application form based on multiple built-in controls by dragging and dropping during the application form maintenance phase, and save and publish the form after configuring the control identification fields; in the license generation phase, fill in specific license information application parameters in the form according to business conditions;

[0039] The license parsing module is used to parse form data in a low-code manner, convert the control value according to the control identifier, and obtain JSON format data;

[0040] The license generation module is used to asymmetrically encrypt JSON format data to form an information-unreadable and secure license file for distribution.

[0041] In the embodiment, steps 1 and 2 are implemented using a custom form module for configuring the license information application parameters. The module is mainly a front-end custom form, which includes multiple built-in controls for dragging and dropping to form an application form.

[0042] Step 3 is implemented using a license parsing module, which is used to parse form information and contains fixed conversion processing rules for each control format. After parsing, an object in JSON format can be obtained.

[0043] Step 4 is implemented using the license generation module, and the parsed JSON format data is asymmetrically encrypted to form an information-unreadable and secure license file for the distribution of licensing information.

[0044] In the specific implementation, it also includes a license verification module for reverse decoding of license information. The module contains asymmetric decryption logic processing, and obtains information in JSON format after parsing.

[0045] The license generation method implemented by the present invention based on the above model is as follows:

[0046] Step 1: Figure 2 As shown, the interface is designed through a custom form module, and controls that are easy for business personnel to understand are combined to fill in the application information for the license information;

[0047] Note that the identification field of the control needs to be specially named. For example, if it starts with lic__, it means that the content will be saved in the generated license file.

[0048] Step 2: The business personnel use the created form to apply and fill in specific business parameters.

[0049] Step 3: By parsing the identification information of each control in the form, the filled-in business data is processed accordingly to obtain data in JSON format.

[0050] In order to convert the data of the specified control into the standard JSON format, conversion processing is performed from three aspects: data structure, data type, and business identifier. The specific form component parsing and conversion rules are shown in Table 1:

[0051] Table 1

[0052]

[0053]

[0054] Step 4: The business data in JSON format is encrypted through the license generation module to form a license file for distribution.

[0055] like Figure 3 As shown, the low-code processing logic of form data is:

[0056] First, based on the part__ prefix, tree__ prefix, flat__ prefix, and number__ prefix, the array merging structure processing, tree structure nesting processing, variable list flattening processing, and string conversion to number are performed in turn;

[0057] Then, based on the prop__ prefix and the lic_ prefix, it parses the string into objects and filters the variables to be put into the license.

[0058] The glossary of terms in this article is explained as follows:

[0059] Custom form: is a method that allows developers or users to design and implement dynamic form interfaces based on specific business logic and user interaction requirements. Use HTML5 and CSS3 to build form structure and style, support multiple form controls, dynamically adjust form structure based on user input, and use JavaScript for front-end validation to ensure that data conforms to predefined formats and rules before submission.

[0060] License: A file in the software that stores the license information. It usually involves a purchase fee and specifies the rights and restrictions of the user when using the software. In the field of multi-cloud management, for example, the types of clouds allowed to be managed and the number of virtual machines opened, etc.

[0061] Low-code: is a software development approach that enables digital solutions and enterprise applications to be developed with minimal coding.

[0062] JSON: JavaScript Object Notation is a lightweight data exchange format. It is based on a subset of JavaScript, but is independent of language and platform. It is widely used in data transmission of Web applications and is easy for humans to read and write, and easy for machines to parse and generate.

[0063] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0064] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A license generation method based on a custom form, characterized in that: The method specifically comprises: Step 1: In the application form maintenance phase, a custom license application form is formed by dragging and dropping multiple built-in controls, and the control identification fields are configured and the form is saved and published; Step 2: In the license generation stage, fill in specific license information application parameters in the form according to business conditions; Step 3: Parse the form data in a low-code manner, convert the control value according to the control identifier, and obtain JSON format data; Step 4: Encrypt the JSON format data to form an information-unreadable and secure license file for distribution.

2. A license generation method based on a custom form according to claim 1, characterized in that: In step 3, the entered control data is converted accordingly by parsing the identification information of each control in the form from three aspects: data structure, data type, and business identification, to obtain data in JSON format.

3. A license generation method based on a custom form according to claim 2, characterized in that: In terms of data structure, control identifiers include part__ prefix, tree__ prefix, flat__ prefix, and | separator. The corresponding controls are multiple-select box group, tree control, design subtable, and all components. They are used to prevent form overwriting and will be ignored after parsing; they are used for tree structure nesting to achieve tree parsing of leaf node values; they are used for flattening when using variable arrays; and they define the JSON nested structure of parameters.

4. A method for generating a license based on a custom form according to claim 3, characterized in that: In terms of data types, control identifiers include the number__ prefix, prop__ prefix, and / separator. The corresponding controls are number input, multiple-select box group, and all components, which are used to convert the string value of the input field into a number format, to convert the array structure into a property, and to be used with the part__ prefix to parse the included part.

5. A method for generating a license based on a custom form according to claim 4, characterized in that: In terms of business identification, the control identification includes the lic_ prefix, and the corresponding control is all components, which are used to filter fields that do not need to be added to the license.

6. A method for generating a license based on a custom form according to claim 5, characterized in that: The process of converting the control value according to the control identifier in step 3 includes: First, based on the part__ prefix, tree__ prefix, flat__ prefix, and number__ prefix, the array merging structure processing, tree structure nesting processing, variable list flattening processing, and string conversion to number are performed in turn; Then, based on the prop__ prefix and the lic_ prefix, it parses the string into objects and filters the variables to be put into the license.

7. A method for generating a license based on a custom form according to claim 1, characterized in that: In step 4, the JSON format data is asymmetrically encrypted to form a license file.

8. A license generation system based on a custom form, characterized in that: The system specifically comprises: The custom form module is used to form a custom license application form based on multiple built-in controls by dragging and dropping during the application form maintenance phase, and save and publish the form after configuring the control identification fields; in the license generation phase, fill in specific license information application parameters in the form according to business conditions; The license parsing module is used to parse form data in a low-code manner, convert the control value according to the control identifier, and obtain JSON format data; The license generation module is used to asymmetrically encrypt JSON format data to form an information-unreadable and secure license file for distribution.