CN105930693B - A kind of method and apparatus of soft ware authorization - Google Patents

A kind of method and apparatus of soft ware authorization Download PDF

Info

Publication number
CN105930693B
CN105930693B CN201610281383.3A CN201610281383A CN105930693B CN 105930693 B CN105930693 B CN 105930693B CN 201610281383 A CN201610281383 A CN 201610281383A CN 105930693 B CN105930693 B CN 105930693B
Authority
CN
China
Prior art keywords
authority
authorization
resource
resource usage
software
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.)
Active
Application number
CN201610281383.3A
Other languages
Chinese (zh)
Other versions
CN105930693A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610281383.3A priority Critical patent/CN105930693B/en
Publication of CN105930693A publication Critical patent/CN105930693A/en
Application granted granted Critical
Publication of CN105930693B publication Critical patent/CN105930693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/107License processing; Key processing
    • G06F21/1077Recurrent authorisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a kind of method and apparatus of soft ware authorization, applied to license server, this method comprises: obtaining the authorization resources quantity of the authority of installation, and permission total number resource amount is obtained according to authorization resources quantity, wherein, authorization resources quantity is the quantity of the corresponding permission resource of authority, and the use unit of permission resource representation software, permission total number resource amount is the summation of the authorization resources quantity of the available authority of software;Obtain the resource usage quantity of software, wherein resource usage quantity is the quantity for the permission resource that software has used;Judge whether permission total number resource amount is greater than resource usage quantity;When permission total number resource amount is greater than resource usage quantity, software Successful authorization is determined.The application is capable of the authorization of flexible management software.

Description

