Unlock instant, AI-driven research and patent intelligence for your innovation.

Field-level authority control method based on streaming JSON analysis

A permission control, segment-level technology, applied in the field of information processing, can solve problems such as inability to satisfy field-level permission control, inability to process segmentation, and incomplete Json packets.

Pending Publication Date: 2022-02-08
上海金融期货信息技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the inability of the prior art to process segmented, fragmented, and incomplete Json messages, and the inability to meet the requirements of field-level authority control in message middleware, the present invention proposes a field-level JSON analysis based on streaming The authority control method adopts the stream processing method to parse and process Json segmented messages one by one, thereby significantly improving the efficiency of flow processing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Field-level authority control method based on streaming JSON analysis
  • Field-level authority control method based on streaming JSON analysis
  • Field-level authority control method based on streaming JSON analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] This embodiment involves the following business scenarios: if a user executes a business query, the sensitive field in the returned query result is parent, the field parent value type is a common string type, and the field value content needs to be masked, when a segmented Json message is received , the string content before processing is:

[0035] "parent": "zhangfei","birthday":"1988-10-10","favaritecolor":"red and blue","contact":{"telephone":"1379797778","description":";{ zhangsan}","originalName":"Zhang Er","remark":"13535363688:\"\"end","note":{"source":"dalian","target":"shenyang"}},

[0036] Such as image 3 As shown, it is a field-level permission control method based on streaming JSON parsing involved in this embodiment, and the specific steps include:

[0037] Step 1: The first character of the read string is a double quote, and there are no other characters before it, which is considered to be the beginning of the key.

[0038] Step 2: Start from the secon...

Embodiment 2

[0044] This embodiment involves the following business scenarios: a user executes a business query, and the sensitive field in the returned query result is contact, the field contact value type is an object type, the key value in the value content of contact remains visible, and the value value is replaced with *, so as to realize A mask for the value of this field.

[0045] When a segmented Json message is received, the content of the string before processing is:

[0046]"parent": "zhangfei","birthday":"1988-10-10","favaritecolor":"red and blue","contact":{"telephone":"1379797778","description":";{ zhangsan}","originalName":"Zhang Er","remark":"13535363688:\"\"end","note":{"source":"dalian","target":"shenyang"}},

[0047] Such as image 3 As shown, it is a field-level permission control method based on streaming JSON parsing involved in this embodiment, and the specific steps include:

[0048] Step 1: The first character of the read string is a double quote, and there are n...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a field-level authority control method based on streaming JSON (JavaScript Object Notation) analysis, which comprises the following steps of: after reading and receiving a segment of segmented Json message every time, initializing and summarizing historical information, and splicing the last first token character object of the previous segment of Json message, the last second intact token character object of the previous segment of Json message and the current segment of Json message to form a new segment of Json segmented message; starting processing from the first character of the new Json segmented message, carrying out circulation, and reading the next character in sequence every time until the character string end mark of the segment of message is read; and judging the types of the characters obtained in the step 3 and performing corresponding processing. According to the method, the Json segmented messages are analyzed and processed one by one in a streaming processing mode, so that the circulation processing efficiency is remarkably improved.

Description

technical field [0001] The present invention relates to a technology in the field of information processing, in particular to a field-level authority control method based on streaming JSON parsing. Background technique [0002] Since different industries have relatively high sensitivity requirements for user data, when executing business data queries for different users, in the returned query results, it is hoped that certain sensitive field values ​​in the returned results will be shielded according to different user permissions. exist figure 1 In the business scenario shown, a user needs to perform a business data query through the front-end client->message middleware->business service->database. Because the control at the database layer is more complicated, the control at the business service layer involves many business services Modification, so consider field-level permission control on the returned result data in the message middleware, and shield some sensitive...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/62G06F16/248H04L69/22
CPCG06F21/6254G06F16/248H04L69/22
Inventor 陆佳琦
Owner 上海金融期货信息技术有限公司