CN105930693A - Software authorization method and apparatus - Google Patents
Software authorization method and apparatus Download PDFInfo
- Publication number
- CN105930693A CN105930693A CN201610281383.3A CN201610281383A CN105930693A CN 105930693 A CN105930693 A CN 105930693A CN 201610281383 A CN201610281383 A CN 201610281383A CN 105930693 A CN105930693 A CN 105930693A
- Authority
- CN
- China
- Prior art keywords
- authority
- resource usage
- resource
- software
- authorization
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000013475 authorization Methods 0.000 claims abstract description 151
- 238000009434 installation Methods 0.000 claims description 11
- 239000000203 mixture Substances 0.000 claims description 8
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/107—License processing; Key processing
- G06F21/1077—Recurrent authorisation
Abstract
The present application provides a software authorization method and apparatus, which are applied to a license server. The method comprises: acquiring a quantity of authorization resources of an installed authorization file, and obtaining a total quantity of authority resources according to the quantity of the authorization resources, wherein the quantity of the authorization resources is a quantity of authority resources corresponding to the authorization file, the authority resources are usage units of software, and the total quantity of the authority resources is a sum of a quantity of authorization resources of an available authorization file of the software; acquiring a resource usage quantity of the software, wherein the resource usage quantity is a quantity of the authority resources that has been used by the software; determining whether the total quantity of the authority resources is greater than the resource usage quantity; and when the total quantity of the authority resources is greater than the resource usage quantity, determining successful software authorization. The method and apparatus provided by the present application are capable of flexibly managing software authorization.
Description
Technical field
The application relates to software management domain, the method and apparatus particularly relating to a kind of soft ware authorization.
Background technology
User, when to software vendor's procurement software, is typically based on the demand procurement software planned in advance, such as,
User includes " 3 years rights to use of 1000 set software X " to the authority of the software X that software vendor purchases,
Thus be supplied to 1000 clients and use, and each client uses time limit of this software to be 3 years, soft
Part manufacturer is by above installing corresponding authority to user in license server (License Server)
The use authority of the software bought is managed collectively;So, user just can often start a set of soft
Part is just installed one and is authorized, and any a set of software the most only need to arrive license server and be authenticated,
And mandate can be obtained after certification is passed through.
License server begins to timing after authority is installed, and is reaching licensing of software
After time limit, the mandate to this software was lost efficacy, and user cannot be continuing with this software;But, user may
Reaching when licensing the time limit of this software, and this software under utilized, such as, user is to software
Manufacturer has purchased 3 years rights to use of 1000 set software X, and when reaching to license the time limit, user only makes
In these 3 years, 1 year this software is only employed, so, when software with 500 set softwares or user
Authorizing after losing efficacy, even if user's this software under utilized, this software also cannot be continuing with, Zhi Nengchong
The mandate of this software newly purchased, thus user is caused damage.
Summary of the invention
In view of this, the method and apparatus that the application provides a kind of soft ware authorization, it is possible to manage software flexibly
Mandate.
Specifically, the application is achieved by the following technical solution:
On the one hand, it is provided that a kind of method of soft ware authorization, being applied to license server, described method includes:
Obtain the authorization resources quantity of the authority installed, and obtain authority resource according to described authorization resources quantity
Total quantity, wherein, described authorization resources quantity is the quantity of authority resource corresponding to described authority, institute
Stating the use unit of authority resource representation software, described authority total number resource amount is the available mandate of described software
The summation of the authorization resources quantity of file;Obtaining the resource usage quantity of software, wherein, described resource uses
Quantity is the quantity of the authority resource that described software has used;Whether judge described authority total number resource amount
More than described resource usage quantity;When described authority total number resource amount is more than described resource usage quantity, really
Fixed described software Successful authorization.
On the other hand, it is provided that the device of a kind of soft ware authorization, it is applied to license server, described device bag
Include: the first acquiring unit, for obtaining the authorization resources quantity of the authority of installation, and award according to described
Power resource quantity obtains authority total number resource amount, and wherein, described authorization resources quantity is described authority pair
The quantity of the authority resource answered, the use unit of described authority resource representation software, described authority total number resource
Amount is the summation of the authorization resources quantity of the available authority of described software;Second acquisition unit, is used for obtaining
Taking the resource usage quantity of software, wherein, described resource usage quantity is the power that described software has used
The quantity of limit resource;Judging unit, is used for judging that whether described authority total number resource amount is more than described resource
Usage quantity;Granted unit, is used for when described authority total number resource amount is more than described resource usage quantity,
Determine described software Successful authorization.
Use the embodiment of the present invention, obtain the authorization resources quantity of the authority installed, and according to this mandate
Resource quantity obtains authority total number resource amount, and wherein, this authorization resources quantity is the power that this authority is corresponding
The quantity of limit resource, the use unit of this authority resource representation software, this authority total number resource amount is this software
The summation of authorization resources quantity of available authority;Obtain the resource usage quantity of software, wherein, be somebody's turn to do
Resource usage quantity is the quantity of the authority resource that this software has used;Judge this authority total number resource amount
Whether more than this resource usage quantity;When this authority total number resource amount is more than this resource usage quantity, determine
This software Successful authorization.So, the embodiment of the present invention licensing software the time limit and licensing quantity
It is quantified as concrete authority resource, and by judging whether described authority total number resource amount makes more than described resource
Determine whether to carry out software using to authorize by quantity so that the use of software is no longer limited to by user
Software license time limit and license quantity, it is possible to flexibly according to user's use feelings to this software
The mandate of condition management user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of software authorization method shown in the application one exemplary embodiment;
Fig. 2 is the structural representation of the device of a kind of soft ware authorization shown in the application one exemplary embodiment;
Fig. 3 is the structural representation of the device of the another kind of soft ware authorization shown in the application one exemplary embodiment;
Fig. 4 is the structural representation of the device of the third soft ware authorization shown in the application one exemplary embodiment;
Fig. 5 is the structural representation of the device of the 4th shown in the application one exemplary embodiment kind soft ware authorization;
Fig. 6 is the hardware architecture diagram of a kind of license server shown in the application one exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches
Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.
Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application
Formula.On the contrary, they only with describe in detail in appended claims, the application some in terms of mutually one
The example of the apparatus and method caused.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting this
Application." a kind of ", " described " of singulative used in the application and appended claims
" it is somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.It is also understood that
Term "and/or" used herein refer to and comprise any of one or more project of listing being associated or
Likely combine.
Although should be appreciated that may use term first, second, third, etc. to describe various letter in the application
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information district each other
Separately.Such as, in the case of without departing from the application scope, the first information can also be referred to as the second information,
Similarly, the second information can also be referred to as the first information.Depend on linguistic context, word as used in this
" if " can be construed to " ... time " or " when ... time " or " in response to determining ".
The method of the soft ware authorization that the embodiment of the present invention provides, after authority is installed successfully, license service
The client using this software is carried out using mandate by device, in following example of the present invention, and can be by sentencing
Whether this authority total number resource amount disconnected determines whether to authorize software more than this resource usage quantity, makes
Obtain user and the use of software is no longer limited to licensing the time limit and licensing quantity of software, it is possible to spirit
The mandate that according to user, the service condition of this software is managed user lived.
Below in conjunction with specific embodiment, the present invention is described in detail.
The method of a kind of soft ware authorization that Fig. 1 provides for the embodiment of the present invention, as it is shown in figure 1, the method can
To be applied to license server, the method includes:
The authorization resources quantity of the authority that S101, acquisition are installed, and obtain according to this authorization resources quantity
Authority total number resource amount.
Wherein, this authorization resources quantity is the quantity of authority resource corresponding to this authority, this authority resource
Representing the use unit of software, this authority total number resource amount is that the available authority of this software is (in using
Authority or the authority that has not been used) the summation of authorization resources quantity.
In the present embodiment, in an initial condition, owing to the authority of this software is not also installed, therefore,
This authority total number resource amount is 0, when, after the authority installing software, license server resolves this mandate literary composition
Part obtains authority information, and this authority information can be to license the time limit and license quantity, and licensing takes
Business device can according to this license the time limit with license quantity and preset authorization management the time authorized
The authorization resources quantity of file, after obtaining the authorization resources quantity of this authority, according to this authorization resources
Quantity updates this authority total number resource amount.Such as, the authority information of this authority includes that 500 sets are (quite
In licensing quantity) 1 year (being equivalent to license the time limit) right to use of software, license server
Resolve this authority and obtain this authority information, and obtain " 4380000 (500*365*24) according to this authority information
1 hour right to use of part software " (being equivalent to authorization resources quantity), wherein, 500 is 500 set softwares,
365 is the number of days included for 1 year, and 24 is the hourage included for 1 day, " 1 hour right to use of software " i.e.
For authority resource, " 1 hour " is that preset authorization manages the time;And this authority total number resource amount is updated to
4380000;Certainly, above-mentioned " 1 hour right to use of 4380000 parts of softwares " are merely illustrative, this
Bright being not construed as limiting this, above-mentioned authority resource quantity can also is that " 2 hours rights to use of 2190000 parts of softwares "
Or " 1 month right to use of 6000 parts of softwares " etc., specifically can manage time advance according to preset authorization
Configuration.
It should be noted that this license server can also be in another authority of this software of subsequent installation
(mandate that again have purchased this software as follow-up in user), then license server resolve this another authorize literary composition
Part, and obtain the authority information of this another authority, and obtain according to the authority information of this another authority
To the authorization resources quantity of this another authority, and according to the authorization resources quantity of this another authority more
This authority total number resource amount new is (as by the authorization resources quantity of this another authority and the mandate installed before
The authorization resources quantity of file is added and obtains this authority total number resource amount), such as, license server is installed
Another authority of this software, the authority information of this another authority includes 1 year of 2000 these softwares of set
The right to use, license server resolves this another authority and obtains the authority information of this another authority,
And the authorization resources quantity of this another authority is obtained according to the authority information of this another authority
" 1 hour right to use of 17520000 (2000*365*24) part software ", and according to this another authority
Authorization resources quantity authority total number resource amount is updated to " 21900000 (4380000+17520000) ".
S102, the resource usage quantity of acquisition software.
In this step, license server, after reaching preset authorization management trigger condition, obtains this software
Resource usage quantity, in a kind of possible implementation, this preset authorization management trigger condition can be
Reaching Preset Time, specifically, this license server can arrange Preset Time, and awarding at this software
Power file starts timing after installing, and after reaching this Preset Time, reclocking also obtains the resource of software and makes
Use quantity;Illustratively, this Preset Time can be that above-mentioned preset authorization manages time, example in the present embodiment
As, the authorization resources quantity (i.e. 1 hour right to use of 4380000 parts of softwares) of above-mentioned authority is with 1
Obtain as a example by hour (be equivalent to preset authorization management time), then to could be arranged to 1 little for this Preset Time
Time.
In a kind of implementation obtaining resource usage quantity alternatively, license server has obtained the most
Successful authorization license quantity, and license quantity according to this and obtain this resource usage quantity, wherein,
This is licensed this authorized application message according to quantity and determines the quantity of Successful authorization, this authorized application message
For request, this client is authenticated;Illustratively, quantity and preset authorization can be licensed according to this
The product of management time determines this resource usage quantity, and such as, license server receives 1000 clients
The authorized application message that end sends, and these 1000 clients are all authorized successfully, then this licenses quantity
It is 1000, when reaching Preset Time (such as 1 hour), calculates this and license quantity and preset authorization pipe
The product of reason time obtains 1000 (1000*1), then this resource usage quantity increases by 1000.Follow-up again
After reaching above-mentioned Preset Time, if current quantity of licensing is 2000, calculate this license quantity and
The product of preset authorization management time obtains 2000 (2000*1), then this resource usage quantity increases by 2000 again
Became for 3000 (2000 add 1000).
It should be noted that during the use of authority, this authority total number resource amount can be less than being somebody's turn to do
Resource usage quantity, specifically, when being also not up to the preset authorization management time, this resource usage quantity can
Can be equal with authority total number resource amount, now, owing to being also not up to the preset authorization management time, because of
This in the present embodiment, this authority still can be continuing with, reaching this preset authorization management the time
Time, this resource usage quantity then can be more than this authority total number resource amount, such as, the authority information of authority
For " 1 hour right to use of 4380000 parts of softwares ", then this authority total number resource amount is 4380000, at warp
After spending 45 minutes, this resource usage quantity has been 4380000, and due to also not up to 1 hour, then this was awarded
Power file still can be continuing with, and this resource usage quantity continues to increase, and after reaching 1 hour, should
Resource usage quantity has been over 4380000 (i.e. authority total number resource amounts).
S103, judge that this authority total number resource amount is whether more than this resource usage quantity.
S104, this authority total number resource amount more than this resource usage quantity time, determine that this software is successfully awarded
Power.
Wherein, when this authority total number resource amount is equal to this resource usage quantity, determine this soft ware authorization failure.
Alternatively, after determining this software Successful authorization, the embodiment of the present invention is it may also be determined that authority
Licensing status, specifically, comprise the following steps:
S01, this resource usage quantity more than 0 time, from install authority determine target authority.
Wherein, this license server installs this target authority in advance, and obtains this target mandate literary composition
The authorization resources quantity of part, its concrete description is referred to awarding of authority in above-mentioned steps S101
The explanation of the acquisition of power resource quantity, here is omitted.
After getting resource usage quantity, it is judged that whether this resource usage quantity is more than 0, in this resource
When usage quantity is equal to 0, then it represents that this software is not used by;When this resource usage quantity is more than 0,
Then representing that this software is used, in the present embodiment, license server can be that authority setting makes
With status indicator, this use status indicator is for marking the use state of authority, and this use state can
To include " in use ", " unused " and " being finished ", and installing after this authority, can be by
The use state default setting of this authority is " unused ".
In the present embodiment, this step S01 may comprise steps of:
If this resource usage quantity of S11 is more than 0, license server is searched and is marked as " in use "
Authority.
If there is the authority being marked as " in use " in S12, it is determined that this is marked as " making
In with " authority is target authority.
If S13 does not exist the authority being marked as " in use ", then select an authority
It is labeled as " in use ", and to determine that this is marked as " in use " authority be target authority.
It should be noted that in a kind of possible implementation, can optional authority mark
For " in use ", it is also possible to select an authority to be labeled as " in use " according to certain rule,
As selected according to authorization resources quantity, or, it is also possible to according to the erection sequence of authority
Select.During as selected according to authorization resources quantity, select the mandate of authorization resources minimum number
File, or select the most authority of authorization resources quantity, or other quantity modes select.As
When erection sequence according to authority selects, select the authority installed at first, or select
The authority of rear installation, or other times mode selects.As to how select not limit at this,
As long as authority can with and can be chosen.If the authority elected according to certain rule
Having multiple, during as selected according to authorization resources quantity, the authority with equal number authorization resources can
Can have multiple, now, it is also possible to select according to erection sequence further, or an optional mandate
File.Selected authority out is labeled as " in use ", is marked as " in use "
Authority is target authority.
According to authorization resources quantity and this resource usage quantity of this target authority, S02 determines that this target is awarded
The licensing status of power file.
Wherein, the licensing status of this target authority can include that state of licensing and mandate expire state,
When this target authority is for licensing state, then it represents that this target authority is not yet due for authorizing
Authority, this target authority be mandate expire state time, then it represents that this target authority
For authorizing matured authority.
In the present embodiment, after determining target authority, it is judged that the authorization resources of this target authority
Whether quantity is more than this resource usage quantity;Authorization resources quantity in this target authority is more than this resource
During usage quantity, determine this target authority for licensing state, in the mandate of this target authority
When resource quantity is less than or equal to this resource usage quantity, determine that this target authority is that mandate expires state,
And update this authority total number resource amount and resource usage quantity according to the authorization resources quantity of this target authority.
Illustratively, if the authorization resources quantity of this target authority is M, at M less than or equal to resource
During usage quantity, this target authority is labeled as " being finished ", and resource usage quantity is deducted M,
Authority total number resource amount deducts M, and such as, resource usage quantity is 4380500 parts, at target authority
In " in use " state, and the authorization resources quantity of this target authority is 4380000 parts, then at mesh
When the use state of mark authority is for " being finished ", resource usage quantity becomes 500 from 4380500
(4380500-4380000), if authority total number resource amount is 21900000, then authority total number resource amount from
21900000 become 17520000 (21900000-4380000).
In the present embodiment one implementation alternatively, determining that this target authority is that mandate expires shape
After state, however, it is determined that the resource usage quantity after renewal is more than 0, continue really according to the resource usage quantity after updating
Fix a target authority, and in the authorization resources quantity of this next target authority less than or equal to should
During resource usage quantity, update this authority total number resource and this resource usage quantity, until the mesh redefined
The authorization resources quantity of mark authority is more than this resource usage quantity, and is determining this authority total number resource amount
When being 0, send software to client and use expiration notice message.
Wherein it is possible to continue executing with above-mentioned steps S11 to step S13 according to the resource usage quantity after updating
Determine next target authority, and be less than or equal in the authorization resources quantity of this next target authority
During this resource usage quantity (i.e. this next target authority is that mandate expires state), update this authority money
Source sum and this resource usage quantity, until the authorization resources quantity of the target authority redefined is more than
This resource usage quantity, and judge whether authority total number resource amount is 0, when this authority total number resource amount is 0,
Send software to client and use expiration notice message;Wherein, this software uses expiration notice message to be used for accusing
Know that the mandate of this software of user has expired;When this authority total number resource amount is not 0, then the mandate of this software
Not yet due.
Alternatively, after determining the licensing status of this authority, receive and be used for unloading this mounted mandate
The unloading command of file;This installed authority be mandate expire state time, unload according to this unloading command
Carry this and authority has been installed;When this installs authority for licensing state, refer to according to this unloading
Order unloads this and has installed authority, and updates this authority total number resource amount.
In the present embodiment one implementation alternatively, authority is installed receiving for unloading this
Unloading command after, use installing authority and can using different unloading strategies of state for difference,
Specifically:
If this use state having installed authority is " being finished ", then in unloading, this has installed authority
Time, record this mark having installed authority, reinstall, follow-up, the mandate of installation that this mark is corresponding
During file, following two implementation can be included:
A kind of being achieved in that refuses this installation again having installed authority;Another kind of implementation is then
Allow this that installation of authority has been installed, under this implementation, reinstalling this, mandate literary composition has been installed
After part, resource usage quantity is added that this has installed the resource usage quantity of authority, now, due to this
When the authorization resources quantity of authority being installed less than or equal to this resource usage quantity, it is determined that this target
Authority is that mandate expires state.
Such as, license server is provided with authority 1 and the authority 2 of software, authority 1
Authority information includes 1 year right to use of 500 set softwares, then authorization resources quantity is 4380000 (i.e. 4380000
Part software right to use of a hour), the authority information of authority 2 includes use in 1 year of 2000 set softwares
Power, then authorization resources quantity is 17520000 (the i.e. 17520000 parts software rights to use of a hour), now,
Authority total number resource amount is 21900000 (the i.e. 21900000 parts software rights to use of 1 hour), authority
The use state of 1 is " in use ", and the use state of authority 2 is " unused ", after after an hour,
Resource usage quantity becomes 4380000, identical with the authorization resources quantity of authority 1, then this authority
The use state of 1 becomes " being finished ", and resource usage quantity is 0, and the use Status Change of authority 2 is
" in use ", unloads this authority 1, and follow-up reinstall this authority 1 time, resource uses
Quantity is 2000000, then this resource usage quantity becomes plus the authorization resources quantity of this authority 1
6380000, owing to this resource usage quantity (6380000) is more than the authorization resources quantity of authority 1
(4380000), this authority 1 expires state for mandate, therefore, even if this authority 1 is mounted,
It is still within the state that cannot use.
If this use state having installed authority is " in use ", then in unloading, authority is installed
Time, store current resource usage quantity and this has installed the authorization resources quantity of authority, and empty
Resource usage quantity in resource pool, and the authority total number resource amount in resource pool is deducted this mandate has been installed
The authorization resources quantity of file, follow-up again install this authority is installed time, however, it is determined that have this to pacify
During dress authority unloading the resource usage quantity of storage and this authorization resources quantity of authority has been installed,
After then this installs authority in installation, authority total number resource amount is installed awarding of authority plus this
Power resource quantity, and by current resource usage quantity plus the resource usage quantity stored, and delete storage
Resource usage quantity and this authorization resources quantity of authority has been installed, this has been installed mandate simultaneously
The use status indication of file is " unused ".
Such as, carry out as a example by the authority 1 still installed by above-mentioned license server and authority 2
Illustrating, authority total number resource amount is 21900000, and the use state of authority 1 is " in use ", awards
The use state of power file 2 is " unused ", and resource usage quantity is 2000000, is unloading this authority
When 1, resource usage quantity becomes 0, and authority total number resource amount deducts the authorization resources quantity of authority 1 (i.e.
4380000) becoming 17520000, now, the use state of authority 2 becomes " in use ", and
Through after a period of time, resource usage quantity becomes 1500000, when reinstalling this authority 1, and power
Limit total number resource amount becomes 21900000 plus the authorization resources quantity of this authority 1, resource usage quantity
The resource (i.e. 2000000) used plus this authority 1 becomes 3500000, and by this authority 1
Use status indication be " unused ";Above-mentioned concrete numerical value is merely illustrative, and the present embodiment is to this not
It is construed as limiting.
After the use status indication that this has installed authority is " unused ", realize alternatively in one
In mode, obtain the authority information installing authority reinstalled, and mandate literary composition has been installed according to this
The authority information of part obtains this authorization resources quantity having installed authority, and has installed mandate literary composition according to this
The authorization resources quantity of part updates this authority total number resource amount and this resource usage quantity, according to the money after updating
Source usage quantity determines new target authority, and in the authorization resources quantity of this new target authority
During less than or equal to this resource usage quantity, update this authority total number resource and this resource usage quantity, until
The authorization resources quantity of the new target authority determined is more than this resource usage quantity.For example, it is possible to root
Continue executing with above-mentioned steps S11 to step S13 according to the resource usage quantity after updating and determine new target mandate
File, and when the authorization resources quantity of this new authority is less than or equal to this resource usage quantity, more
This authority total number resource new and this resource usage quantity, until the authorization resources number of this new target authority
Amount is more than this resource usage quantity.
If this use state having installed authority is " unused ", then when unloading this authority, will
Authority total number resource amount deducts the authorization resources quantity of this authority, and allows follow-up installation again, and
When subsequent installation is somebody's turn to do the authority of " unused ", by authority total number resource amount awarding plus this authority
Power resource quantity.
The method that the soft ware authorization of above-described embodiment offer is provided, the embodiment of the present invention licensing software
Time limit and license quantity and be quantified as concrete authority resource, and by judging described authority total number resource amount
Whether determine whether to carry out software using to authorize more than described resource usage quantity so that user is to soft
What the use of part was no longer limited to software licenses time limit and license quantity, it is possible to flexibly according to
Family manages the mandate of user to the service condition of this software.
The device of a kind of soft ware authorization that Fig. 2 provides for the embodiment of the present invention, is applied to license server,
As in figure 2 it is shown, this device includes:
First acquiring unit 201, for obtaining the authorization resources quantity of the authority of installation, and awards according to this
Power resource quantity obtains authority total number resource amount, and wherein, this authorization resources quantity is that this authority is corresponding
The quantity of authority resource, the use unit of this authority resource representation software, this authority total number resource amount is that this is soft
The summation of the authorization resources quantity of the available authority of part;
Second acquisition unit 202, for obtaining the resource usage quantity of software, wherein, this resource usage quantity
Quantity for the authority resource that this software has used;
Judging unit 203, is used for judging that whether this authority total number resource amount is more than this resource usage quantity;
Granted unit 204, for when this authority total number resource amount is more than this resource usage quantity, determining that this is soft
Part Successful authorization.
Alternatively, this second acquisition unit 202, license number specifically for obtain current Successful authorization the most
Amount;Wherein, this licenses quantity is that the authorized application message sent according to client determines Successful authorization
Quantity;This client is authenticated by this authorized application message for request, and licenses quantity according to this
Obtain this resource usage quantity.
Alternatively, as it is shown on figure 3, this device also includes:
Determine unit 205, for when this resource usage quantity is more than 0, determining from the authority installed
Target authority;
Status determining unit 206, uses for the authorization resources quantity according to this target authority and this resource
Quantity determines the licensing status of this target authority.
Alternatively, this determines unit 205, and the erection sequence specifically for the authority according to this software selects
This target authority;Or, select this target to award according to the authorization resources quantity of the authority of this software
Power file.
Alternatively, this status determining unit 206, specifically for judging the authorization resources number of this target authority
Whether amount is more than this resource usage quantity;Authorization resources quantity in this target authority makes more than this resource
When using quantity, determine that this target authority is for licensing state;Mandate in this target authority provides
When source quantity is less than or equal to this resource usage quantity, determine that this target authority is that mandate expires state.
Alternatively, as shown in Figure 4, this device also includes:
Second updating block 207, for determining that this target authority is that mandate expires after state, according to this
The authorization resources quantity of target authority updates this authority total number resource and this resource usage quantity;
Processing unit 208, for continuing to determine next target authority according to the resource usage quantity after updating,
And when the authorization resources quantity of this next target authority is less than or equal to this resource usage quantity, update
This authority total number resource and this resource usage quantity, until the authorization resources of the target authority redefined
Quantity is more than this resource usage quantity, and when determining that this authority total number resource amount is 0, sends to client
Software uses expiration notice message.
Alternatively, as it is shown in figure 5, this device also includes:
Unloading unit 209, for using number in the authorization resources quantity according to this target authority and this resource
After amount determines the licensing status of this target authority, the unloading that reception has installed authority for unloading refers to
Order;This installed authority be mandate expire state time, unload this according to this unloading command and installed and award
Power file;When this installs authority for licensing state, unload this according to this unloading command and pacify
Dress authority, and update this authority total number resource amount.
Use the device of soft ware authorization that above-described embodiment provides, by software license the time limit and mandate makes
It is quantified as concrete authority resource by quantity, and by judging that whether described authority total number resource amount is more than described
Resource usage quantity determines whether to carry out software to use and authorizes so that user is to the use of software no longer
It is confined to licensing the time limit and licensing quantity of software, it is possible to flexibly according to user to this software
The mandate of service condition management user.
The embodiment of the device of the soft ware authorization that the application provides can be applied in license server.Device
Embodiment can be realized by software, it is also possible to realizes by the way of hardware or software and hardware combining.With soft
As a example by part realizes, as the device on a logical meaning, it is the process by its place license server
Computer program instructions corresponding in nonvolatile memory is read and runs formation in internal memory by device.From firmly
For part aspect, as shown in Figure 6, for the one of device place license server of the application soft ware authorization
Hardware structure diagram, except the processor shown in Fig. 6, internal memory, network interface and nonvolatile memory
Outside, it is also possible to include other hardware, this is repeated no more.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Rapid realizes process, does not repeats them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees
The part of embodiment of the method illustrates.Device embodiment described above is only schematically, wherein
The described unit illustrated as separating component can be or may not be physically separate, as unit
The parts of display can be or may not be physical location, i.e. may be located at a place, or also may be used
To be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs
Realize the purpose of the application scheme.Those of ordinary skill in the art in the case of not paying creative work,
I.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all in this Shen
Within spirit please and principle, any modification, equivalent substitution and improvement etc. done, should be included in this Shen
Within the scope of please protecting.
Claims (14)
1. the method for a soft ware authorization, it is characterised in that be applied to license server, described method includes:
Obtain the authorization resources quantity of the authority installed, and obtain authority according to described authorization resources quantity
Total number resource amount, wherein, described authorization resources quantity is the quantity of authority resource corresponding to described authority,
The use unit of described authority resource representation software, described authority total number resource amount is that the available of described software is awarded
The summation of the authorization resources quantity of power file;
Obtaining the resource usage quantity of software, wherein, described resource usage quantity is that described software has used
The quantity of authority resource;
Judge that whether described authority total number resource amount is more than described resource usage quantity;
When described authority total number resource amount is more than described resource usage quantity, determine that described software is successfully awarded
Power.
Method the most according to claim 1, it is characterised in that the resource of described acquisition software uses number
Amount includes:
Obtain current Successful authorization licenses quantity;Wherein, visitor according to quantity is licensed described in
The authorized application message that family end sends determines the quantity of Successful authorization;It is right that described authorized application message is used for asking
Described client is authenticated;
Described resource usage quantity is obtained according to described quantity of licensing.
Method the most according to claim 1 and 2, it is characterised in that determining that described software is successfully awarded
Quan Hou, described method also includes:
When described resource usage quantity is more than 0, from the authority installed, determine target authority;
Authorization resources quantity and described resource usage quantity according to described target authority determine described target
The licensing status of authority.
Method the most according to claim 3, it is characterised in that described true from the authority installed
The authority that sets the goal includes:
The erection sequence of the authority according to described software selects described target authority;Or,
The authorization resources quantity of the authority according to described software selects described target authority.
Method the most according to claim 3, it is characterised in that described according to described target authority
Authorization resources quantity and described resource usage quantity determine that the licensing status of described target authority includes:
Judge that whether the authorization resources quantity of described target authority is more than described resource usage quantity;
When the authorization resources quantity of described target authority is more than described resource usage quantity, determine described
Target authority is for licensing state;
When the authorization resources quantity of described target authority is less than or equal to described resource usage quantity, really
Fixed described target authority is that mandate expires state.
Method the most according to claim 5, it is characterised in that determine described target mandate literary composition described
Part is that mandate expires after state, and described method also includes:
Authorization resources quantity according to described target authority updates described authority total number resource and described resource
Usage quantity;
Continue to determine next target authority according to the resource usage quantity after updating, and at next mesh described
When the authorization resources quantity of mark authority is less than or equal to described resource usage quantity, update described authority money
Total and the described resource usage quantity in source, until the authorization resources quantity of the target authority redefined is big
In described resource usage quantity, and when determining that described authority total number resource amount is 0, send soft to client
Part uses expiration notice message.
Method the most according to claim 3, it is characterised in that described according to described target mandate literary composition
After the authorization resources quantity of part and described resource usage quantity determine the licensing status of described target authority,
Described method also includes:
Receive the unloading command having installed authority for unloading;
Described installed authority be mandate expire state time, according to described unloading command unloading described in
Authority is installed;
Described authority is installed for licensing state time, according to described unloading command unloading described in
Authority is installed, and updates described authority total number resource amount.
8. the device of a soft ware authorization, it is characterised in that be applied to license server, described device bag
Include:
First acquiring unit, for obtaining the authorization resources quantity of the authority of installation, and awards according to described
Power resource quantity obtains authority total number resource amount, and wherein, described authorization resources quantity is described authority pair
The quantity of the authority resource answered, the use unit of described authority resource representation software, described authority total number resource
Amount is the summation of the authorization resources quantity of the available authority of described software;
Second acquisition unit, for obtaining the resource usage quantity of software, wherein, described resource usage quantity
Quantity for the authority resource that described software has used;
Judging unit, is used for judging that whether described authority total number resource amount is more than described resource usage quantity;
Granted unit, for when described authority total number resource amount is more than described resource usage quantity, determining institute
State software Successful authorization.
Device the most according to claim 8, it is characterised in that described second acquisition unit, specifically
Quantity is licensed for obtain current Successful authorization the most;Wherein, according to licensing quantity described in
The authorized application message that client sends determines the quantity of Successful authorization;Described authorized application message is for asking
Ask and described client is authenticated, and obtain described resource usage quantity according to described quantity of licensing.
Device the most according to claim 8 or claim 9, it is characterised in that described device also includes:
Determine unit, for when described resource usage quantity is more than 0, determining from the authority installed
Target authority;
Status determining unit, for making according to authorization resources quantity and the described resource of described target authority
The licensing status of described target authority is determined by quantity.
11. devices according to claim 10, it is characterised in that described determine unit, specifically use
Erection sequence in the authority according to described software selects described target authority;Or, according to institute
The authorization resources quantity of the authority stating software selects described target authority.
12. devices according to claim 11, it is characterised in that described status determining unit, specifically
For judging that whether the authorization resources quantity of described target authority is more than described resource usage quantity;?
When the authorization resources quantity of described target authority is more than described resource usage quantity, determine described target
Authority is for licensing state;Authorization resources quantity in described target authority is less than or equal to
During described resource usage quantity, determine that described target authority is that mandate expires state.
13. devices according to claim 12, it is characterised in that described device also includes:
Second updating block, for determining that described target authority is that mandate expires after state, according to institute
The authorization resources quantity stating target authority updates described authority total number resource and described resource usage quantity;
Processing unit, for continuing to determine next target authority according to the resource usage quantity after updating,
And when the authorization resources quantity of next target authority described is less than or equal to described resource usage quantity,
Update described authority total number resource and described resource usage quantity, until the target authority redefined
Authorization resources quantity is more than described resource usage quantity, and when determining that described authority total number resource amount is 0,
Send software to client and use expiration notice message.
14. devices according to claim 10, it is characterised in that described device also includes:
Unloading unit, for using in the authorization resources quantity according to described target authority and described resource
After quantity determines the licensing status of described target authority, receive, for unloading, unloading of authority has been installed
Carry instruction;Described installed authority be mandate expire state time, unload according to described unloading command
Described authority is installed;Described authority is installed for licensing state time, according to described
Described in unloading command unloading, authority is installed, and has updated described authority total number resource amount.
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 true CN105930693A (en) | 2016-09-07 |
CN105930693B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063423A (en) * | 2018-07-16 | 2018-12-21 | 北京知道创宇信息技术有限公司 | application software authorization method and system |
CN109547435A (en) * | 2018-11-23 | 2019-03-29 | 新华三信息安全技术有限公司 | A kind of authorization and authentication method and device |
CN112016065A (en) * | 2019-05-31 | 2020-12-01 | 杭州海康威视数字技术股份有限公司 | Dual-user authentication method and device |
Citations (6)
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 |
-
2016
- 2016-04-29 CN CN201610281383.3A patent/CN105930693B/en active Active
Patent Citations (6)
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 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063423A (en) * | 2018-07-16 | 2018-12-21 | 北京知道创宇信息技术有限公司 | application software authorization method and system |
CN109547435A (en) * | 2018-11-23 | 2019-03-29 | 新华三信息安全技术有限公司 | A kind of authorization and authentication method and device |
CN112016065A (en) * | 2019-05-31 | 2020-12-01 | 杭州海康威视数字技术股份有限公司 | Dual-user authentication method and device |
CN112016065B (en) * | 2019-05-31 | 2023-10-10 | 杭州海康威视数字技术股份有限公司 | Dual-user authentication method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105930693B (en) | 2019-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11126698B2 (en) | Distributed ledger system that facilitates device management | |
US10778548B2 (en) | Method and system for determining workload availability in a multi-tenant environment | |
US10693870B2 (en) | Authentication system | |
US8850605B2 (en) | System and method for capacity licensing | |
CA2861222C (en) | Application licensing using sync providers | |
US20070130073A1 (en) | Method, system and computer program for distributing software products in trial mode | |
CN101313298B (en) | Method for facilitating and managing software application program subscription | |
CN103870300B (en) | Do not require that process restarts the method and system that ground dynamic updates code | |
JP7163454B2 (en) | Information processing device, control method for information processing device, and program | |
US9460272B2 (en) | Method and apparatus for group licensing of device features | |
CN105930693A (en) | Software authorization method and apparatus | |
US20130185197A1 (en) | Method and apparatus for manufacturer revenue sharing with suppliers by licensing features to customers | |
JP2010086461A (en) | License management device and license management method, and license management system | |
US20120174090A1 (en) | Patch and dot release licensing | |
US10628559B2 (en) | Application management | |
US20140136425A1 (en) | Framework for provding electronic licenses and licensing programs | |
JP2010204886A (en) | License management apparatus and program | |
JP4554581B2 (en) | Job management apparatus, system and program | |
US20210110005A1 (en) | License management apparatus, license management method, and recording medium storing license management program | |
JP7243155B2 (en) | Provision device and processing system | |
JP2018072889A (en) | Image formation apparatus and control method thereof | |
US20130185173A1 (en) | Feature licensing framework for third party feature credit management | |
CN116451182B (en) | Method, apparatus and storage medium for managing license | |
JP2007200075A (en) | Application software management server and method | |
WO2010001434A1 (en) | Performance adjusting device and performance adjusting method of information processor |
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 |