A kind of method and apparatus of soft ware authorization
Technical field
This application involves software management domain more particularly to a kind of method and apparatus of soft ware authorization.
Background technique
User is general according to the demand procurement software planned in advance when to software vendor's procurement software, for example, user to The authority of the software X of software vendor's buying includes " 3 years rights to use of 1000 sets of software X ", to be supplied to 1000 visitors Family end uses, and each client is 3 years using the time limit of the software, and software vendor passes through in license server Corresponding authority is installed on (License Server) to be managed collectively the access right for the software that user buys;This Sample, user can just install one without every a set of software of starting and authorize, and any a set of software need to only arrive after actuation to be permitted Server can be demonstrate,proved to be authenticated, and can be obtained authorization after certification passes through.
License server begins to timing after authority installation, and reach software license the time limit after, Authorization failure to the software, user can not continue to use the software;But user may reach licensing for the software When the time limit, and the under utilized software, for example, user has purchased 3 years rights to use of 1000 sets of software X to software vendor, Reaching when licensing the time limit, user has only used 500 sets of softwares or user and has only used the 1 year software in this 3 years, In this way, after the authorization failure of software, even if the under utilized software of user, the software can not also continue to use, Zhi Nengchong The authorization of the software is newly bought, to cause damages to user.
Summary of the invention
In view of this, the application provides a kind of method and apparatus of soft ware authorization, it is capable of the authorization of flexible management software.
Specifically, the application is achieved by the following technical solution:
On the one hand, a kind of method of soft ware authorization is provided, license server is applied to, which comprises obtains peace The authorization resources quantity of the authority of dress, and permission total number resource amount is obtained according to the authorization resources quantity, wherein it is described Authorization resources quantity is the quantity of the corresponding permission resource of the authority, and the permission resource representation software uses list Position, the permission total number resource amount are the summation of the authorization resources quantity of the available authority of the software;Obtain software Resource usage quantity, wherein the resource usage quantity is the quantity for the permission resource that the software has used;Described in judgement Whether permission total number resource amount is greater than the resource usage quantity;It is greater than the resource in the permission total number resource amount and uses number When amount, the software Successful authorization is determined.
On the other hand, a kind of device of soft ware authorization is provided, is applied to license server, described device includes: first Acquiring unit, the authorization resources quantity of the authority for obtaining installation, and permission is obtained according to the authorization resources quantity Total number resource amount, wherein the authorization resources quantity is the quantity of the corresponding permission resource of the authority, the permission money The use unit of source-representation software, the permission total number resource amount are the authorization resources quantity of the available authority of the software Summation;Second acquisition unit, for obtaining the resource usage quantity of software, wherein the resource usage quantity is described soft The quantity for the permission resource that part has used;Judging unit, for judging whether the permission total number resource amount is greater than the money Source usage quantity;Authorization unit, for determining described soft when the permission total number resource amount is greater than the resource usage quantity Part Successful authorization.
Using the embodiment of the present invention, the authorization resources quantity of the authority of installation is obtained, and according to the authorization resources number Measure permission total number resource amount, wherein the authorization resources quantity is the quantity of the corresponding permission resource of the authority, the power The use unit of resource representation software is limited, which is the authorization resources quantity of the available authority of the software Summation;Obtain the resource usage quantity of software, wherein the resource usage quantity is the permission resource that the software has used Quantity;Judge whether the permission total number resource amount is greater than the resource usage quantity;It is greater than the resource in the permission total number resource amount When usage quantity, the software Successful authorization is determined.In this way, licensing software the time limit and licensing of the embodiment of the present invention Quantity is quantified as specific permission resource, and by judging whether the permission total number resource amount is greater than the resource usage quantity It determines whether to carry out using authorization software, so that user licenses the phase to what the use of software was no longer limited to software Quantity is limited and licensed, the authorization of user can be flexibly managed the service condition of the software according to user.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of software authorization method shown in one exemplary embodiment of the application;
Fig. 2 is a kind of structural schematic diagram of the device of soft ware authorization shown in one exemplary embodiment of the application;
Fig. 3 is the structural schematic diagram of the device of another soft ware authorization shown in one exemplary embodiment of the application;
Fig. 4 is the structural schematic diagram of the device of the third soft ware authorization shown in one exemplary embodiment of the application;
Fig. 5 is the structural schematic diagram of the device of the 4th kind of soft ware authorization shown in one exemplary embodiment of the application;
Fig. 6 is a kind of hardware structural diagram of license server shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
The method of soft ware authorization provided in an embodiment of the present invention, after authority is installed successfully, license server is to making It is carried out with the client of the software using authorization, it, can be by judging the permission total number resource in following embodiment of the present invention Whether amount is greater than the resource usage quantity to determine whether to authorize software, so that user no longer limits to the use of software The time limit and quantity is licensed in licensing for software, flexibly the service condition management of the software can be used according to user The authorization at family.
Below with reference to specific embodiment, the present invention is described in detail.
Fig. 1 is a kind of method of soft ware authorization provided in an embodiment of the present invention, as shown in Figure 1, this method can be applied to License server, this method comprises:
S101, the authorization resources quantity for obtaining the authority installed, and permission money is obtained according to the authorization resources quantity Source total quantity.
Wherein, which is the quantity of the corresponding permission resource of the authority, and the permission resource representation is soft The use unit of part, the permission total number resource amount are the available authority (authority in such as use or also of the software Not used authority) authorization resources quantity summation.
In the present embodiment, in the initial state, since the authority of the software is not installed also, permission money Source total quantity is 0, and after installing the authority of software, license server parses the authority and obtains authority information, should Authority information, which can be, to be licensed the time limit and licenses quantity, license server can be licensed according to this time limit with The authorization resources quantity for licensing quantity and preset authorization management time authorized file, is obtaining the authority After authorization resources quantity, which is updated according to the authorization resources quantity.For example, the permission of the authority is believed Breath includes 1 year (be equivalent to and license the time limit) right to use of 500 sets of (be equivalent to and license quantity) software, license service Device parses the authority and obtains the authority information, and obtains " 4380000 (500*365*24) part softwares according to the authority information 1 hour right to use " (being equivalent to authorization resources quantity), wherein 500 be 500 sets softwares, 365 be 1 year number of days for including, 24 The hourage for including for 1 day, " 1 hour right to use of software " are permission resource, manage the time for preset authorization within " 1 hour "; And the permission total number resource amount is updated to 4380000;Certainly, above-mentioned " 1 hour right to use of 4380000 parts of software " is only lifted Example explanation, this is not limited by the present invention, and above-mentioned permission resource quantity can also be that " 2 hours of 2190000 parts of software use Power " or " 1 month right to use of 6000 parts of software " etc. can specifically manage time advance configuration according to preset authorization.
It should be noted that the license server (can also such as be used in another authority of the subsequent installation software The subsequent authorization for having purchased the software again in family), then license server parses another authority, and obtains this and another award The authority information of file is weighed, and the authorization resources number of another authority is obtained according to the authority information of another authority Amount, and the permission total number resource amount is updated (such as by another authority according to the authorization resources quantity of another authority Authorization resources quantity be added to obtain the permission total number resource amount with the authorization resources quantity for the authority installed before), example Such as, license server installs another authority of the software, and the authority information of another authority includes 2000 sets and is somebody's turn to do 1 year right to use of software, license server parse another authority and obtain the authority information of another authority, and Authorization resources quantity " 17520000 (the 2000* of another authority are obtained according to the authority information of another authority 365*24) 1 hour right to use of part software ", and according to the authorization resources quantity of another authority by permission total number resource Amount is updated to " 21900000 (4380000+17520000) ".
S102, the resource usage quantity for obtaining software.
In this step, license server obtains the resource of the software after reaching preset authorization management trigger condition Usage quantity, in one possible implementation, which, which can be, reaches preset time, specifically Ground, which can be set preset time, and start timing after the installation of the authority of the software, reach this After preset time, reclocking and the resource usage quantity for obtaining software;Illustratively, the preset time can be in the present embodiment The time is managed for above-mentioned preset authorization, for example, authorization resources quantity (1 hour of i.e. 4380000 parts software of above-mentioned authority The right to use) it is to be obtained for (being equivalent to the preset authorization management time) by 1 hour, then it is small to can be set to 1 for the preset time When.
In a kind of implementation for optionally obtaining resource usage quantity, license server acquisition has currently successfully been awarded Power licenses quantity, and licenses quantity according to this and obtains the resource usage quantity, wherein this is licensed quantity and is The quantity of Successful authorization is determined according to the authorized application message, which recognizes the client for requesting Card;Illustratively, quantity can be licensed according to this and the product of preset authorization management time determines the resource usage quantity, example Such as, license server receives the authorized application message of 1000 clients transmission, and all authorizes to 1000 clients Success, then it is 1000 that this, which licenses quantity, when reaching preset time (such as 1 hour), calculates this and licenses quantity and pre- If the product of empowerment management time obtains 1000 (1000*1), then the resource usage quantity increases by 1000.Reach again subsequent After above-mentioned preset time, if current quantity of licensing is 2000, calculates this and license quantity and when preset authorization manages Between product obtain 2000 (2000*1), then the resource usage quantity increases by 2000 again becomes 3000 (2000 plus 1000).
It should be noted that the permission total number resource amount can be less than the resource and make in the use process of authority With quantity, specifically, when being also not up to the preset authorization management time, which may be total with permission resource Quantity is equal, at this point, managing the time due to being also not up to preset authorization, in the present embodiment, the authority is still It can continue to use, when reaching the preset authorization management time, which can then be greater than the permission total number resource Amount, for example, the authority information of authority is " 1 hour right to use of 4380000 parts of software ", then the permission total number resource amount is 4380000, after 45 minutes, which has been 4380000, due to being also not up to 1 hour, then the authorization File still can continue to use, which continues growing, and after reaching 1 hour, and the resource usage quantity is It has been more than 4380000 (i.e. permission total number resource amounts).
S103, judge whether the permission total number resource amount is greater than the resource usage quantity.
S104, the permission total number resource amount be greater than the resource usage quantity when, determine the software Successful authorization.
Wherein, when the permission total number resource amount is equal to the resource usage quantity, determine that the soft ware authorization fails.
Optionally, after determining the software Successful authorization, the embodiment of the present invention can also determine the authorization shape of authority State, specifically, comprising the following steps:
S01, the resource usage quantity be greater than 0 when, from the authority of installation determine target authority.
Wherein, which installs the target authority in advance, and obtains the authorization of the target authority Resource quantity, specific description can be said with reference to the acquisition of the authorization resources quantity of authority in above-mentioned steps S101 Bright, details are not described herein again.
After getting resource usage quantity, judge whether the resource usage quantity is greater than 0, in the resource usage quantity etc. When 0, then it represents that the software is not used by;When the resource usage quantity is greater than 0, then it represents that the software is used, in this reality It applies in example, license server can be set using status indicator for authority, and use state mark is for marking authorization The use state of file, which may include " in use ", " unused " and " being finished ", and install the authority It afterwards, can be " unused " by the use state default setting of the authority.
In the present embodiment, this step S01 may comprise steps of:
If S11, the resource usage quantity are greater than 0, license server searches the authority being marked as " in use ".
S12, it is marked as authority " in use " if it exists, it is determined that this is marked as authority " in use " For target authority.
S13, it is marked as authority " in use " if it does not exist, then selects an authority labeled as " using In ", and determining that this is marked as authority " in use " is target authority.
It should be noted that in one possible implementation, can an optional authority labeled as " using In ", authority can also be selected to be labeled as " in use " according to certain rule, such as can according to authorization resources quantity into Row selection, alternatively, can also be selected according to the erection sequence of authority.Such as selected according to authorization resources quantity When, select the authority of authorization resources minimum number, or authority or other quantity that selection authorization resources quantity is most Mode is selected.When such as being selected according to the erection sequence of authority, the authority installed at first, or selection are selected The authority or other times mode finally installed are selected.As to how selection is it is not limited here, as long as authorization text Part is available and can be selected.If have according to the authority that certain rule is elected it is multiple, such as according to authorization resources When quantity selects, there is the authority of identical quantity authorization resources may have multiple, at this point, can also be further according to installation Sequence is selected or an optional authority.The authority come is selected labeled as " in use ", is labeled Authority for " in use " is target authority.
S02 determines the target authority according to the authorization resources quantity and the resource usage quantity of the target authority Licensing status.
Wherein, the licensing status of the target authority may include state of licensing and authorization expires state, at this Target authority is when licensing state, then it represents that the target authority is to authorize undue authority, at this Target authority be authorization expire state when, then it represents that the target authority be to authorize the authority that has expired.
In the present embodiment, after determining target authority, judge that the authorization resources quantity of the target authority is It is no to be greater than the resource usage quantity;When the authorization resources quantity of the target authority is greater than the resource usage quantity, determine The target authority is to license state, and being less than or equal to the resource in the authorization resources quantity of the target authority makes When with quantity, determine that the target authority expires state for authorization, and according to the authorization resources quantity of the target authority Update the permission total number resource amount and resource usage quantity.
Illustratively, if the authorization resources quantity of the target authority is M, it is less than or equal to resource usage quantity in M When, which is labeled as " being finished ", and resource usage quantity is subtracted into M, permission total number resource amount subtracts M, example Such as, resource usage quantity is 4380500 parts, target authority is in " in use " state, and the target authority is awarded Weigh resource quantity be 4380000 parts, then the use state of target authority be " being finished " when, resource usage quantity from 4380500 become 500 (4380500-4380000), if permission total number resource amount be 21900000, permission total number resource amount from 21900000 become 17520000 (21900000-4380000).
In the present embodiment one kind optionally implementation, after determining the target authority to authorize the state that expires, If it is determined that updated resource usage quantity is greater than 0, continued to determine next target authorization according to updated resource usage quantity File, and when the authorization resources quantity of next target authority is less than or equal to the resource usage quantity, update the power Total number resource and the resource usage quantity are limited, until the authorization resources quantity of the target authority redefined is greater than the resource Usage quantity, and when determining the permission total number resource amount is 0, software, which is sent, to client uses expiration notice message.
Wherein it is possible to according to updated resource usage quantity continue to execute above-mentioned steps S11 to step S13 determine it is next Target authority, and it is less than or equal to the resource usage quantity (i.e. in the authorization resources quantity of next target authority Next target authority is to authorize the state that expires) when, the permission total number resource and the resource usage quantity are updated, until weight Newly the authorization resources quantity of determining target authority is greater than the resource usage quantity, and whether judges permission total number resource amount It is 0, when the permission total number resource amount is 0, sends software to client and use expiration notice message;Wherein, which uses Expiration notice message is for informing that the authorization of user's software has expired;When the permission total number resource amount is not 0, then the software Authorization it is not yet due.
Optionally, it after determining the licensing status of the authority, receives for unloading the mounted authority Unloading command;When it is to authorize to expire state that this, which has installed authority, this is unloaded according to the unloading command, authorization text has been installed Part;When it is to license state that this, which has installed authority, this is unloaded according to the unloading command, authority has been installed, and more The new permission total number resource amount.
In the present embodiment one kind optionally implementation, receiving for unloading the unloading for having installed authority It, can be using different unloading strategies, specifically for the authority of having installed of different use states after instruction:
If the use state for having installed authority is " being finished ", when in unloading, this has installed authority, record This has installed the mark of authority, it is subsequent reinstall that the mark is corresponding to have installed authority when, may include with Lower two kinds of implementations:
It is a kind of to be achieved in that refusing this has installed the installation again of authority;Another implementation is then to allow this Resource after reinstalling this and having installed authority, is used number under the implementation by the installation for having installed authority Amount has installed the resource usage quantity of authority plus this, at this point, due to the authorization resources quantity for having installed authority When less than or equal to the resource usage quantity, it is determined that the target authority is to authorize the state that expires.
For example, license server is equipped with the authority 1 and authority 2 of software, the authority information of authority 1 1 year right to use including 500 sets of software, then authorization resources quantity is 4380000 (i.e. 4380000 parts of software uses in one hour Power), the authority information of authority 2 includes 1 year right to use of 2000 sets of software, then authorization resources quantity is 17520000 (i.e. 17520000 parts of software, one hour right to use), at this point, permission total number resource amount is 21900000 (i.e. 21900000 parts of softwares 1 The right to use of hour), the use state of authority 1 is " in use ", and the use state of authority 2 is " unused ", is passed through After one hour, resource usage quantity becomes 4380000, identical as the authorization resources quantity of authority 1, then the authority 1 Use state become " being finished ", resource usage quantity be 0, the use state of authority 2 is changed to " in use ", unloading should Authority 1, and it is subsequent reinstall the authority 1 when, resource usage quantity be 2000000, then the resource use number Amount becomes 6380000 plus the authorization resources quantity of the authority 1, awards since the resource usage quantity (6380000) is greater than The authorization resources quantity (4380000) of file 1 is weighed, which is to authorize the state that expires, therefore, even if the authority 1 It is mounted, is still within the state not being available.
If the use state for having installed authority is " in use ", when authority has been installed in unloading, storage Current resource usage quantity and this authorization resources quantity of authority has been installed, and empty the resource in resource pool use Quantity, and the permission total number resource amount in resource pool is subtracted into the authorization resources quantity for having installed authority, it is subsequent again Secondary installation this when authority has been installed, however, it is determined that have the resource usage quantity stored when having installed authority unloading and This has installed the authorization resources quantity of authority, then after installing this and having installed authority, permission total number resource amount is added Upper this has installed the authorization resources quantity of authority, and the resource by current resource usage quantity plus storage uses number Amount, and delete storage resource usage quantity and this authorization resources quantity of authority has been installed, while this having been installed The use state of authority is labeled as " unused ".
For example, being still illustrated by taking the authority 1 and authority 2 of the installation of above-mentioned license server as an example, weigh Limiting total number resource amount is 21900000, and the use state of authority 1 is " in use ", and the use state of authority 2 is " not With ", resource usage quantity is 2000000, and when unloading the authority 1, resource usage quantity becomes 0, permission total number resource The authorization resources quantity (i.e. 4380000) that amount subtracts authority 1 becomes 17520000, at this point, the use state of authority 2 Become " in use ", and after a period of time has passed, resource usage quantity becomes 1500000, is reinstalling the authority 1 When, permission total number resource amount becomes 21900000 plus the authorization resources quantity of the authority 1, and resource usage quantity adds should The resource (i.e. 2000000) that authority 1 uses becomes 3500000, and by the use state of the authority 1 labeled as " not With ";Above-mentioned specific value is merely illustrative, and the present embodiment is not construed as limiting this.
After the use state that this has been installed to authority is labeled as " unused ", in a kind of optionally implementation, The authority information for having installed authority reinstalled is obtained, and is somebody's turn to do according to the authority information for having installed authority The authorization resources quantity of authority has been installed, and permission money is updated according to the authorization resources quantity for having installed authority Source total quantity and the resource usage quantity, new target authority are determined according to updated resource usage quantity, and at this The authorization resources quantity of new target authority be less than or equal to the resource usage quantity when, update the permission total number resource and The resource usage quantity, until the authorization resources quantity of the new target authority determined is greater than the resource usage quantity.Example Such as, above-mentioned steps S11 to step S13 can be continued to execute according to updated resource usage quantity determines new target authorization text Part, and when the authorization resources quantity of the new authority is less than or equal to the resource usage quantity, update the permission resource Sum and the resource usage quantity, until the authorization resources quantity of the new target authority is greater than the resource usage quantity.
If the use state for having installed authority is " unused ", when unloading the authority, by permission resource Total quantity subtracts the authorization resources quantity of the authority, and allow it is subsequent install again, and subsequent installation should " unused " Authority when, by permission total number resource amount add the authority authorization resources quantity.
Using the method for soft ware authorization provided by the above embodiment, the embodiment of the present invention by software license the time limit and It licenses quantity and is quantified as specific permission resource, and by judging whether the permission total number resource amount is greater than the resource Usage quantity determines whether to carry out using authorization software, so that user is no longer limited to awarding for software to the use of software It weighs service life and licenses quantity, the authorization of user can be flexibly managed the service condition of the software according to user.
Fig. 2 is a kind of device of soft ware authorization provided in an embodiment of the present invention, is applied to license server, such as Fig. 2 institute Show, which includes:
First acquisition unit 201, the authorization resources quantity of the authority for obtaining installation, and according to the authorization resources Quantity obtains permission total number resource amount, wherein the authorization resources quantity is the quantity of the corresponding permission resource of the authority, should The use unit of permission resource representation software, the permission total number resource amount are the authorization resources number of the available authority of the software The summation of amount;
Second acquisition unit 202, for obtaining the resource usage quantity of software, wherein the resource usage quantity is that this is soft The quantity for the permission resource that part has used;
Judging unit 203, for judging whether the permission total number resource amount is greater than the resource usage quantity;
Authorization unit 204, for determining software success when the permission total number resource amount is greater than the resource usage quantity Authorization.
Optionally, the second acquisition unit 202 licenses quantity specifically for the current Successful authorization of acquisition;Its In, it is the quantity that the authorized application message sent according to client determines Successful authorization that this, which licenses quantity,;The authorized application Message authenticates the client for requesting, and licenses quantity according to this and obtain the resource usage quantity.
Optionally, as shown in figure 3, the device further include:
Determination unit 205, for determining that target is awarded from the authority of installation when the resource usage quantity is greater than 0 Weigh file;
Status determining unit 206, for the authorization resources quantity and the resource usage quantity according to the target authority Determine the licensing status of the target authority.
Optionally, the determination unit 205 selects the target specifically for the erection sequence of the authority according to the software Authority;Alternatively, selecting the target authority according to the authorization resources quantity of the authority of the software.
Optionally, the status determining unit 206, specifically for judge the target authority authorization resources quantity whether Greater than the resource usage quantity;When the authorization resources quantity of the target authority is greater than the resource usage quantity, determining should Target authority is to license state;It is used in the authorization resources quantity of the target authority less than or equal to the resource When quantity, the target authority is determined to authorize the state that expires.
Optionally, as shown in figure 4, the device further include:
Second updating unit 207, for being awarded according to the target after determining the target authority to authorize the state that expires The authorization resources quantity of power file updates the permission total number resource and the resource usage quantity;
Processing unit 208, for continuing to determine next target authority according to updated resource usage quantity, and When the authorization resources quantity of next target authority is less than or equal to the resource usage quantity, the permission total number resource is updated With the resource usage quantity, until the authorization resources quantity of target authority redefined is greater than the resource usage quantity, And when determining the permission total number resource amount is 0, software is sent to client and uses expiration notice message.
Optionally, as shown in figure 5, the device further include:
Unloading unit 209, for true according to the authorization resources quantity of the target authority and the resource usage quantity After the licensing status of the fixed target authority, receive for unloading the unloading command for having installed authority;It has installed at this Authority is when authorizing to expire state, to unload this according to the unloading command and installed authority;This installed authorization text Part is when licensing state, to unload this according to the unloading command and installed authority, and update the permission total number resource amount.
Using the device of soft ware authorization provided by the above embodiment, licensing software the time limit and license quantity Be quantified as specific permission resource, and by judge the permission total number resource amount whether be greater than the resource usage quantity thus Determine whether to carry out using authorization software so that user to the use of software be no longer limited to software license the time limit and Quantity is licensed, the authorization of user can be flexibly managed the service condition of the software according to user.
The embodiment of the device of soft ware authorization provided by the present application can be applied in license server.Installation practice It can also be realized by way of hardware or software and hardware combining by software realization.Taking software implementation as an example, as one Device on a logical meaning is by the processor of license server where it by meter corresponding in nonvolatile memory Calculation machine program instruction is read into memory what operation was formed.For hardware view, as shown in fig. 6, being the application soft ware authorization Device where license server a kind of hardware structure diagram, in addition to processor shown in fig. 6, memory, network interface and Except nonvolatile memory, it can also include other hardware, this is repeated no more.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (14)

