CN108243054A - The Application Programming Interface of gateway calls control method and device - Google Patents
The Application Programming Interface of gateway calls control method and device Download PDFInfo
- Publication number
- CN108243054A CN108243054A CN201611229438.2A CN201611229438A CN108243054A CN 108243054 A CN108243054 A CN 108243054A CN 201611229438 A CN201611229438 A CN 201611229438A CN 108243054 A CN108243054 A CN 108243054A
- Authority
- CN
- China
- Prior art keywords
- api
- plug
- unit
- gateway
- installation instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
A kind of Application Programming Interface the embodiment of the invention discloses gateway calls control method and device, which is characterized in that including:Configuration includes the API lists of at least one Application Programming Interface API;According to the API lists, determine whether plug-in unit can call specified API.By the way that corresponding API lists are configured in a gateway, gateway can control the calling of API so as to fulfill plug-in unit according to API single control plug-in units to the calling of specified API.
Description
Technical field
The present invention relates to the Application Programming Interface of network technique field more particularly to a kind of gateway to call control method and dress
It puts.
Background technology
Passive optical network (Passive Optical Network, PON) as shown in Figure 1, including:By the light of local side apparatus
Line terminal (Optical Line Terminal, OLT), optical network unit (the Optical Network of ustomer premises access equipment
Unit, ONU) and Optical Distribution Network (Optical Distribution Network, ODN).It is not contained in ODN in PON
Any active electronic device and electronic power supply are all made of the Passive Optical Components such as optical fiber and light point/combiner.Divide in Fig. 1
Light device includes level-one fiber distribution box and two level fiber distribution box.
In pon, ONU serves as the gateway accessed for terminal device, commonly referred to as intelligent gateway.For example, the intelligent network
Pass is fiber-to-the-home (Fiber To The Home, FTTH) the type ONU equipment for including gateway function, is realized in home network
Interconnection between portion's terminal and the communication with external network.Intelligent gateway can by various Network Side Interfaces and access node/
Access net is connected, and pass through the adapting appts such as user side interface or set-top box and be connected with subscriber terminal equipment, while can pass through peace
The modes such as dress APP plug-in units are interacted with upper platform provides value-added functionality.
It is illustrated in figure 2 based on open service gateway initiative agreement (Open Service Gateway Initiative, OSGi)
Open platform framework, the Application Programming Interface (Application that is provided based on intelligent gateway of developer is provided
Programming Interface, API) development and application plug-in unit, application plug-in can be pre- according to network and plan of operation by operator
Dress is voluntarily selected to install after intelligent gateway puts dress by user.Application plug-in can be interacted with relevant network side platform,
Realize the flexible expansion of network and business function.
Invention content
In view of this, an embodiment of the present invention is intended to provide a kind of Application Programming Interface of gateway to call control method and dress
It puts, to carry out permission control to the calling in the API in gateway.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
First aspect of the embodiment of the present invention provides a kind of Application Programming Interface of gateway and calls control method, including:
Configuration includes the API lists of at least one Application Programming Interface API;
According to the API lists, determine whether plug-in unit can call specified API.
Based on said program, the method further includes:
Receive plug-in unit installation instruction and the API permission set of plug-in unit simultaneously from management service system, wherein, the installation refers to
The installation for being used to indicate the plug-in unit is enabled, the API permissions set includes:The plug-in unit allows the API called;
It is described that the API lists for including at least one Application Programming Interface API are configured, including:
According to the API permissions set, the API lists are configured.
Based on said program, the method further includes:
If the API authority sets are combined into sky, the plug-in unit installation instruction is shielded;
If the API permissions set is not sky, the plug-in unit installation instruction is responded.
Based on said program, the method further includes:
Receive plug-in unit installation instruction and the API permission set of plug-in unit respectively from management service system, wherein, the API power
Limit collection is combined into sky or the API for allowing to call including at least a plug-in unit.
Based on said program, the method further include it is following at least one:
If receiving the API permissions set after plug-in unit installation and the API authority sets being combined into sky, forbid
The mounted plug-in unit calls API;
If receiving the API permissions set after plug-in unit installation and the API authority sets being combined into sky, delete
The mounted plug-in unit;
If receiving the API permissions set before plug-in unit installation and the API authority sets being combined into sky, forbid
The plug-in unit installation.
Based on said program, the method further includes:
If the plug-in unit installation instruction is first received than the API permissions set, etc. the API authority sets to be received
It closes;
According to the API permissions set of reception, it is determined whether respond the plug-in unit installation instruction.
Second aspect of the embodiment of the present invention provides a kind of Application Programming Interface of gateway and calls control method, including:
Receive the plug-in unit mount request that user terminal is sent;
Based on the plug-in unit mount request, the Application Programming Interface API power for allowing calling of the plug-in unit of request installation is obtained
Limit set;
The plug-in unit installation instruction of the plug-in unit and the API permissions set are sent to gateway.
It is described that the plug-in unit installation instruction of the plug-in unit and the API permissions set are sent to gateway based on said program,
Including:
The plug-in unit installation instruction and the API permissions set are sent to the gateway simultaneously;
Or,
The plug-in unit installation instruction and the API permissions set are sent to the gateway respectively.
The third aspect of the embodiment of the present invention provides a kind of Application Programming Interface of gateway and calls control device, applied to gateway
In, including:
Dispensing unit, for the API lists for including at least one Application Programming Interface API to be configured;
Determination unit, for according to the API lists, determining whether plug-in unit can call specified API.
Based on said program, described device further includes:
First receiving unit, for receiving the API authority sets of plug-in unit installation instruction and plug-in unit simultaneously from management service system
It closes, wherein, the installation instruction is used to indicate the installation of the plug-in unit, and the API permissions set includes:The plug-in unit allows to adjust
API;
The dispensing unit, specifically for according to the API permissions set, the API lists are configured.
Based on said program, described device further includes:
Installation unit if being combined into sky specifically for the API authority sets, shields the plug-in unit installation instruction;It is if described
API permissions set is not sky, then responds the plug-in unit installation instruction.
Based on said program, described device further includes:
First receiving unit, for receiving the API authority sets of plug-in unit installation instruction and plug-in unit respectively from management service system
It closes, wherein, the API authority sets are combined into sky or the API for allowing to call including at least a plug-in unit.
Based on said program, described device further includes:
Installation unit, if for receiving the API permissions set and the API authority sets after plug-in unit installation
Sky is combined into, then the mounted plug-in unit is forbidden to call API;And/or if receive the API after plug-in unit installation
The permission set and API authority sets are combined into sky, then delete the mounted plug-in unit;And/or if pacify in the plug-in unit
The API permissions set is received before dress and the API authority sets are combined into sky, then the plug-in unit is forbidden to install.
Based on said program, described device further includes:
Installation unit, if first being received than the API permissions set specifically for the plug-in unit installation instruction, etc. waiting
Receive the API permissions set;According to the API permissions set of reception, it is determined whether respond the plug-in unit installation instruction.
Fourth aspect of the embodiment of the present invention provides a kind of Application Programming Interface of gateway and calls control device, including:
Second receiving unit, for receiving the plug-in unit mount request of user terminal transmission;
Acquiring unit for being based on the plug-in unit mount request, obtains the application for allowing to call of the plug-in unit of request installation
Programming interface API permission set;
Transmitting element, for the plug-in unit installation instruction of the plug-in unit and the API permissions set to be sent to gateway.
Based on said program, the transmitting element, specifically for simultaneously by the plug-in unit installation instruction and the API permissions
Set is sent to the gateway;Or, the plug-in unit installation instruction and the API permissions set are sent to the gateway respectively.
The Application Programming Interface of gateway provided in an embodiment of the present invention calls control method and device, can be configured in a gateway
The API lists of plug-in unit have been installed, the calling of the specified API of plug-in request calling is then determined according to API lists, so as to easy to be real
Showed plug-in unit to control the permission of API each in gateway, avoid without API whether the control that can be called, arbitrarily calling causes
API Calls risk the problems such as.
Description of the drawings
Fig. 1 is a kind of structure diagram of PON network;
Fig. 2 is a kind of structure diagram of ONU;
Fig. 3 is that the Application Programming Interface of the first gateway provided in an embodiment of the present invention calls the flow signal of control method
Figure;
Fig. 4 is that the Application Programming Interface of second of gateway provided in an embodiment of the present invention calls the flow signal of control method
Figure;
Fig. 5 is that the Application Programming Interface of the first gateway provided in an embodiment of the present invention calls the structural representation of control device
Figure;
Fig. 6 is that the Application Programming Interface of second of gateway provided in an embodiment of the present invention calls the structural representation of control device
Figure;
Fig. 7 is that the Application Programming Interface of the third gateway provided in an embodiment of the present invention calls the flow signal of control method
Figure;
Fig. 8 is that the Application Programming Interface of the 4th kind of gateway provided in an embodiment of the present invention calls the flow signal of control method
Figure;.
Specific embodiment
Technical scheme of the present invention is further elaborated below in conjunction with Figure of description and specific embodiment.
As shown in figure 3, the Application Programming Interface the present embodiment provides a kind of gateway calls control method, including:
Step S110:Configuration includes the API lists of at least one Application Programming Interface API;
Step S120:According to the API lists, determine whether plug-in unit can call specified API.
Control method described in the present embodiment can be applied to the information processing method in gateway.The gateway can be intelligence
Gateway.Here intelligent gateway can be earlier figures 1 and gateway shown in Fig. 2.The intelligent gateway upstream is connect with ONU, under
Trip is connect with smart machine.The smart machine can be PC (Person Computer, PC), TV
The smart machines such as (Television, TV) or intelligent appliance.
The gateway can be installed there are many plug-in unit in the present embodiment.The API lists can be white name in the present embodiment
List and/or blacklist.Stored in the white list is that plug-in unit allows the API called marks;The blacklist is the plug-in unit
Forbid the API called marks.
The step S110 may include:
It is identified according to the API of API that the plug-in unit allows to call, generates the white list, wherein, the white list includes
The plug-in unit allows the API marks of the API called;
Or,
The API of API all in the gateway is identified, removing the plug-in unit allows the API of the API called to identify it
Afterwards, the blacklist is generated, wherein, the blacklist includes the API marks that the plug-in unit forbids the API called.
The step S110's it is preferable that, when plug-in unit allow call API be more than do not allow call API when, then
Blacklist is established, if plug-in unit allows the API called not allow the API called not more than, establishes white list.It can subtract in this way
Few matching times that in control is called, API is identified.
In the step s 120, if receive the call request of plug-in unit calling API, with request call in call request
API's is identified as inquiry foundation, and inquiry is located at the API marks in white list, if the API marks of request call are located at the white name
Dan Zhong then allows the plug-in unit to call the API, then the call request is sent to corresponding api interface, so that corresponding
API is called for plug-in unit.If the API of request call is not located in the white list, the plug-in unit is forbidden to call corresponding API.
In the step s 120, if receive the call request of plug-in unit calling API, with request call in call request
API's is identified as inquiry foundation, and inquiry is located at the API marks in blacklist, if the API marks of request call are positioned at described black
In list, then the plug-in unit is allowed to call the API, then the call request is sent to corresponding api interface, so that corresponding
API for plug-in unit call.If the API marks of request call are located in blacklist, forbid the API Calls of the plug-in unit.
In some embodiments, the method further includes:
Receive plug-in unit installation instruction and the API permission set of plug-in unit simultaneously from management service system, wherein, the installation refers to
The installation for being used to indicate the plug-in unit is enabled, the API permissions set includes:The plug-in unit allows the API called;
The step S110 may include:
According to the API permissions set, the API lists are configured.
The management service system can send the API of plug-in unit installation instruction and plug-in unit to gateway simultaneously in the present embodiment
Permission set.The API lists are configured in API permission set according to reception by the step S110.
In some embodiments, the method further includes:
If the API authority sets are combined into sky, the plug-in unit installation instruction is shielded;
If the API permissions set is not sky, the plug-in unit installation instruction is responded.
The shielding plug-in unit installation instruction in the present embodiment, to be not responding to the plug-in unit installation instruction, to realize
The plug-in unit is forbidden installing.If API permissions set is not sky, responds the plug-in unit installation instruction and include:The plug-in unit is installed.Peace
Filling the plug-in unit may include:The legal plug-in unit is downloaded from network.
Pass through the shielding of plug-in unit installation instruction, it is possible to reduce the installation of unnecessary plug-in unit, so as to reduce unnecessary installation
Plug-in unit occupy gateway process resource, to promote effective use of resource in gateway.
The step S110 may include:When the API authority sets are combined into sky, then the API lists of the plug-in unit are shielded
Configuration.The API lists stored in the gateway can be reduced in this way.
In some embodiments, the method further includes:
Receive plug-in unit installation instruction and the API permission set of plug-in unit respectively from management service system, wherein, the API power
Limit collection is combined into sky or the API for allowing to call including at least a plug-in unit.
At this point, plug-in unit installation instruction and API permission set receive respectively, it is likely that plug-in unit installation instruction is prior to institute
It states API permission set and reaches the gateway, then the gateway may be downloaded simultaneously after plug-in unit installation instruction is received at this time
Plug-in unit is installed.
In some embodiments, the method further includes:
If receiving the API permissions set after plug-in unit installation and the API authority sets being combined into sky, forbid
The mounted plug-in unit calls API.
In further embodiments, the method further includes:
If receiving the API permissions set before plug-in unit installation and the API authority sets being combined into sky, forbid
The plug-in unit installation.Forbid installing by plug-in unit, it is possible to reduce the installation of unnecessary plug-in unit.
In further embodiments, the method may include:
If receiving the API permissions set after plug-in unit installation and the API authority sets being combined into sky, delete
The mounted plug-in unit.
If whether it is sky regardless of the API permissions set at this point, receiving the API permissions set, it can be corresponding
The API lists are configured.Certainly, if the API authority sets are combined into sky, if the plug-in unit has been installed, the method may also include:
The mounted plug-in unit is deleted, to reduce the various process resources such as storage resource of plug-in unit occupancy in gateway.
In further embodiments, the method further includes:
If the plug-in unit installation instruction is first received than the API permissions set, etc. the API authority sets to be received
It closes;
According to the API permissions set of reception, it is determined whether respond the plug-in unit installation instruction.
If plug-in unit installation instruction reaches gateway prior to API permission set, gateway waits for API permission set, if API permissions
Collection is combined into sky, then shields the response of the plug-in unit installation instruction, if API permissions set is not sky, responds plug-in unit installation instruction,
To carry out the installation of corresponding plug-in unit.In this case, just reduce the installation and/or deletion of unnecessary plug-in unit.
The plug-in unit installation instruction is the mount request sent based on user equipment in the present embodiment, by management service system
System is handed down to gateway.
As shown in figure 4, the Application Programming Interface the present embodiment provides a kind of gateway calls control method, including:
Step S210:Receive the plug-in unit mount request that user terminal is sent;
Step S220:Based on the plug-in unit mount request, the application programming for allowing to call of the plug-in unit of request installation is obtained
Interface API permission set;
Step S230:The plug-in unit installation instruction of the plug-in unit and the API permissions set are sent to gateway.
Control method is called described in the present embodiment, for the information processing method being applied in management service system.In this reality
It applies a step S210 and receives plug-in unit mount request, receiving plug-in unit installation instruction, when meeting preset condition, can send described
Plug-in unit installation instruction, and determine the API permission set of the plug-in unit of request installation.Here preset condition may include:Judge current
Whether the plug-in unit of request is to have installed plug-in unit, if having installed obviously without repeating to install and/or judge when whether anterior plug-in is taboo
The illegal plug-in unit only installed, if being clearly not allow installation etc..The preset condition is also very much, and just differ a citing herein
.
Here it may be to be stored in advance in management service system that each plug-in unit, which allows to call which API of gateway,
Or from human-computer interaction interface receive or from other equipment receive.The step S220 may include:It is installed based on plug-in unit
The plug-in unit mark carried in request, inquires pre-stored plug-in unit and the correspondence of API marks, determines that the plug-in unit allows
The API marks of the API of calling when the plug-in unit allows the number of the API called to be not 0, extract the API in the correspondence
Mark, generates the API permissions set.
It is sent to gateway when can be by plug-in unit installation instruction and API authority set contracts in step S230 or is sent respectively to
Gateway.
As shown in figure 5, the Application Programming Interface the present embodiment provides a kind of gateway calls control device, applied to gateway
In, including:
Dispensing unit 110, for the API lists for including at least one Application Programming Interface API to be configured;
Determination unit 120, for according to the API lists, determining whether plug-in unit can call specified API.
Here gateway can be intelligent gateway as shown in Figure 1 or 2, and the intelligent gateway can be to include the ONU of ONU to set
It is standby.
The dispensing unit 110 and the determination unit 120 can all correspond to processor or processing circuit, the processor
Can be central processing unit, microprocessor, digital signal processor, programmable array or application processor etc..The processing circuit
It may include application-specific integrated circuit.The processor or processing circuit can realize API lists by the execution of predetermined instruction
Configuration and determining plug-in unit whether can call specified API.Here specified API can be the API that plug-in request calls.
The control device in the present embodiment, can be corresponding plug-in unit to be controlled to call by the configuration of API lists
API controls the permission of API so as to fulfill to plug-in unit, avoid it is uncontrolled caused by gateway the confusion of API Calls and with
Meaning calls security risk problem caused by API.
In some embodiments, described device further includes:
First receiving unit, for receiving the API authority sets of plug-in unit installation instruction and plug-in unit simultaneously from management service system
It closes, wherein, the installation instruction is used to indicate the installation of the plug-in unit, and the API permissions set includes:The plug-in unit allows to adjust
API;
The dispensing unit 110, specifically for according to the API permissions set, the API lists are configured.
First receiving unit, may correspond to the communication interface of the gateway, the communication interface and management service system
Connection can receive the API permissions set from management service system.Dispensing unit, specifically for being combined according to API permissions,
Provisioning API list.
In some embodiments, described device further includes:
Installation unit if being combined into sky specifically for the API authority sets, shields the plug-in unit installation instruction;It is if described
API permissions set is not sky, then responds the plug-in unit installation instruction.
Here installation unit equally may correspond to processor or processing circuit, available for according to being wrapped in API permission set
Whether the number or API permissions set for including the API marks of API are empty, shield plug-in unit installation instruction, here be shielding for not ringing
Answer the API permissions set.
In further embodiments, described device further includes:
First receiving unit, for receiving the API authority sets of plug-in unit installation instruction and plug-in unit respectively from management service system
It closes, wherein, the API authority sets are combined into sky or the API for allowing to call including at least a plug-in unit.The plug-in unit installation refers to
It enables and synchronous can be received with API permissions set, can also be received respectively, in the present embodiment the plug-in unit installation instruction and API
Permission set receives respectively.
In some embodiments, described device further includes:
Installation unit, if for receiving the API permissions set and the API authority sets after plug-in unit installation
Sky is combined into, then the mounted plug-in unit is forbidden to call API;And/or if receive the API after plug-in unit installation
The permission set and API authority sets are combined into sky, then delete the mounted plug-in unit;And/or if pacify in the plug-in unit
The API permissions set is received before dress and the API authority sets are combined into sky, then the plug-in unit is forbidden to install.
The installation unit in the present embodiment is understood and further determine whether to install the plug-in unit according to API permission set,
And/or delete the plug-in unit.
In some embodiments, described device further includes:
Installation unit, if first being received than the API permissions set specifically for the plug-in unit installation instruction, etc. waiting
Receive the API permissions set;According to the API permissions set of reception, it is determined whether respond the plug-in unit installation instruction.
The installation unit in the present embodiment, in order to reduce unnecessary plug-in unit installation and delete, if API permission set
And plug-in unit installation instruction if first receiving plug-in unit installation instruction, can wait API permissions set to be received when receiving respectively, further according to
Whether API permissions set is empty, it is determined whether installation plug-in unit.
In short, the installation unit either receives the plug-in unit installation instruction and API permissions set or separates simultaneously
Receive, either plug-in unit installation instruction first receive or API permission set first receive, can all be determined according to API permission set be
The no response plug-in unit installation instruction is deleted so as to reduce unnecessary installation and/or plug-in unit.
As shown in fig. 6, the Application Programming Interface the present embodiment provides a kind of gateway calls control device, including:
Second receiving unit 210, for receiving the plug-in unit mount request of user terminal transmission;
Acquiring unit 220, for being based on the plug-in unit mount request, obtain the plug-in unit that request is installed allows answering for calling
With programming interface API permission set;
Transmitting element 230, for the plug-in unit installation instruction of the plug-in unit and the API permissions set to be sent to gateway.
Described device can be the information processing unit applied to management service system in the present embodiment.Described second receives
Unit 210 may correspond to communication interface, will be connect with the user equipment, and the user equipment can be mobile phone, tablet or TV
The various terminal equipments such as machine.
The acquiring unit 220 may correspond to processor or processing circuit, and the structure of the processor or processing circuit can
Referring to previous embodiment, determine that plug-in unit allows the API permission set called.
The transmitting element 230, may correspond to communication interface, is connect with gateway, for example, with the intelligent gateway where ONU
It is attached, for sending information to the intelligent gateway.
In some embodiments, the transmitting element 230, specifically for simultaneously by the plug-in unit installation instruction and described
API permission set is sent to the gateway;Or, the plug-in unit installation instruction and the API permissions set are sent to institute respectively
State gateway.
API permissions set and the plug-in unit installation instruction in the present embodiment, can send simultaneously to send respectively.
During concrete application, other management other than the installation management of the management service system and installation management are by different
It Implement of Function Module or handles respectively, then at this point, in order to compatible with existing management service system, the plug-in unit peace
Instruction and the API permissions set are filled by separately send.If the management service system all carries out concentrate tube to all functions
Reason or unified management, then the API permissions set and plug-in unit installation instruction, will be sent to gateway simultaneously, be weighed for gateway according to API
Limit set determines whether to install plug-in unit.
Several specific examples are provided below in conjunction with above-described embodiment:
Example one:
This example provides a kind of method for realizing intelligent gateway plug-in unit API rights managements, relates generally to user terminal, manages
Service system, the pin function module three parts of intelligent gateway.User sends out plug-in unit mount request, management clothes by user terminal
API permissions set necessary to the plug-in unit is sent to intelligent gateway by business system after receiving request, and then intelligent gateway is accordingly
Corresponding white list is generated for plug-in unit.After plug-in unit is successfully installed, the API permissions in white list can only be called.
Increasing plug-in unit in intelligent gateway pin function module newly allows the white list of API permissions used.It is inserted in intelligent gateway
White list is added in part function module, the managed service system management of the white list, plug-in unit can only be called in write-in white list
API permissions.If status inquiry, installation, update, unloading of management service system collection plug-in unit etc. operate in one, then white list
It binds and installs with plug-in unit.At this point, if white list is sky, plug-in unit can not be installed.If the plug-in unit installation management of management service system
It is detached with other management, then white list generates after plug-in unit installation, if white list is sky, plug-in unit cannot call any
API permissions.
For example, the operations such as status inquiry, installation, update, unloading, startup, termination, resetting of management service system collection plug-in unit
In one, download will be bound from management server for generating the API permissions set of white list and plug-in unit installation instruction or plug-in unit.
Idiographic flow is as follows:Subscriber terminal equipment sends out plug-in unit mount request, and management service system judges that this is inserted after the request is received
Whether part is needed for the user, if it is judged that being yes, then just issues the white name that corresponding API authority sets are bonded to plug-in unit
Single, plug-in unit is allowed to install, and other API permissions in white list can be called;If management service system judges
The user does not need to install this plug-in unit, then does not issue API permission set, and authority of plug-in unit white list is sky at this time, and plug-in unit cannot be by
Installation.
For another example management service system is divided into two parts, a part carries out installation management, and another part carries out other management.
At this point, API permissions set is not generated with plug-in unit installation, the two separation.Idiographic flow is as follows:Subscriber terminal equipment sends out slotting
Part mount request, management service system issue plug-in unit installation instruction after the request is received, and plug-in unit is allowed to pacify in intelligent gateway
Dress.Hereafter, management service system judges the API permission types that the plug-in unit can call, and sends corresponding API authority sets and be bonded to
Intelligent gateway, intelligent gateway accordingly generate the white list of corresponding API permissions.Plug-in unit can call the API permissions in white list, if
Management service system does not issue API permission types, and white list is sky, then plug-in unit cannot call any API permissions.
Example two:
As shown in fig. 7, this example provides a kind of calling control method of API, including:
Step S1:User terminal sends plug-in unit mount request to management service system;
Step S2:Management service system judges whether intelligent gateway has permission and installs the plug-in unit, if entering step S3, if
It is no to enter step S5;Here the permission that judges whether there is is installed, including:Judge whether the hardware of the intelligent gateway supports the plug-in unit
Operation, judge intelligent gateway operation account whether pay and/or have subscribed the corresponding function of the plug-in unit, judge intelligent gateway
In whether the similar plug-in unit of the plug-in unit has been installed, do not allow the plug-in unit is installed again based on signing agreement;Here judgement intelligent network
Whether pass has the right to be limited to the one kind for meeting aforementioned preset condition, just no longer schematically illustrates one by one herein.
Step S3:It issues API authority sets and is bonded to intelligent gateway;
Step S4:Intelligent gateway installs plug-in unit, based on the symphysis of API authority sets into API lists;
Step S5:API permission set is not issued;
Step S6:Intelligent gateway uneasiness plugs part.
Example three:
As described in Figure 8, this example provides a kind of calling control method of API, including:
Step S11:User terminal sends plug-in unit mount request to management service system;
Step S12:The installation management module of management service system issues plug-in unit installation instruction to intelligent gateway;
Step S13:Intelligent gateway installs plug-in unit after the plug-in unit installation instruction is received;
Step S14::Other management modules of management service system issue API permissions set to intelligent gateway;
Step S15:Intelligent gateway creates API lists after API permission set is received;
Step S16:According to API unitary call API permissions.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, only
A kind of division of logic function can have other dividing mode, such as in actual implementation:Multiple units or component can combine or
It is desirably integrated into another system or some features can be ignored or does not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, be shown as unit
The component shown can be or may not be physical unit, you can be located at a place, can also be distributed to multiple network lists
In member;Part or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing module, also may be used
To be each unit individually as a unit, can also two or more units integrate in a unit;It is above-mentioned
The form that hardware had both may be used in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and aforementioned program can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is performed;And aforementioned storage medium includes:It is movable storage device, read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (16)
1. a kind of Application Programming Interface of gateway calls control method, which is characterized in that including:
Configuration includes the API lists of at least one Application Programming Interface API;
According to the API lists, determine whether plug-in unit can call specified API.
2. according to the method described in claim 1, it is characterized in that,
The method further includes:
Receive plug-in unit installation instruction and the API permission set of plug-in unit simultaneously from management service system, wherein, the installation instruction is used
In the installation for indicating the plug-in unit, the API permissions set includes:The plug-in unit allows the API called;
It is described that the API lists for including at least one Application Programming Interface API are configured, including:
According to the API permissions set, the API lists are configured.
3. according to the method described in claim 2, it is characterized in that,
The method further includes:
If the API authority sets are combined into sky, the plug-in unit installation instruction is shielded;
If the API permissions set is not sky, the plug-in unit installation instruction is responded.
4. according to the method described in claim 1, it is characterized in that,
The method further includes:
Receive plug-in unit installation instruction and the API permission set of plug-in unit respectively from management service system, wherein, the API authority sets
It is combined into sky or the API for allowing to call including at least a plug-in unit.
5. according to the method described in claim 4, it is characterized in that,
The method further include it is following at least one:
If receiving the API permissions set after plug-in unit installation and the API authority sets being combined into sky, forbid having pacified
The plug-in unit of dress calls API;
If receiving the API permissions set after plug-in unit installation and the API authority sets are combined into sky, delete described in
The mounted plug-in unit;
If receiving the API permissions set before plug-in unit installation and the API authority sets being combined into sky, forbid described
Plug-in unit is installed.
6. according to the method described in claim 4, it is characterized in that,
The method further includes:
If the plug-in unit installation instruction is first received than the API permissions set, etc. the API permissions set to be received;
According to the API permissions set of reception, it is determined whether respond the plug-in unit installation instruction.
7. a kind of Application Programming Interface of gateway calls control method, which is characterized in that including:
Receive the plug-in unit mount request that user terminal is sent;
Based on the plug-in unit mount request, the Application Programming Interface API authority sets for allowing to call of the plug-in unit of request installation are obtained
It closes;
The plug-in unit installation instruction of the plug-in unit and the API permissions set are sent to gateway.
8. the method according to the description of claim 7 is characterized in that
It is described that the plug-in unit installation instruction of the plug-in unit and the API permissions set are sent to gateway, including:
The plug-in unit installation instruction and the API permissions set are sent to the gateway simultaneously;
Or,
The plug-in unit installation instruction and the API permissions set are sent to the gateway respectively.
9. the Application Programming Interface of gateway a kind of calls control device, which is characterized in that applied in gateway, including:
Dispensing unit, for the API lists for including at least one Application Programming Interface API to be configured;
Determination unit, for according to the API lists, determining whether plug-in unit can call specified API.
10. device according to claim 9, which is characterized in that
Described device further includes:
First receiving unit, for receiving the API permission set of plug-in unit installation instruction and plug-in unit simultaneously from management service system,
In, the installation instruction is used to indicate the installation of the plug-in unit, and the API permissions set includes:The plug-in unit allows what is called
API;
The dispensing unit, specifically for according to the API permissions set, the API lists are configured.
11. device according to claim 10, which is characterized in that
Described device further includes:
Installation unit if being combined into sky specifically for the API authority sets, shields the plug-in unit installation instruction;If the API power
Limit set is not sky, then responds the plug-in unit installation instruction.
12. device according to claim 9, which is characterized in that
Described device further includes:
First receiving unit, for receiving the API permission set of plug-in unit installation instruction and plug-in unit respectively from management service system,
In, the API authority sets are combined into sky or the API for allowing to call including at least a plug-in unit.
13. device according to claim 12, which is characterized in that
Described device further includes:
Installation unit, if for receiving the API permissions set and the API authority sets are combined into after plug-in unit installation
Sky then forbids the mounted plug-in unit to call API;And/or if receive the API permissions after plug-in unit installation
Gather and the API authority sets are combined into sky, then delete the mounted plug-in unit;And/or if it is installed in the plug-in unit
Before receive the API permissions set and the API authority sets are combined into sky, then the plug-in unit is forbidden to install.
14. device according to claim 9, which is characterized in that
Described device further includes:
Installation unit, if first being received than the API permissions set specifically for the plug-in unit installation instruction, etc. institute to be received
State API permission set;According to the API permissions set of reception, it is determined whether respond the plug-in unit installation instruction.
15. a kind of Application Programming Interface of gateway calls control device, which is characterized in that including:
Second receiving unit, for receiving the plug-in unit mount request of user terminal transmission;
Acquiring unit for being based on the plug-in unit mount request, obtains the application programming for allowing to call of the plug-in unit of request installation
Interface API permission set;
Transmitting element, for the plug-in unit installation instruction of the plug-in unit and the API permissions set to be sent to gateway.
16. device according to claim 15, which is characterized in that
The transmitting element, specifically for the plug-in unit installation instruction and the API permissions set are sent to the net simultaneously
It closes;Or, the plug-in unit installation instruction and the API permissions set are sent to the gateway respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611229438.2A CN108243054B (en) | 2016-12-27 | 2016-12-27 | Application programming interface calling control method and device of gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611229438.2A CN108243054B (en) | 2016-12-27 | 2016-12-27 | Application programming interface calling control method and device of gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108243054A true CN108243054A (en) | 2018-07-03 |
CN108243054B CN108243054B (en) | 2020-07-07 |
Family
ID=62702946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611229438.2A Active CN108243054B (en) | 2016-12-27 | 2016-12-27 | Application programming interface calling control method and device of gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108243054B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358880A (en) * | 2018-10-18 | 2019-02-19 | 行吟信息科技(上海)有限公司 | A kind of universal gateway configuration method and device |
CN113596151A (en) * | 2021-07-28 | 2021-11-02 | 杭州数梦工场科技有限公司 | Plug-in management method and device, and data processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101411146A (en) * | 2006-05-31 | 2009-04-15 | 三星电子株式会社 | Method for consuming heterogenous services on heterogeneous devices using script plugins |
US20100254375A1 (en) * | 2009-03-30 | 2010-10-07 | Martin Feuerhahn | INSTANT INTERNET BROWSER BASED VoIP SYSTEM |
US20130073395A1 (en) * | 2011-09-16 | 2013-03-21 | Skype Limited | Advertisement funded telephone calls |
CN103019837A (en) * | 2011-09-27 | 2013-04-03 | 中国移动通信集团公司 | Resource scheduling method, device and terminal equipment |
CN103514000A (en) * | 2012-06-26 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Browser plug-in installation method and device |
CN103984547A (en) * | 2014-05-14 | 2014-08-13 | 上海上讯信息技术股份有限公司 | Form validation method and system |
-
2016
- 2016-12-27 CN CN201611229438.2A patent/CN108243054B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101411146A (en) * | 2006-05-31 | 2009-04-15 | 三星电子株式会社 | Method for consuming heterogenous services on heterogeneous devices using script plugins |
US20100254375A1 (en) * | 2009-03-30 | 2010-10-07 | Martin Feuerhahn | INSTANT INTERNET BROWSER BASED VoIP SYSTEM |
US20130073395A1 (en) * | 2011-09-16 | 2013-03-21 | Skype Limited | Advertisement funded telephone calls |
CN103019837A (en) * | 2011-09-27 | 2013-04-03 | 中国移动通信集团公司 | Resource scheduling method, device and terminal equipment |
CN103514000A (en) * | 2012-06-26 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Browser plug-in installation method and device |
CN103984547A (en) * | 2014-05-14 | 2014-08-13 | 上海上讯信息技术股份有限公司 | Form validation method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358880A (en) * | 2018-10-18 | 2019-02-19 | 行吟信息科技(上海)有限公司 | A kind of universal gateway configuration method and device |
CN113596151A (en) * | 2021-07-28 | 2021-11-02 | 杭州数梦工场科技有限公司 | Plug-in management method and device, and data processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108243054B (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3073777B1 (en) | Management method for embedded universal integrated circuit card and related device | |
EP3158686B1 (en) | System and method for virtual network function policy management | |
WO2016003142A1 (en) | Method and apparatus for selecting profile of terminal in mobile network | |
CN108029011A (en) | Method, equipment and the system that a kind of SIM card is migrated to eUICC | |
CN101729948A (en) | Remote upgrading method and system | |
CN111797173B (en) | Alliance chain sharing system, method and device, electronic equipment and storage medium | |
EP3023904A1 (en) | Implicit File creation in APDU scripts | |
CN110169099A (en) | Installation of the profile in embedded subscriber mark module | |
US7212621B1 (en) | Feature interactions | |
CN108235269B (en) | Switching method and terminal for network access mode of international roaming card | |
CN108243054A (en) | The Application Programming Interface of gateway calls control method and device | |
CN102780987A (en) | Communication method and communication terminal | |
CN101729947A (en) | Method for downloading update version and system thereof | |
CN103118365B (en) | The implementation method of the one many nets of card and multi-mode communication terminal | |
CN114765623A (en) | Information subscribing method, information distributing method and device | |
CN104604295A (en) | Method for managing access right of terminal to resource by server in wireless communication system, and device for same | |
CN102648601A (en) | Data completion for managed objects | |
EP2403216B1 (en) | Method for installation of an application | |
CN101895844A (en) | Method for application downloading and installation of communication intelligent card | |
CN104461590A (en) | Information processing method and electronic equipment | |
CN101924645B (en) | Device management method, device and system | |
KR20200068101A (en) | Apparatus and method for detecting abnormal IoT terminal | |
CN108846281A (en) | Root authority acquisition methods, device, terminal device and storage medium | |
CN100401681C (en) | Method for realizing configuration of service frame data | |
KR20120125517A (en) | Method and device for obtaining real name register status, and terminal thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |