Method and device for realizing authentication of interface calling party in dynamic proxy mode

A technology of dynamic proxy and interface calling, applied in the field of government services, can solve problems such as poor maintenance and upgrades, code redundancy, etc., and achieve high reliability and high availability

Inactive Publication Date: 2021-12-10
INSPUR SOFTWARE CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But if you want to add the authentication function to each implementation class, you need to add multiple proxy classes, and each method in the proxy class needs to add the authentication function, which will undoubtedly make the code redundant and not easy to maintain and upgrade in the future

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
  • Method and device for realizing authentication of interface calling party in dynamic proxy mode
  • Method and device for realizing authentication of interface calling party in dynamic proxy mode
  • Method and device for realizing authentication of interface calling party in dynamic proxy mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0039] In this method of implementing interface caller authentication in the dynamic proxy mode, when the external system and the government application system connect business data, the government service application system first authenticates the visiting external system user, and if the authentication is successful, the external system passes throug...

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 particularly relates to a method and a device for realizing authentication of an interface calling party in a dynamic proxy mode. According to the method and the device for realizing authentication of the interface calling party in the dynamic proxy mode. The method is characterized by firstly defining a service interface and an implementation class to realize the service interface, and rewriting and realizing a business logic method; then, defining a section abstract class, and rewriting business logic methods of starting, ending, exception, front enhancement and rear enhancement according to needs when the section abstract class is defined; creating a section class, configuring an entry point and enhancement in the section class, and verifying the identity of the caller; and finally, testing and generating a dynamic agent class. According to the method and the device for realizing authentication of the interface calling party in the dynamic proxy mode, non-intrusive code expansion is realized, the method can be enhanced under the condition of not modifying a source code, and meanwhile, proxy logic and business logic are mutually independent and are not coupled so that high reliability and high availability of system use and service provision are ensured.

Description

technical field [0001] The invention relates to the technical field of government affairs services, in particular to a method and device for realizing authentication of an interface caller in a dynamic proxy mode. Background technique [0002] Add different authentication logic for the service interface API, currently using static proxy. The proxy mode in Java can help the principal complete some preparatory work and post-care work, but the core business logic is still completed by the principal. The proxy class only needs to focus on its own core code, and the rest of the work can be handed over to the proxy class, making the code more concise and the division of labor clear. [0003] But static proxies also have their own disadvantages: [0004] First, the proxy class and the delegate class implement the same service interface API, and the proxy class implements the same method through the delegate class, so there is a lot of code duplication. If a method is added to th...

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/62G06F21/60G06F9/54
CPCG06F21/6218G06F21/604G06F9/548G06F2221/2141
Inventor 丁福祥
Owner INSPUR SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products