Capacity (CPU/Memory/Disk)
Sentinel LDK Functionality | Manages resource usage |
Software Distribution Method |
>Physical package >Electronic distribution |
Applicable Key Types |
>All Sentinel HL keys except Sentinel HL Basic >Sentinel SL (including CL) |
Protection Method | API-based automatic implementation |
Description
License consumption depends on utilization of resources—for example, CPU usage or disk space. The more resources the end user consumes, the sooner the license runs out. This type of license might be applicable in an environment such as a learning facility, in order to limit the resources consumed by students.
Implementation
1.Select the executable file that you want to license, and determine by which Feature ID it will be identified.
2.In your code, insert a Sentinel Licensing API Login call to the Feature ID.
3.Determine the parameters for calculating software usage, and define them in your code, for example:
•CPU activity related to your software.
•Disk space usage each time a file is saved from your software.
4.In Sentinel EMS, create a Product that includes the Feature ID and define the license terms—for instance, a perpetual license or a time-limited license.
5.In Sentinel EMS, in the Protection Key memory, define the capacity that has been purchased.
6.Envelope your software for additional security (optional).
7.Distribute your software with the appropriate Sentinel protection key programmed with the license.
8.Using the Sentinel Licensing API:
a.Calculate the accumulated usage.
b.Write the result to the Protection Key memory.
c.Verify that the accumulated usage has not exceeded the purchased capacity.
d.When purchased capacity has almost expired, display a warning message.
9.When payment is received for additional usage, renew the license remotely.