[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102866909B - A kind of system and method for the resource lock for controlling docking port resource to access - Google Patents

A kind of system and method for the resource lock for controlling docking port resource to access Download PDF

Info

Publication number
CN102866909B
CN102866909B CN201210308625.5A CN201210308625A CN102866909B CN 102866909 B CN102866909 B CN 102866909B CN 201210308625 A CN201210308625 A CN 201210308625A CN 102866909 B CN102866909 B CN 102866909B
Authority
CN
China
Prior art keywords
resource
parameter
outside
interface resource
docking port
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.)
Expired - Fee Related
Application number
CN201210308625.5A
Other languages
Chinese (zh)
Other versions
CN102866909A (en
Inventor
胡聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210308625.5A priority Critical patent/CN102866909B/en
Publication of CN102866909A publication Critical patent/CN102866909A/en
Application granted granted Critical
Publication of CN102866909B publication Critical patent/CN102866909B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of system for the resource lock for controlling docking port resource to access, the resource lock is suitable to docking port resource settings cached parameters information, the system includes, library inquiry module is cached, is adapted to respond to the outside cached parameters information applied in simultaneously query caching storehouse on the interface resource accessed a certain interface resource;Access control module, if suitable for the cached parameters information of the interface resource in the caching storehouse be present, then receive or refuse according to cached parameters information to apply for the outside of the interface resource, if the cached parameters information of the interface resource is not present in the caching storehouse, receive to apply for the outside of the interface resource.The generation of harassing and wrecking information can be largely reduced after use of the present invention, while also reduces some resources by the possibility of Brute Force.Implementation will be realized based on caching mechanism, it is possible to reduce the resource of consumption is locked, will not docking port access efficiency generation considerable influence after lock mechanism is added.

Description

A kind of system and method for the resource lock for controlling docking port resource to access
Technical field
The present invention relates to Internet technical field, more particularly to a kind of system for the resource lock for controlling docking port resource to access And method.
Background technology
Existing Internet era, the service of website is packaged into series of computation machine data-interface easy to identify and is opened to Go, there is provided used to third party developer, this behavior is just called OpenAPI, there is provided the platform of opening API is thus referred to as in itself Open platform.By open platform, website can not only provide the easy access to Web page, can also carry out the data of complexity Other operations such as interaction, their Web site are converted to the development platform of equal value with operating system.
General lock mechanism is used in database, if adding more database manipulation in operation flow, will certainly be dropped Low interface access efficiency, if Lock Lee realizes that it is all time-consuming that file operation, which is similar to database manipulation, with the method for accessing file Operation, so this patent will select caching mechanism to realize business lock mechanism.
Based on problem above, this patent adds a kind of business lock mechanism in original system, for using needing to limit Resource conduct interviews limitation.The use environment of such a lock mechanism is operation layer, can carry out certain journey to the resource of operation layer The locking of degree.In use, time, number and combined situation can be included by accessing limitation content.Implementation will be based on caching machine System is realized, it is possible to reduce is locked the resource of consumption, is improved interface access efficiency.
The content of the invention
The purpose of the present invention is the control that mouthful resource accesses that achieves a butt joint, and reduces meaningless resource consumption, improves interface and visits Ask efficiency.
A kind of system for the resource lock for controlling docking port resource to access,
The resource lock is suitable to docking port resource settings cached parameters information, and the system includes,
Cache library inquiry module, be adapted to respond in the outside application that accesses a certain interface resource and query caching storehouse on The cached parameters information of the interface resource;
Access control module, if suitable for the cached parameters information of the interface resource, foundation in the caching storehouse be present Cached parameters information receives or refused to apply for the outside of the interface resource, if the interface resource is not present in the caching storehouse Cached parameters information, then receive to apply for the outside of the interface resource.
Wherein, the cached parameters information of the resource lock docking port resource settings includes time parameter and/or count parameter.
Wherein, when the time parameter cache information of interface resource be present in the caching storehouse, then the time parameter is triggered Corresponding countdown is opened, and at the end of the countdown, receives the outside application of docking port resource access.
Wherein, when the count parameter cache information of interface resource be present in the caching storehouse, to outside docking port resource Shen Counting how many times please, when outside request times exceed count parameter cache information, the outside application of refusal docking port resource.
Wherein, the interface resource includes OPENAPI or service.
A kind of method for the resource lock for controlling docking port resource to access,
The resource lock is suitable to docking port resource settings cached parameters information, and methods described includes,
The caching in the outside application for accessing a certain interface resource and query caching storehouse on the interface resource is responded to join Number information;
If the cached parameters information of the interface resource in the caching storehouse be present, receive according to cached parameters information or Refuse to apply for the outside of the interface resource, if the cached parameters information of the interface resource is not present in the caching storehouse, Receive to apply for the outside of the interface resource.
Wherein, the cached parameters information of the resource lock docking port resource settings includes time parameter and/or count parameter.
Wherein, when the time parameter cache information of interface resource be present in the caching storehouse, then the time parameter is triggered Corresponding countdown is opened, and at the end of the countdown, receives the outside application of docking port resource access.
Wherein, when the count parameter cache information of interface resource be present in the caching storehouse, to outside docking port resource Shen Counting how many times please, when outside request times exceed count parameter cache information, the outside application of refusal docking port resource.
Wherein, the interface resource includes OPENAPI or service.
The present invention adds business lock mechanism in systems, for being conducted interviews limitation to needing to limit the resource that uses.This The use environment of kind lock mechanism is operation layer, can carry out a certain degree of locking to the resource of operation layer.Can be big after use Amount reduces the generation of harassing and wrecking information, while also reduces some resources by the possibility of Brute Force.Implementation will be based on slow The mechanism of depositing is realized, it is possible to reduce lock the resource of consumption, after lock mechanism is added will not docking port access efficiency produce it is larger Influence.
Brief description of the drawings
Fig. 1 is the structured flowchart of the application of the present invention;
Fig. 2 is the system construction drawing that embodiments of the invention provide;
Fig. 3 is the method flow diagram that embodiments of the invention provide.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Fig. 1 is the application structure figure of the embodiment of the present invention, and third party developer 100 is in application OPEN API or service , it is necessary to be applied by resource lock 102 when 104.Resource lock 102 determines whether to accept applications.For resource lock 102, it is made With being that OPEN API or service 104 are locked, with prevent third party developer 100 from arbitrarily apply OPEN API or Person's service 104.
For example, resource lock 102 locks to OPEN API or service 104 first, third party developer 100 is proposing During application, resource lock 102 first checks for OPEN API or services 104 lock-out state, if can then be received with application status The application of third party developer, otherwise refuses.
A kind of embodiment provided by the invention as shown in Fig. 2 a kind of system for the resource lock for controlling docking port resource to access,
The resource lock is suitable to docking port resource settings cached parameters information, and the system includes,
Library inquiry module 200 is cached, is adapted to respond to apply for and in query caching storehouse the outside that a certain interface resource accesses Cached parameters information on the interface resource;
Access control module 202, if suitable for the cached parameters information of the interface resource in the caching storehouse be present, according to Receive or refuse to apply for the outside of the interface resource according to cached parameters information, provided if the interface is not present in the caching storehouse The cached parameters information in source, then receive to apply for the outside of the interface resource.
The cached parameters information of the resource lock docking port resource settings includes time parameter and/or count parameter.It is described When the time parameter cache information of interface resource be present in caching storehouse, then trigger countdown corresponding to the time parameter and open, At the end of the countdown, receive the outside application of docking port resource access.Time of interface resource in the caching storehouse be present During number parameter cache information, to the counting how many times of outside docking port resource bid, when outside request times are delayed more than count parameter When depositing information, the outside application of refusal docking port resource.
For example, system sets a cached parameters for each OPEN API or service first, and cached parameters are deposited Enter into caching storehouse, in an outside application, the parameter in system meeting query caching storehouse, parameter is not present in storehouse is cached When, it can directly receive outside application;If cached parameters be present, need to judge that the type of cached parameters is either secondary for the time Number;Time parameter directly performs countdown, treats that countdown technology is followed by being applied by outside, provides OPEN api interfaces or clothes Business;Count parameter then performs+1 operation to access times, applies in the case where access times are no more than threshold condition outside receiving.
During a network payment, it is generally the case that one would generally be required to network payment person in line platform Short message or mailbox checking, in order to prevent repeated authentication, and prevent disabled user from being cracked using the method for exhaustion.Resource lock can be to test Card addition time lock and/or number lock.Make to be able to validate only within a period of time once and/or, within a period of time, can only test Demonstrate,prove how many times.
Accordingly, an embodiment of the present invention provides a kind of method for the resource lock for controlling docking port resource to access, such as Shown in Fig. 3,
The resource lock is suitable to docking port resource settings cached parameters information, and methods described includes,
S300, respond in the outside application accessed a certain interface resource and query caching storehouse on the slow of the interface resource Deposit parameter information;
S302, if the cached parameters information of the interface resource in the caching storehouse be present, according to cached parameters information Receive or refuse to apply for the outside of the interface resource, if the cached parameters that the interface resource is not present in the caching storehouse are believed Breath, then receive to apply for the outside of the interface resource.
The cached parameters information of the resource lock docking port resource settings includes time parameter and/or count parameter.It is described When the time parameter cache information of interface resource be present in caching storehouse, then trigger countdown corresponding to the time parameter and open, At the end of the countdown, receive the outside application of docking port resource access.Time of interface resource in the caching storehouse be present During number parameter cache information, to the counting how many times of outside docking port resource bid, when outside request times are delayed more than count parameter When depositing information, the outside application of refusal docking port resource.
Embodiment of above is merely to illustrate the present invention, and not limitation of the present invention, about the common of technical field Technical staff, without departing from the spirit and scope of the present invention, it can also make a variety of changes and modification, thus it is all Equivalent technical scheme falls within scope of the invention, and scope of patent protection of the invention should be defined by the claims.

Claims (4)

1. a kind of system for the resource lock for controlling docking port resource to access, the resource lock is suitable to operation layer is needed to limit to use Interface resource setting cached parameters information, cached parameters information includes time parameter and count parameter, or count parameter;Number Parameter refers to the number of outside docking port resource bid, and time parameter is a countdown, and the system includes,
Library inquiry module is cached, is adapted to respond to apply for the outside that a certain interface resource accesses and connect on this in query caching storehouse The time parameter and count parameter of mouth resource, or count parameter;
Access control module, if suitable for the time parameter and count parameter of the interface resource in the caching storehouse be present, or it is secondary Number parameter, then according to time parameter and count parameter, or count parameter, receive or refuse to apply for the outside of the interface resource, If the time parameter and count parameter of the interface resource are not present in the caching storehouse, or count parameter, then receive to connect this The outside application of mouth resource;
When the time parameter cache information of interface resource in the caching storehouse be present, then trigger to fall to count corresponding to the time parameter Shi Kaiqi, at the end of the countdown, receive the outside application of docking port resource access;
When the count parameter cache information of interface resource in the caching storehouse be present, to the number meter of outside docking port resource bid Number, when outside request times exceed count parameter cache information, the outside application of refusal docking port resource.
2. the system as claimed in claim 1, it is characterised in that the interface resource includes OPEN API or service.
3. a kind of method for the resource lock for controlling docking port resource to access, the resource lock is suitable to operation layer is needed to limit to use Interface resource setting cached parameters information, cached parameters information includes time parameter and count parameter, or count parameter;Number Parameter refers to the number of outside docking port resource bid, and time parameter is a countdown, and methods described includes,
Respond in the outside application accessed a certain interface resource and query caching storehouse on the interface resource time parameter and Count parameter, or count parameter;
If the cached parameters information of the interface resource in the caching storehouse be present, according to time parameter and count parameter, or Count parameter, receive or refuse to apply for the outside of the interface resource, if the interface resource is not present in the caching storehouse Time parameter and count parameter, or count parameter, then receive to apply for the outside of the interface resource;
When the time parameter cache information of interface resource in the caching storehouse be present, then trigger to fall to count corresponding to the time parameter Shi Kaiqi, at the end of the countdown, receive the outside application of docking port resource access;
When the count parameter cache information of interface resource in the caching storehouse be present, to the number meter of outside docking port resource bid Number, when outside request times exceed count parameter cache information, the outside application of refusal docking port resource.
4. method as claimed in claim 3, it is characterised in that the interface resource includes OPEN API or service.
CN201210308625.5A 2012-08-27 2012-08-27 A kind of system and method for the resource lock for controlling docking port resource to access Expired - Fee Related CN102866909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210308625.5A CN102866909B (en) 2012-08-27 2012-08-27 A kind of system and method for the resource lock for controlling docking port resource to access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210308625.5A CN102866909B (en) 2012-08-27 2012-08-27 A kind of system and method for the resource lock for controlling docking port resource to access

Publications (2)

Publication Number Publication Date
CN102866909A CN102866909A (en) 2013-01-09
CN102866909B true CN102866909B (en) 2018-02-27

Family

ID=47445790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210308625.5A Expired - Fee Related CN102866909B (en) 2012-08-27 2012-08-27 A kind of system and method for the resource lock for controlling docking port resource to access

Country Status (1)

Country Link
CN (1) CN102866909B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598723A (en) * 2015-10-19 2017-04-26 北京国双科技有限公司 Configuration method and device for resources in distributed system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364230A (en) * 2008-09-24 2009-02-11 金蝶软件(中国)有限公司 Concurrent access control method and device
CN101887396A (en) * 2009-05-14 2010-11-17 灰熊(北京)科技有限公司 Method for realizing configurable cache

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1235148A (en) * 1999-04-16 1999-11-17 无锡市正茂化工厂 Preparation of high purity antimony glycol
MXPA03011332A (en) * 2001-06-07 2004-07-08 Contentguard Holdings Inc Method for managing access and use of resources by verifying conditions and conditions for use therewith.
US7305469B2 (en) * 2001-12-18 2007-12-04 Ebay Inc. Prioritization of third party access to an online commerce site
US7206845B2 (en) * 2004-12-21 2007-04-17 International Business Machines Corporation Method, system and program product for monitoring and controlling access to a computer system resource
US20080222707A1 (en) * 2007-03-07 2008-09-11 Qualcomm Incorporated Systems and methods for controlling service access on a wireless communication device
US7773513B2 (en) * 2008-10-30 2010-08-10 Motorola, Inc. Admission control for a heterogeneous communication system
CN102137091B (en) * 2010-11-15 2013-11-06 华为技术有限公司 Overload control method, device and system as well as client-side

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364230A (en) * 2008-09-24 2009-02-11 金蝶软件(中国)有限公司 Concurrent access control method and device
CN101887396A (en) * 2009-05-14 2010-11-17 灰熊(北京)科技有限公司 Method for realizing configurable cache

Also Published As

Publication number Publication date
CN102866909A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
US11159318B2 (en) Methods and systems implemented in a network architecture with nodes capable of performing message-based transactions
CN105247529B (en) The synchronous voucher hash between directory service
JP2023051935A (en) Method regarding blockchain network
US8544075B2 (en) Extending a customer relationship management eventing framework to a cloud computing environment in a secure manner
US9047462B2 (en) Computer account management system and realizing method thereof
WO2019033394A1 (en) Blockchain system and right management method therefor
CN102972003A (en) Method and apparatus for providing reactive authorization
WO2020228531A1 (en) Consortium blockchain governance method and apparatus, computer device and storage medium
CN103179099B (en) A kind ofly access the uniform authentication method of open website platform and a kind of website platform
CN105094996A (en) Security-enhancing method and system of Android system based on dynamic authority verification
Zeng et al. A scheme of intelligent traffic light system based on distributed security architecture of blockchain technology
KR102139551B1 (en) Method and server for managing testament
Lin et al. Policy decomposition for collaborative access control
Tang et al. A Trust‐Based Model for Security Cooperating in Vehicular Cloud Computing
Yassein et al. Blockchain technology: Characteristics, security and privacy; issues and solutions
US20180349983A9 (en) A system for periodically updating backings for resource requests
US10013237B2 (en) Automated approval
KR20200107881A (en) Method and server for managing testament
CN102866909B (en) A kind of system and method for the resource lock for controlling docking port resource to access
Wolf et al. Messaging with purpose limitation–privacy-compliant publish-subscribe systems
US20240235817A9 (en) Asset transferring method and apparatus based on multiple blockchains, device, medium, and product
Angelov et al. Dynamic and secure B2B e-contract update management
CN107203890A (en) Credential data distribution method, apparatus and system
KR20200032778A (en) Meeting management method and meeting management system using the method
Ye et al. Boros: Secure cross-channel transfers via channel hub

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180227