Policies
A policy holds the licensing rules for a group of licenses. Each license is issued from one policy, and each policy belongs to one product.
The rules set how long a license lasts, what a claim must send and how the License API checks the license. A license can override some of these rules. See License overrides.
Policy properties
| Property | Description |
|---|---|
| Name | The name of the policy, such as Pro yearly. |
| Code | A short identifier, such as PRO. Each policy of a product needs its own code. This property is optional. |
| Key prefix | The first group of every license key that the policy issues. This property is optional. |
With the key prefix PRO, a license key looks like PRO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.
Duration
A policy is either lifetime or time-limited. A license from a lifetime policy never expires.
A time-limited policy has these settings:
| Setting | Description |
|---|---|
| Duration | The time that a license lasts. |
| Expiry starts | At issue or at first activation. At issue starts the duration when the license is created. At first activation starts the duration at the first claim. |
| Grace period | The time after the expiry date when validation still succeeds. During this time, the license status is grace. This setting is optional. |
| After expiry | The rule that applies after the expiry date and the grace period have passed. See After expiry. |
Use At first activation for a key that is sold before it is used, such as a key from a reseller. The license does not expire while it waits for its first claim.
After expiry
| Rule | Validation | Releases |
|---|---|---|
| Expire | Validation fails. | The Distribution API refuses the license key. |
| Keep access | Validation succeeds. The status of the license is expired. | The license can download all releases. |
| Perpetual fallback | Validation succeeds. The status of the license is expired. | The license can download only releases that were published on or before its expiry date. |
With Keep access and Perpetual fallback, the License API answers with valid set to true and expired set to true. Your application must decide on valid. It can show status to the user.
A lifetime policy always uses Expire. Its licenses never expire, so the rule never applies.
Binding and limits
| Setting | Description |
|---|---|
| Bind devices | A claim must send a device fingerprint. |
| Device limit | The number of devices that the license can be bound to. It needs Bind devices. |
| Bind customers | A claim must name the customer who takes the seat. |
| Seat limit | The number of seats of the license. It needs Bind customers. |
A policy can bind devices, customers, both or neither. A policy that binds neither accepts every claim without a fingerprint or a customer.
An empty limit means that there is no limit. A limit is at least 1. See Seats and devices.
Heartbeats and processes
These settings are optional. Heartbeats and process tracking are independent of each other.
| Setting | Description |
|---|---|
| Require heartbeats | Each device keeps its binding with a lease. The application renews the lease with a heartbeat. When the lease ends, the device is released. It needs Bind devices. |
| Heartbeat interval | The time between two heartbeats. It is required when heartbeats are required. |
| Heartbeat grace | Extra time for a late heartbeat. The lease lasts for the interval plus the grace. This setting is optional. |
| Process interval | The time between two process heartbeats. A process interval turns on process tracking. It needs Bind devices. |
| Process grace | Extra time for a late process heartbeat. This setting is optional. |
| Process limit per device | The number of processes that can run at the same time on one device. It needs a process interval. |
See Concurrent runs.
Offline validation
| Setting | Description |
|---|---|
| Allow offline validation | The application can check out a signed license file and check the file without a network call. When this setting is off, check-out fails. |
| License file lifetime | The time that a license file stays valid. The default is 30 days. A shorter lifetime makes a suspended license stop working offline sooner. |
| Encrypt license files | The file is encrypted with a key that is made from the license key. Encryption stops a person from reading the file in a text editor. The signature protects the file from changes. |
See Offline validation.
Emails
| Setting | Description |
|---|---|
| Email the license key | Seatify sends the license key to the customer when a license is created under the policy. Only a customer with an email address receives the email. |
The email is sent for a license from the dashboard, from the Management API and from a payment provider.
License overrides
A license can override four settings of its policy:
- After expiry
- Device limit
- Seat limit
- Process limit per device
A license cannot override a setting that its policy does not use. For example, a license can have a device limit only if its policy binds devices.
One device of a license can also have its own process limit. That limit replaces the limit of the license for that device only.
The License API returns the final limits. Your application does not need to know the override rules.
A license cannot override the grace period. To give one license more time, change the expiry date of that license.
Entitlements
A policy can grant entitlements. Every license of the policy gets these entitlements. A license can add more entitlements, but it cannot remove the entitlements of its policy.
Changes to a policy
A change to a policy applies to all its licenses. The next License API request uses the new settings.
Two settings do not change existing licenses:
- A license gets its expiry date once, at issue or at its first claim. A new duration does not move the expiry dates of existing licenses.
- A license key is created once. A new key prefix applies only to new licenses.
The product of a policy cannot change. A license cannot move to another policy. You cannot delete a policy that still has licenses.