CN109086092A - The method and device of Web routine call local plug-in unit - Google Patents
The method and device of Web routine call local plug-in unit Download PDFInfo
- Publication number
- CN109086092A CN109086092A CN201710444354.9A CN201710444354A CN109086092A CN 109086092 A CN109086092 A CN 109086092A CN 201710444354 A CN201710444354 A CN 201710444354A CN 109086092 A CN109086092 A CN 109086092A
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- calling
- web
- local
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Storage Device Security (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of method and device of Web routine call local plug-in unit, the methods of Web routine call therein local plug-in unit, comprising: obtains the calling authority list of Web routine call local authority of plug-in unit;Receive the request of the first Web routine call target plug-in and the authentication information of the first Web program;The authentication information of first Web program described in good authentication;According to the request of the first Web routine call target plug-in, detection is available for the target plug-in called;Determine that the first Web program has the permission for calling the target plug-in according to the calling authority list;Call the target plug-in.The method and device of Web routine call provided by the invention local plug-in unit; the calling permission of Web program is verified according to preset calling authority list; to reach the management of the calling permission to different Web programs; be conducive to protect the privacy of user; it avoids Web program is invalidated from just voluntarily calling local plug-in unit, improves the information security for calling local plug-in unit.
Description
Technical field
The present invention relates to the communications fields, more particularly to a kind of method and device of Web routine call local plug-in unit.
Background technique
As the speed and stability of mobile network communication are continuously improved, Web App (web application software) is more
With on mobile terminals, especially cloud mobile phone.Web App is the application software run by form web page, be may be implemented
In the cross-platform operation of several operation systems, reduce development cost.And it runs application software by Web page to be not present
The problem of software upgrading, the maintenance cost of software is reduced, and improves user's impression.
With the continuous popularization that HTML5 is standardized, the function of more native applications is may be implemented in the Web App based on HTML5,
Such as be based on LBS (location-based service) function, local datastore, the function of audio and video playing, or even there are also call camera and
In conjunction with the function of hardware acceleration of GPU (graphics processor).
Web App call local pin function (as call camera, GPS module, microphone, send SMS (short message),
Make a phone call or other plug-in units etc.) when, it is possible to be related to the exposure of the privacy information of user.Web App in the prior art is lacked
Few verifying to permission is called, the angle of user can only unify permission that setting browser calls local plug-in unit to limit Web
App can not accomplish that different calling permissions is arranged for different Web App, bring great inconvenience to user.
Summary of the invention
Embodiment according to the present invention provides a kind of method and device of Web routine call local plug-in unit, solves current
Mobile device on browser can not accomplish that asking for different callings permission calling plug-in unit is arranged for different Web App
Topic.
First aspect according to an embodiment of the present invention provides a kind of method of Web routine call local plug-in unit, packet
It includes:
Obtain the calling authority list of Web routine call local authority of plug-in unit;
Receive the request of the first Web routine call target plug-in and the authentication information of the first Web program;
The authentication information of first Web program described in good authentication;
According to the request of the first Web routine call target plug-in, detection is available for the target plug-in called;
Determine that the first Web program has the permission for calling the target plug-in according to the calling authority list;
Call the target plug-in.
Selectively, the authentication information of the first Web program, including one or more following information, the
Verification information, the identification information of the first Web program carried in the address URL of one Web program, html file label.
Selectively, the request of the first Web routine call target plug-in includes the time limit for calling the target plug-in;
The method also includes:
When calling the time limit of the target plug-in to expire, stop calling the target plug-in.
Selectively, the detection is available for the target plug-in called, comprising:
It detects in the plug-in unit of local side with the presence or absence of the target plug-in for calling;
If detecting in the plug-in unit of local side and being available for the target plug-in called, it is determined that local side is available for adjusting
The target plug-in;
If detected in the plug-in unit of local side there is no the target plug-in for calling, detect in non-local side plug-in unit
With the presence or absence of the target plug-in for calling, inserted if detecting the target for being available for calling in non-local side plug-in unit
Part, it is determined that non-local side is available for the target plug-in called.
Selectively, after the non-local side of the determination is available for the target plug-in called, the target is called to insert
It before part, further include downloading the target plug-in from non-local side.
Selectively, described to determine that there is the first Web program calling target to insert according to the calling authority list
The permission of part, comprising:
The first Web program is not included in the calling authority list to the calling authority information of the target plug-in, then
Issue the request for obtaining the first Web program to the calling authority information of the target plug-in, the calling obtained according to feedback
Authority information determines that the first Web program has the permission for calling the target plug-in.
Selectively, the method also includes:
The calling authority list is updated according to obtained calling authority information.
Selectively, the method also includes:
Upload the calling authority list.
The second aspect according to an embodiment of the present invention additionally provides a kind of device of Web routine call local plug-in unit, packet
It includes:
Interface unit, for obtaining the calling authority list of Web routine call local authority of plug-in unit;Receive the first Web program
The authentication information of the request of invocation target plug-in unit and the first Web program;
Identity authenticating unit, the authentication information for the first Web program described in good authentication;
Detection unit, for the request according to the first Web routine call target plug-in, detection is available for calling described
Target plug-in;
Authority Verification unit calls the mesh for determining that the first Web program has according to the calling authority list
Mark the permission of plug-in unit;
Execution unit, for calling the target plug-in.
Selectively, the authentication information of the first Web program, including one or more following information, the
Verification information, the identification information of the first Web program carried in the address URL of one Web program, html file label.
Selectively, the request of the first Web routine call target plug-in includes the time limit for calling the target plug-in;
The execution unit is also used to when calling the time limit of the target plug-in to expire stop that the target is called to insert
Part.
Selectively, the detection unit, is also used to:
It detects in the plug-in unit of local side with the presence or absence of the target plug-in for calling;
If detecting in the plug-in unit of local side and being available for the target plug-in called, it is determined that local side is available for adjusting
The target plug-in;
If detected in the plug-in unit of local side there is no the target plug-in for calling, detect in non-local side plug-in unit
With the presence or absence of the target plug-in for calling, inserted if detecting the target for being available for calling in non-local side plug-in unit
Part, it is determined that non-local side is available for the target plug-in called.
Selectively, the detection unit is also used to, after determining that non-local side is available for the target plug-in called,
Before calling the target plug-in, the target plug-in is downloaded from non-local side.
Selectively, the Authority Verification unit is also used to not include the first Web program in the calling authority list
To the calling authority information of the target plug-in, then the calling power for obtaining the first Web program to the target plug-in is issued
The request of limit information determines that the first Web program has according to the calling authority information that feedback obtains and the target is called to insert
The permission of part.
Selectively, the Authority Verification unit is also used to update the calling power according to obtained calling authority information
Limit table.
Selectively, the interface unit is also used to upload the calling authority list.
The method and device of Web routine call provided in an embodiment of the present invention local plug-in unit, according to preset calling
Authority list verifies the calling permission of Web program, to reach the management of the calling permission to different Web programs, is conducive to
The privacy for protecting user avoids Web program is invalidated from just voluntarily calling local plug-in unit (such as GPS position information etc.), improves
Call the information security of local plug-in unit.
Detailed description of the invention
With reference to the accompanying drawing to the present invention may be better understood in the description of a specific embodiment of the invention, in which:
By reading detailed description of non-limiting embodiments referring to the drawings, other feature of the invention,
Objects and advantages will become more apparent upon, wherein the same or similar appended drawing reference indicates the same or similar feature.
Fig. 1 is the flow chart for indicating the method for Web routine call local plug-in unit described in one embodiment of the invention;
Fig. 2 is to indicate that detection described in one embodiment of the invention is available for the flow chart of the target plug-in called;
Fig. 3 is the modular structure signal for indicating the device of Web routine call local plug-in unit described in one embodiment of the invention
Figure.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below.In following detailed description
In, many details are proposed, in order to provide complete understanding of the present invention.But to those skilled in the art
It will be apparent that the present invention can be implemented in the case where not needing some details in these details.Below to implementation
The description of example is used for the purpose of providing by showing example of the invention and better understanding of the invention.In attached drawing and following
Description in, well known structure and technology is not shown, it is unnecessary fuzzy to avoid causing the present invention.It is identical in figure
Appended drawing reference indicate same or similar structure, thus the detailed description that them will be omitted.In addition, spy described below
Sign, structure or characteristic can be incorporated in any suitable manner in one or more embodiments.Also, middle appearance described below
The noun of locality be direction shown in figure, be not to be defined to specific structure of the invention.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " installation ",
" connected ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integrally connect
It connects;It can be directly connected, it can also be indirectly connected through an intermediary.For the ordinary skill in the art, may be used
The concrete meaning of above-mentioned term in the present invention is understood depending on concrete condition.
According to a first aspect of the embodiments of the present invention, as shown in Figure 1, providing a kind of Web routine call local plug-in unit
Method, comprising:
S100, the calling authority list for obtaining Web routine call local authority of plug-in unit;
The authentication information of S101, the request for receiving the first Web routine call target plug-in and the first Web program;
The authentication information of S102, the first Web program of good authentication;
S103, according to the request of the first Web routine call target plug-in, detection is available for the target plug-in called;
S104, determine that the first Web program has the permission of invocation target plug-in unit according to calling authority list;
S105, invocation target plug-in unit.
Calling authority list is pre-created using step S100, multiple and different Web programs are generally comprised in the calling authority list
The corresponding relationship for calling local authority of plug-in unit is weighed for the different plug-in unit of different Web routine calls provided with different calling
Limit, is verified when being called plug-in unit for subsequent step, and normally, calling permission includes that can call and refuse to call.
Normally, authority list is called to be pre-created according to each Web program in the registration information of Cloud Server by Cloud Server,
Then it is sent to local by way of network communication, or downloads the calling authority list from local to Cloud Server.
About the corresponding relationship for calling the different Web routine calls local authority of plug-in unit in authority list, it can be and creating
When calling authority list, the corresponding relationship of the local one or more authority of plug-in unit of different Web routine calls is created;It is also possible to adjusting
During according to obtained calling authority information addition in calling authority list;It is also possible to part corresponding relationship creating
It is created when calling authority list, other parts corresponding relationship adds during calling according to obtained calling authority information
In calling authority list.
Normally, when authority list is called in creation, the correspondence of different Web routine calls local authority of plug-in unit can be created simultaneously
Relationship, but the Web routine call local plug-in unit for calling and not stating clearly in authority list can be also added during calling plug-in unit
The corresponding relationship of permission.Understanding based on those skilled in the art can be directed to a Web journey when authority list is called in creation
Sequence creates the corresponding relationship for calling local authority of plug-in unit, can also call not for a Web program creation two or more
With the corresponding relationship of local authority of plug-in unit.
Selectively, in step S101, the request of the first Web routine call target plug-in is received, the first Web program is needed
Life needs the target plug-in called, and the first Web program can disposably call a target plug-in, can also disposably call
More than two different target plug-ins.The authentication information of first Web program, including one or more following information,
Verification information, the identification information of the first Web program carried in the address URL of first Web program, html file label.
It identifies firstly the need of the identity information to the first Web program itself, to ensure that the first Web program is legal procedure, avoids
Illegal program calls local plug-in unit to improve the safety of local information to protect privacy of user.When the Web routine call sheet
When the method for ground plug-in unit is in the mobile devices such as mobile phone, IPAD, laptop computer, it can be ensured that mobile phone, IPAD, laptop computer are used
The privacy and information security at family.
Selectively, in step S101, the first Web routine call target plug-in request include invocation target plug-in unit when
Limit;
When the time limit of invocation target plug-in unit expires, stop invocation target plug-in unit.Selectively, including calling the time limit
The request of Web routine call target plug-in starts a timing thread after invocation target plug-in unit, the stopping pair when calling the time limit full
The calling of target plug-in, to avoid calling automatically when calling the target plug-in next time, it is ensured that privacy of user and information security.
As shown in Fig. 2, selectively, in step S103, detection is available for the target plug-in called, comprising:
It detects in the plug-in unit of local side with the presence or absence of the target plug-in for calling;
If detecting in the plug-in unit of local side and being available for the target plug-in called, it is determined that local side is available for calling
Target plug-in;And then step S104 is executed, according to calling authority list to determine, the first Web program has the permission of invocation target plug-in unit
Later;Step S105 is executed again, calls the target plug-in of local side.
If detected in local side plug-in unit there is no the target plug-in for calling, detect in non-local side plug-in unit whether
It is available for the target plug-in called, if being available for the target plug-in called in non-local side plug-in unit, it is determined that non-local
Side is available for the target plug-in called;And then step S104 is executed, it is adjusted according to calling authority list to determine that the first Web program has
After the permission of target plug-in, and the target plug-in of non-local side is downloaded to local side;Step S105 is executed again, calls the mesh
Mark plug-in unit.
In the present embodiment, non-local side is Cloud Server, the mobile terminal etc. for referring to be communicated with local side, wherein
Mobile terminal can be mobile phone, IPAD, laptop etc..In the process of implementation, local side can by network with it is non-
It is communicated between the mobile phone of local side, IPAD, laptop or Cloud Server, detecting non-local side plug-in unit whether there is
For the request of the target plug-in of calling, it can be transmitted directly to Cloud Server, it is mobile eventually that third party can also be sent to first
It holds (mobile phone, IPAD, laptop), Cloud Server is sent to by third party's mobile terminal.
After the locally downloading side of the target plug-in of non-local side, after the first Web program or other Web programs
When needing to access the target plug-in, only judge whether that the target plug-in for having been downloaded into local side can be called, without
It needs that the plug-in unit is called all to arrive non-local side every time and is called.
If the target plug-in for being available for calling is not detected in non-local side, by non-local side (such as Cloud Server)
The feedback information that not target plug-in is sent to local side, has local side to prompt the user with the notice of not target plug-in.
Local side therein refers to mobile device, such as mobile phone, IPAD, laptop for browsing Web program etc..
Selectively, in step S104, according to calling authority list to determine, the first Web program has the power of invocation target plug-in unit
Limit, comprising:
It calls and does not include the first Web program in authority list to the calling authority information of target plug-in, then issue described in acquisition
Request of the first Web program to the calling authority information of the target plug-in, determines according to the calling authority information that feedback obtains
First Web program has the permission of invocation target plug-in unit.
Specifically, if calling the calling authority information in authority list not comprising the first Web program to target plug-in,
The inquiry window of authority information is called in display, shows the main information of the first Web program (for example, from the head of the first Web program
The main information of the first Web program read in label), prompt the first Web program application to call the request of the target plug-in, this
When user can the calling permission according to the actual situation to the first Web program selected (for example, can " always allow ",
Selected between " this permission " and " forbidding calling " several options), thus the step of complete call target plug-in, such as table one
It is shown:
Table one
In the request of the first Web routine call target plug-in, the version information of target plug-in may include, it can also not
Version information comprising target plug-in.When the version for not including target plug-in in the request of the first Web routine call target plug-in
When information, when detecting local side plug-in unit, ignore the version information of plug-in unit, but if local plug-in unit there are multiple versions, usually
Newest version is verified, and is called using newest version as target plug-in;When asking for the first Web routine call target plug-in
In asking, when version information comprising target plug-in, then when determining that the first Web program has the permission of invocation target plug-in unit, need
The version information that determine target plug-in simultaneously, when the version information of target plug-in and the target plug-in of the first Web routine call
Version information it is consistent when, recall the target plug-in.
Selectively, it is updated according to obtained calling authority information and calls authority list.Executing whether call for the first time
After the order of one Web program, the calling authority information stored, and calling authority list is updated with this.To make the first Web
Program judges the request by updated calling authority list when sending the request of invocation target plug-in unit next time.
Selectively, method further include:
It uploads and calls authority list.Specifically, updated calling authority list can be uploaded to Cloud Server or third
Side (such as: the mobile devices such as mobile phone, IPAD, laptop) storage, make user can according to need again from Cloud Server or
The calling authority list that person third party's re-synchronization has uploaded.Make user replacement using equipment or using equipment failure,
After brush machine and system program refitting, it can be convenient and give calling authority list for change, without again to the target being commonly used
Plug-in unit determines method of calling one by one again.
Meanwhile also facilitating Cloud Server or third after uploading calling authority list to Cloud Server perhaps third party
Side is to calling the Web program in authority list to be scanned, when local by permitting illegal Web routine call in discovery calling authority list
When plug-in unit, alert notice can be pushed to user, to further ensure that the privacy and information security of user.
Optionally, after having executed invocation target plug-in unit, the returned data obtained after target plug-in is run is sent to
First Web program (as obtained GPS position information), or the data of the first Web program are sent to target plug-in and are run (such as
Send SMS).
It should be pointed out that a kind of method of Web routine call local provided in an embodiment of the present invention plug-in unit, workflow
Journey is not limited to the above, and the judgement relationship between each step is also not necessarily limited to the judgement process that the present embodiment provides, particularly,
Such as: precedence relationship is not present between step S100 and step S101, step S100 may be used before or after step S101
With;Step S102, the sequence between step S103, step S104 can also be not limited to the sequence that above embodiments provide, can be with
In the process of implementation, step S104 is placed on before step S103 and step S102.
Under the premise of technical solution of the present invention design, those skilled in the art can be according to the needs of implementation and to above
The sequencing of judgment step is adjusted.
The method of Web routine call provided in an embodiment of the present invention local plug-in unit, according to preset calling authority list
The calling permission of Web program is verified, to reach the management of the calling permission to different Web programs, is conducive to protection and uses
The privacy at family avoids Web program is invalidated from just voluntarily calling local plug-in unit (such as GPS position information etc.), improves and call this
The information security of ground plug-in unit.
The second aspect according to an embodiment of the present invention, as shown in figure 3, it is locally slotting to additionally provide a kind of Web routine call
The device of part, comprising:
Interface unit, for obtaining the calling authority list of Web routine call local authority of plug-in unit;Receive the first Web program
The authentication information of the request of invocation target plug-in unit and the first Web program;
Identity authenticating unit, the authentication information for the first Web program of good authentication;
Detection unit, for the request according to the first Web routine call target plug-in, detection is available for the target called
Plug-in unit;
Authority Verification unit, for determining that the first Web program has the permission of invocation target plug-in unit according to calling authority list;
Execution unit is used for invocation target plug-in unit.
The calling authority list being pre-created is obtained using interface unit, is generally comprised in the calling authority list multiple and different
The corresponding relationship of the local one or more authority of plug-in unit of Web routine call, for the different plug-in unit of different Web routine calls,
It provided with different calling permissions, is verified when being called plug-in unit for execution unit, normally, calling permission to include can
It is called with calling and refusing.
Normally, authority list is called to be pre-created according to each Web program in the registration information of Cloud Server by Cloud Server,
Then it is sent to local by way of network communication, or downloads the calling authority list from local to Cloud Server.
About the corresponding relationship for calling the different Web routine calls local authority of plug-in unit in authority list, it can be and creating
When calling authority list, the corresponding relationship of different Web routine calls local authority of plug-in unit is created;It is also possible to during calling
According to obtained calling authority information addition in calling authority list;It is also possible to part corresponding relationship and calls authority list in creation
Shi Jinhang creation, other parts corresponding relationship are calling permission according to obtained calling authority information addition during calling
In table.
Normally, when authority list is called in creation, the correspondence of different Web routine calls local authority of plug-in unit can be created simultaneously
Relationship, but the Web routine call local plug-in unit for calling and not stating clearly in authority list can be also added during calling plug-in unit
The corresponding relationship of permission.Understanding based on those skilled in the art can be directed to a Web journey when authority list is called in creation
Sequence creates the corresponding relationship for calling local authority of plug-in unit, can also call not for a Web program creation two or more
With the corresponding relationship of local authority of plug-in unit.
Selectively, interface unit receives the request of the first Web routine call target plug-in, needs the first Web program raw
Life needs the target plug-in called, and the first Web program can disposably call a target plug-in, can also disposably call two
A above different target plug-in.The authentication information of first Web program, including one or more following information, the
Verification information, the identification information of the first Web program carried in the address URL of one Web program, html file label.It is first
It first needs the identity information to the first Web program itself to identify, to ensure that the first Web program is legal procedure, avoids non-
Method routine call local plug-in unit improves the safety of local information to protect privacy of user.When the Web routine call is local
When the method for plug-in unit is in the mobile devices such as mobile phone, IPAD, laptop computer, it can be ensured that mobile phone, IPAD, laptop computer user
Privacy and information security.
Selectively, the request for the first Web routine call target plug-in that interface unit receives is inserted including invocation target
The time limit of part;
Execution unit is also used to when the time limit of invocation target plug-in unit expires, and stops invocation target plug-in unit.Selectively,
Request including calling the Web routine call target plug-in in time limit, starts a timing thread after invocation target plug-in unit, is calling
Stop the calling to target plug-in when time limit is full, to avoid calling automatically when calling the target plug-in next time, it is ensured that user
Privacy and information security.
Selectively, detection unit is also used to:
It detects in the plug-in unit of local side with the presence or absence of the target plug-in for calling;
If detecting in the plug-in unit of local side and being available for the target plug-in called, it is determined that local side is available for calling
Target plug-in;And then determine that the first Web program has the power of invocation target plug-in unit according to calling authority list by Authority Verification unit
After limit;The target plug-in of local side is called by execution unit again.
If detected in local side plug-in unit there is no the target plug-in for calling, detect in non-local side plug-in unit whether
It is available for the target plug-in called, if being available for the target plug-in called in non-local side plug-in unit, it is determined that non-local
Side is available for the target plug-in called.And then Authority Verification unit determines that the first Web program has according to calling authority list and adjusts
After the permission of target plug-in, and the target plug-in of non-local side is downloaded to local side;The target is called by execution unit again
Plug-in unit.
In the present embodiment, non-local side is Cloud Server, the mobile terminal etc. for referring to be communicated with local side, wherein
Mobile terminal can be mobile phone, IPAD, laptop etc..In the process of implementation, local side can by network with it is non-
It is communicated between the mobile phone of local side, IPAD, laptop or Cloud Server, detecting non-local side plug-in unit whether there is
For the request of the target plug-in of calling, it can be transmitted directly to Cloud Server, it is mobile eventually that third party can also be sent to first
It holds (mobile phone, IPAD, laptop), Cloud Server is sent to by third party's mobile terminal.
After the locally downloading side of the target plug-in of non-local side, after the first Web program or other Web programs
When needing to access the target plug-in, only judge whether that the target plug-in for having been downloaded into local side can be called, without
It needs that the plug-in unit is called all to arrive non-local side every time and is called.
If the target plug-in for being available for calling is not detected in non-local side, by non-local side (such as Cloud Server)
The feedback information that not target plug-in is sent to local side, has local side to prompt the user with the notice of not target plug-in.
Local side therein refers to mobile device, such as mobile phone, IPAD, laptop for browsing Web program etc..
Selectively, Authority Verification unit is also used to call in authority list and does not include the first Web program to target plug-in
Authority information is called, then issues the request for obtaining the first Web program to the calling authority information of the target plug-in, according to
It feeds back obtained calling authority information and determines that the first Web program has the permission of invocation target plug-in unit.
Specifically, if calling the calling authority information in authority list not comprising the first Web program to target plug-in,
The inquiry window of authority information is called in display, shows the main information of the first Web program (for example, from the head of the first Web program
The main information of the first Web program read in label), prompt the first Web program application to call the request of the target plug-in, this
When user can the calling permission according to the actual situation to the first Web program selected (for example, can " always allow ",
Selected between " this permission " and " forbidding calling " several options), thus the step of complete call target plug-in.
In the request of the first Web routine call target plug-in, the version information of target plug-in may include, it can also not
Version information comprising target plug-in.When the version for not including target plug-in in the request of the first Web routine call target plug-in
When information, when detecting local side plug-in unit, ignore the version information of plug-in unit, but if local plug-in unit there are multiple versions, usually
Newest version is verified, and is called using newest version as target plug-in;When asking for the first Web routine call target plug-in
In asking, when version information comprising target plug-in, then when determining that the first Web program has the permission of invocation target plug-in unit, need
The version information that determine target plug-in simultaneously, when the version information of target plug-in and the target plug-in of the first Web routine call
Version information it is consistent when, recall the target plug-in.
Selectively, Authority Verification unit is also used to be updated according to obtained calling authority information and calls authority list;Exist
After executing the order for whether calling the first Web program for the first time, the calling authority information stored, and calling power is updated with this
Limit table.To make the first Web program when sending the request of invocation target plug-in unit next time, by updated calling authority list to this
Request is judged.
Selectively, interface unit is also used to upload calling authority list.It specifically, can be by updated calling permission
Table is uploaded to Cloud Server or third party (such as: the mobile devices such as mobile phone, IPAD, laptop) storage, makes user can
With the calling authority list uploaded again from Cloud Server or third party's re-synchronization as needed, use user in replacement
Equipment uses equipment after the refitting of failure, brush machine and system program, can be convenient and gives calling authority list for change, without
Again method of calling is determined one by one again to the target plug-in being commonly used.
Meanwhile also facilitating Cloud Server or third after uploading calling authority list to Cloud Server perhaps third party
Side is to calling the Web program in authority list to be scanned, when local by permitting illegal Web routine call in discovery calling authority list
When plug-in unit, alert notice can be pushed to user, to further ensure that the privacy and information security of user.
Optionally, after having executed invocation target plug-in unit, the returned data obtained after target plug-in is run is sent to
First Web program (as obtained GPS position information), or the data of the first Web program are sent to target plug-in and are run (such as
Send SMS).
The device of Web routine call provided in an embodiment of the present invention local plug-in unit, according to preset calling authority list
The calling permission of Web program is verified, to reach the management of the calling permission to different Web programs, is conducive to protection and uses
The privacy at family avoids Web program is invalidated from just voluntarily calling local plug-in unit (such as GPS position information etc.), improves and call this
The information security of ground plug-in unit.
The present invention can realize in other specific forms, without departing from its spirit and essential characteristics.Therefore, current reality
Apply example be all counted as being exemplary rather than in all respects it is limited, the scope of the present invention by appended claims rather than on
Description definition is stated, also, falls into the meaning of claim and whole changes in the range of equivalent to all be included in this
Among the range of invention.Also, the different technologies feature occurred in different embodiments can be combined, to obtain beneficial to effect
Fruit.Those skilled in the art will be understood that and realize revealed on the basis of studying attached drawing, specification and claims
The embodiment of other variations of embodiment.
Claims (16)
1. a kind of method of Web routine call local plug-in unit characterized by comprising
Obtain the calling authority list of Web routine call local authority of plug-in unit;
Receive the request of the first Web routine call target plug-in and the authentication information of the first Web program;
The authentication information of first Web program described in good authentication;
According to the request of the first Web routine call target plug-in, detection is available for the target plug-in called;
Determine that the first Web program has the permission for calling the target plug-in according to the calling authority list;
Call the target plug-in.
2. the method for Web routine call as described in claim 1 local plug-in unit, it is characterised in that:
The authentication information of the first Web program, including one or more following information, the URL of the first Web program
The identification information of the verification information, the first Web program that are carried in address, html file label.
3. the method for Web routine call as described in claim 1 local plug-in unit, it is characterised in that:
The request of the first Web routine call target plug-in includes the time limit for calling the target plug-in;
The method also includes:
When calling the time limit of the target plug-in to expire, stop calling the target plug-in.
4. the method for Web routine call as described in claim 1 local plug-in unit, it is characterised in that:
The detection is available for the target plug-in called, comprising:
It detects in the plug-in unit of local side with the presence or absence of the target plug-in for calling;
If detecting in the plug-in unit of local side and being available for the target plug-in called, it is determined that local side is available for calling
The target plug-in;
If detected in local side plug-in unit there is no the target plug-in for calling, detect in non-local side plug-in unit whether
It is available for the target plug-in called, if detecting the target plug-in for being available for calling in non-local side plug-in unit,
Then determine that non-local side is available for the target plug-in called.
5. the method for Web routine call as claimed in claim 4 local plug-in unit, it is characterised in that:
After the non-local side of determination is available for the target plug-in called, before the calling target plug-in, also wrap
It includes:
The target plug-in is downloaded from non-local side.
6. the method for Web routine call as described in claim 1 local plug-in unit, it is characterised in that:
It is described to determine that the first Web program has the permission for calling the target plug-in according to the calling authority list, comprising:
Do not include the first Web program in the calling authority list to the calling authority information of the target plug-in, then issues
Obtain request of the first Web program to the calling authority information of the target plug-in, the calling permission obtained according to feedback
Information determines that the first Web program has the permission for calling the target plug-in.
7. the method for Web routine call as claimed in claim 6 local plug-in unit, it is characterised in that: the method also includes:
The calling authority list is updated according to obtained calling authority information.
8. the method for Web routine call as claimed in claim 7 local plug-in unit, it is characterised in that: the method also includes:
Upload the calling authority list.
9. a kind of device of Web routine call local plug-in unit, comprising:
Interface unit, for obtaining the calling authority list of Web routine call local authority of plug-in unit;Receive the first Web routine call
The authentication information of the request of target plug-in and the first Web program;
Identity authenticating unit, the authentication information for the first Web program described in good authentication;
Detection unit, for the request according to the first Web routine call target plug-in, detection is available for the target called
Plug-in unit;
Authority Verification unit calls the target to insert for determining that the first Web program has according to the calling authority list
The permission of part;
Execution unit, for calling the target plug-in.
10. the device of Web routine call as claimed in claim 9 local plug-in unit, it is characterised in that:
The authentication information of the first Web program, including one or more following information, the URL of the first Web program
The identification information of the verification information, the first Web program that are carried in address, html file label.
11. the device of Web routine call as claimed in claim 9 local plug-in unit, it is characterised in that:
The request of the first Web routine call target plug-in includes the time limit for calling the target plug-in;
The execution unit is also used to stop calling the target plug-in when calling the time limit of the target plug-in to expire.
12. the device of Web routine call as claimed in claim 9 local plug-in unit, it is characterised in that:
The detection unit, is also used to:
It detects in the plug-in unit of local side with the presence or absence of the target plug-in for calling;
If detecting in the plug-in unit of local side and being available for the target plug-in called, it is determined that local side is available for calling
The target plug-in;
If detected in local side plug-in unit there is no the target plug-in for calling, detect in non-local side plug-in unit whether
It is available for the target plug-in called, if being available for the target plug-in called in non-local side plug-in unit, really
Fixed non-local side is available for the target plug-in called.
13. the method for Web routine call as claimed in claim 12 local plug-in unit, it is characterised in that:
The detection unit is also used to, and after determining that non-local side is available for the target plug-in called, is calling the mesh
Before marking plug-in unit, the target plug-in is downloaded from non-local side.
14. the device of Web routine call as claimed in claim 9 local plug-in unit, it is characterised in that:
The Authority Verification unit is also used to not include the first Web program in the calling authority list and insert to the target
The calling authority information of part then issues the request for obtaining the first Web program to the calling authority information of the target plug-in,
Determine that the first Web program has the permission for calling the target plug-in according to the calling authority information that feedback obtains.
15. the device of Web routine call as claimed in claim 14 local plug-in unit, it is characterised in that:
The Authority Verification unit is also used to update the calling authority list according to obtained calling authority information.
16. the device of Web routine call as claimed in claim 15 local plug-in unit, it is characterised in that:
The interface unit is also used to upload the calling authority list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710444354.9A CN109086092A (en) | 2017-06-13 | 2017-06-13 | The method and device of Web routine call local plug-in unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710444354.9A CN109086092A (en) | 2017-06-13 | 2017-06-13 | The method and device of Web routine call local plug-in unit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109086092A true CN109086092A (en) | 2018-12-25 |
Family
ID=64838742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710444354.9A Pending CN109086092A (en) | 2017-06-13 | 2017-06-13 | The method and device of Web routine call local plug-in unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109086092A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112948824A (en) * | 2021-03-31 | 2021-06-11 | 支付宝(杭州)信息技术有限公司 | Program communication method, device and equipment based on privacy protection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130159385A1 (en) * | 2011-12-16 | 2013-06-20 | Business Objects Software Limited | System and Method for Performing Centralized Common Tasks for a Set of Functions |
CN103905651A (en) * | 2014-04-30 | 2014-07-02 | 北京邮电大学 | Method and system for application permission management in intelligent terminal |
CN104049986A (en) * | 2013-03-14 | 2014-09-17 | 腾讯科技(深圳)有限公司 | Plugin loading method and device |
CN106603528A (en) * | 2016-12-13 | 2017-04-26 | 北京小米移动软件有限公司 | Method and apparatus for webpage invoking terminal local functions |
-
2017
- 2017-06-13 CN CN201710444354.9A patent/CN109086092A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130159385A1 (en) * | 2011-12-16 | 2013-06-20 | Business Objects Software Limited | System and Method for Performing Centralized Common Tasks for a Set of Functions |
CN104049986A (en) * | 2013-03-14 | 2014-09-17 | 腾讯科技(深圳)有限公司 | Plugin loading method and device |
CN103905651A (en) * | 2014-04-30 | 2014-07-02 | 北京邮电大学 | Method and system for application permission management in intelligent terminal |
CN106603528A (en) * | 2016-12-13 | 2017-04-26 | 北京小米移动软件有限公司 | Method and apparatus for webpage invoking terminal local functions |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112948824A (en) * | 2021-03-31 | 2021-06-11 | 支付宝(杭州)信息技术有限公司 | Program communication method, device and equipment based on privacy protection |
CN112948824B (en) * | 2021-03-31 | 2022-04-26 | 支付宝(杭州)信息技术有限公司 | Program communication method, device and equipment based on privacy protection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109068179B (en) | Multi-platform live broadcast method, computer device and computer readable storage medium | |
US8195124B2 (en) | Apparatus and methods for managing time sensitive application privileges on a wireless device | |
KR101281825B1 (en) | Apparatus and method that enhance security using virtual interface in cloud system | |
EP2861003A1 (en) | Method and apparatus for controlling application right | |
CN1312952C (en) | Mobile communication terminal and wireless communication system | |
US20150112798A1 (en) | Advertisement processing method and apparatus | |
WO2017071207A1 (en) | Application installation method, corresponding apparatus, and application installation system | |
US9712941B2 (en) | Method and apparatus for providing application service in a mobile communication system | |
EP1665082A2 (en) | Methods and apparatus for content protection in a wireless network | |
CN103167031A (en) | Communication between Web applications | |
CN103249027B (en) | The method and apparatus that a kind of terminal traffic processes | |
JP2020509622A (en) | Wireless network type detection method and apparatus and electronic device | |
JP2009043085A (en) | Alteration detection system, alteration detection method, wireless network controller, and mobile phone terminal | |
CA2557811A1 (en) | Execution of unverified programs in a wireless device operating environment | |
CN108460251B (en) | Method, device and system for running application program | |
EP2869229B1 (en) | Method, device and equipment for installing an application | |
CN106934272B (en) | Application information verification method and device | |
CN109086092A (en) | The method and device of Web routine call local plug-in unit | |
CN103823702A (en) | Application installation method and electronic equipment | |
CN108763357B (en) | File processing method and related device | |
CN115878138A (en) | Application pre-downloading method and device, computer and storage medium | |
CN102769663A (en) | Server, method and system for transmitting information | |
CN106060124A (en) | Application program downloading method and mobile terminal | |
CN104951715A (en) | Information processing method and electronic equipment | |
CN108111561B (en) | Data downloading method and equipment 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181225 |