1. a kind of method of soft ware authorization, which is characterized in that be applied to license server, which comprises
The authority of parsing installation obtains authority information;The authority information includes licensing the time limit and licensing number Amount;
It licenses the time limit according to described, described license quantity and the preset authorization management time obtains the authority Authorization resources quantity, and permission total number resource amount is obtained according to the authorization resources quantity, wherein the authorization resources quantity For the quantity of the corresponding permission resource of the authority, the use unit of the permission resource representation software, the permission money Source total quantity is the summation of the authorization resources quantity of the available authority of the software;
Obtain the resource usage quantity of software, wherein the resource usage quantity is the permission resource that the software has used Quantity;
Judge whether the permission total number resource amount is greater than the resource usage quantity;
When the permission total number resource amount is greater than the resource usage quantity, the software Successful authorization is determined.
2. the method according to claim 1, wherein the resource usage quantity for obtaining software includes:
Obtain current Successful authorization licenses quantity;Wherein, the quantity of licensing is to be sent according to client Authorized application message determines the quantity of Successful authorization;The authorized application message authenticates the client for requesting;
The resource usage quantity is obtained according to the quantity of licensing.
3. method according to claim 1 or 2, which is characterized in that after determining the software Successful authorization, the method Further include:
When the resource usage quantity is greater than 0, target authority is determined from the authority of installation;
The target authority is determined according to the authorization resources quantity of the target authority and the resource usage quantity Licensing status.
4. according to the method described in claim 3, it is characterized in that, determining target authorization text in the authority from installation Part includes:
The target authority is selected according to the erection sequence of the authority of the software;Alternatively,
The target authority is selected according to the authorization resources quantity of the authority of the software.
5. according to the method described in claim 3, it is characterized in that, the authorization resources number according to the target authority Amount and the resource usage quantity determine that the licensing status of the target authority includes:
Judge whether the authorization resources quantity of the target authority is greater than the resource usage quantity;
When the authorization resources quantity of the target authority is greater than the resource usage quantity, the target authorization text is determined Part is to license state;
When the authorization resources quantity of the target authority is less than or equal to the resource usage quantity, the target is determined Authority is to authorize the state that expires.
6. according to the method described in claim 5, it is characterized in that, being that authorization expires in the determination target authority After state, the method also includes:
The permission total number resource and the resource usage quantity are updated according to the authorization resources quantity of the target authority;
Continued to determine next target authority according to updated resource usage quantity, and in next target authority Authorization resources quantity when being less than or equal to the resource usage quantity, update the permission total number resource and the resource and use Quantity, until the authorization resources quantity of the target authority redefined is greater than the resource usage quantity, and determining State permission total number resource amount be 0 when, to client send software use expiration notice message.
7. according to the method described in claim 3, it is characterized in that, in the authorization resources according to the target authority After quantity and the resource usage quantity determine the licensing status of the target authority, the method also includes:
It receives for unloading the unloading command for having installed authority;
It is described installed authority for authorization expire state when, authorization text has been installed according to unloading command unloading is described Part;
It is described to have installed authority be to license state when, authorization text has been installed according to unloading command unloading is described Part, and update the permission total number resource amount.
8. a kind of device of soft ware authorization, which is characterized in that be applied to license server, described device includes:
First acquisition unit, the authority for parsing installation obtain authority information;The authority information includes licensing Time limit and license quantity;
The first acquisition unit is also used to license the time limit according to, described licenses quantity and preset authorization The management time obtains the authorization resources quantity of the authority, and obtains permission total number resource according to the authorization resources quantity Amount, wherein the authorization resources quantity is the quantity of the corresponding permission resource of the authority, and the permission resource representation is soft The use unit of part, the permission total number resource amount are the summation of the authorization resources quantity of the available authority of the software;
Second acquisition unit, for obtaining the resource usage quantity of software, wherein the resource usage quantity be the software The quantity of permission resource through using;
Judging unit, for judging whether the permission total number resource amount is greater than the resource usage quantity;
Authorization unit, for when the permission total number resource amount is greater than the resource usage quantity, determining the software success Authorization.
9. device according to claim 8, which is characterized in that the second acquisition unit is specifically used for obtaining currently Successful authorization licenses quantity;Wherein, the quantity of licensing is that the authorized application message that is sent according to client is true Determine the quantity of Successful authorization;The authorized application message authenticates the client for requesting, and according to the authorization Usage quantity obtains the resource usage quantity.
10. device according to claim 8 or claim 9, which is characterized in that described device further include:
Determination unit, for determining target authorization text from the authority of installation when the resource usage quantity is greater than 0 Part;
Status determining unit, for being determined according to the authorization resources quantity of the target authority and the resource usage quantity The licensing status of the target authority.
11. device according to claim 10, which is characterized in that the determination unit is specifically used for according to the software The erection sequence of authority select the target authority;Alternatively, being provided according to the authorization of the authority of the software Source quantity selects the target authority.
12. device according to claim 11, which is characterized in that the status determining unit is specifically used for described in judgement Whether the authorization resources quantity of target authority is greater than the resource usage quantity;It is provided in the authorization of the target authority When source quantity is greater than the resource usage quantity, determine that the target authority is to license state;It is awarded in the target When weighing the authorization resources quantity of file less than or equal to the resource usage quantity, determine that the target authority arrives for authorization Phase state.
13. device according to claim 12, which is characterized in that described device further include:
Second updating unit, for determining that the target authority expires after state for authorization, according to the target authorization The authorization resources quantity of file updates the permission total number resource and the resource usage quantity;
Processing unit determines next target authority for continuing according to updated resource usage quantity, and under described When the authorization resources quantity of one target authority is less than or equal to the resource usage quantity, the permission total number resource is updated With the resource usage quantity, number is used up to the authorization resources quantity of the target authority redefined is greater than the resource Amount, and when determining the permission total number resource amount is 0, software, which is sent, to client uses expiration notice message.
14. device according to claim 10, which is characterized in that described device further include:
Unloading unit, for determining institute according to the authorization resources quantity and the resource usage quantity of the target authority After the licensing status for stating target authority, receive for unloading the unloading command for having installed authority;It has been installed described Authority is to have installed authority according to unloading command unloading is described when authorizing to expire state;It has been installed described Authority is to have installed authority according to unloading command unloading is described, and update the power when licensing state Limit total number resource amount.
CN201610281383.3A 2016-04-29 2016-04-29 A kind of method and apparatus of soft ware authorization Active CN105930693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610281383.3A CN105930693B (en) 2016-04-29 2016-04-29 A kind of method and apparatus of soft ware authorization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610281383.3A CN105930693B (en) 2016-04-29 2016-04-29 A kind of method and apparatus of soft ware authorization

Publications (2)

Publication Number Publication Date
CN105930693A CN105930693A (en) 2016-09-07
CN105930693B true CN105930693B (en) 2019-04-09

Family

ID=56837696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610281383.3A Active CN105930693B (en) 2016-04-29 2016-04-29 A kind of method and apparatus of soft ware authorization

Country Status (1)

Country Link
CN (1) CN105930693B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109063423B (en) * 2018-07-16 2020-12-11 北京知道创宇信息技术股份有限公司 Application software authorization method and system
CN109547435B (en) * 2018-11-23 2021-06-29 新华三信息安全技术有限公司 Authorization authentication method and device
CN112016065B (en) * 2019-05-31 2023-10-10 杭州海康威视数字技术股份有限公司 Dual-user authentication method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0876994A (en) * 1994-08-31 1996-03-22 Nec Corp Method and device for management of software license
CN101112063A (en) * 2004-11-29 2008-01-23 唐鲍勃 Immediate ready implementation of virtually congestion free guaranteed service capable network: external internet nextgentcp (square waveform) tcp friendly san
CN102054135A (en) * 2009-11-06 2011-05-11 北大方正集团有限公司 Software authorization method and device
CN103718633A (en) * 2013-08-30 2014-04-09 华为技术有限公司 Method, device and system for resource allocation
CN103838987A (en) * 2013-06-24 2014-06-04 电子科技大学 Software license dynamic authorization management method based on local area network
CN105027105A (en) * 2013-04-30 2015-11-04 惠普发展公司,有限责任合伙企业 Resource authorization quantities

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0876994A (en) * 1994-08-31 1996-03-22 Nec Corp Method and device for management of software license
CN101112063A (en) * 2004-11-29 2008-01-23 唐鲍勃 Immediate ready implementation of virtually congestion free guaranteed service capable network: external internet nextgentcp (square waveform) tcp friendly san
CN102054135A (en) * 2009-11-06 2011-05-11 北大方正集团有限公司 Software authorization method and device
CN105027105A (en) * 2013-04-30 2015-11-04 惠普发展公司,有限责任合伙企业 Resource authorization quantities
CN103838987A (en) * 2013-06-24 2014-06-04 电子科技大学 Software license dynamic authorization management method based on local area network
CN103718633A (en) * 2013-08-30 2014-04-09 华为技术有限公司 Method, device and system for resource allocation

Also Published As

Publication number Publication date
CN105930693A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105930693B (en) A kind of method and apparatus of soft ware authorization
US8151257B2 (en) Managing different versions of server components regarding compatibility with collaborating servers
EP3460694B1 (en) Authentication system
US7555749B2 (en) Software updating system and method
AU2005200345B2 (en) Update distribution system architecture and method for distributing software
US8850605B2 (en) System and method for capacity licensing
CN107003862A (en) Dynamic code is disposed and versioned
US9026626B2 (en) Management device, information processing system, management method, and storage medium
US20080046378A1 (en) System and method for selling software on a pay-per-use basis
WO2003029936A1 (en) New business model for downloadable video games
CN101313298A (en) Enforcing subscription validity
JP2004295270A (en) Shared storage system
US20170352115A1 (en) Mobile application licensing tool
GB2397909A (en) Managing temporary capacity in a computer system
EP3835978A1 (en) Software license manager
JP2021140829A (en) Information processing apparatus, method for controlling information processing apparatus, and program
US20050034119A1 (en) Rental program management system
JP2006293747A (en) Management server and management method
US20060075401A1 (en) Patch installation control
US20210182407A1 (en) Execution type software license management
WO2016209853A1 (en) Application management
US20050038751A1 (en) System and method for software site licensing
EP2742473B1 (en) System and method for electronic distribution of software and data
EP2015218A2 (en) Method and system for data product license-modification coupons
US20080065551A1 (en) Auto-detecting and downloading licensed computer products

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant