public final class LicenseData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LicenseData.LicenseDataBuilder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsNegativeConsumptions() |
static LicenseData.LicenseDataBuilder |
builder() |
long |
daysRemaining()
Returns number of days before the license expires.
|
boolean |
equals(Object o) |
Boolean |
getActive()
Is License active (from activation response).
|
Boolean |
getAllowGracePeriod()
Is grace period allowed.
|
Boolean |
getAllowNegativeConsumptions()
Are negative consumptions allowed
|
Boolean |
getAllowUnlimitedActivations()
Are unlimited activations allowed.
|
Boolean |
getAllowUnlimitedConsumptions()
Are unlimited consumptions allowed.
|
ZonedDateTime |
getBorrowedUntil()
Indicates time until license is borrowed.
|
Boolean |
getCanBorrow()
Indicates whether a license can be borrowed.
|
String |
getChannel()
Distribution channel.
|
Company |
getCompany()
Company associated with this license
|
ConsumptionPeriod |
getConsumptionPeriod()
Period when the consumption uses (and overages if enabled) are reset
ConsumptionPeriod |
Customer |
getCustomer()
Customer who purchased this particular license
|
List<CustomField> |
getCustomFields()
List of custom fields that can be set in LicenseSpring platform.
|
String |
getDate()
Date
|
Long |
getDeviceId()
Device ID represents the unique identifier of the device associated with the license.
|
Boolean |
getEnableMaintenancePeriod()
Is maintenance period enabled.
|
String |
getEnvironment()
Target environment.
|
String |
getEulaLink()
Link to the End User License Agreement.
|
Boolean |
getExpired()
Whether the license has expired (as reported by the server).
|
Boolean |
getFloatingInUse()
Indicates if the floating license is currently in use.
|
Integer |
getFloatingInUseDevices()
Number of devices currently using the floating license.
|
int |
getFloatingTimeout()
Floating timeout in minutes.
|
int |
getFloatingUsers()
Maximum number of concurrent floating users for this license.
|
String |
getFloatingVp()
Floating validity period (time until floating registration expires).
|
int |
getGracePeriod()
Grace period
|
String |
getHardwareId()
Hardware ID.
|
String |
getHashMd5()
MD5 hash of the installation file.
|
Long |
getId()
License ID represents the unique identifier of the license.
|
String |
getInstallationFile()
Installation file URL or path.
|
Boolean |
getIsBorrowed()
Indicates whether a license is borrowed.
|
Boolean |
getIsDirty()
Whether the license data has been modified locally and not yet synced.
|
Boolean |
getIsFloating()
Indicates if the license uses on-premises floating licensing.
|
Boolean |
getIsHardwareKeyAuth()
Is hardware key auth
|
Boolean |
getIsLicensed()
Whether the license is licensed (has a valid license assignment).
|
Boolean |
getIsValid()
Whether the license is currently valid.
|
String |
getLastCheck()
Last time the license was checked.
|
String |
getLastUsageDate()
Last usage date.
|
Boolean |
getLicenseActive()
Whether the license is currently active.
|
Boolean |
getLicenseEnabled()
Whether the license is enabled.
|
String |
getLicenseKey()
License key.
|
String |
getLicenseSignature()
Signature that is used to sign this license by the LS servers.
|
String |
getLicenseSignatureV2()
V2 license signature (from response header).
|
LicenseType |
getLicenseType()
Possible license types: PERPETUAL, SUBSCRIPTION, TIME-LIMITED, CONSUMPTION, UNKNOWN
|
ZonedDateTime |
getMaintenancePeriod()
Maintenance period of license.
|
int |
getMaxActivations()
The maximum number of active devices that can share this license.
|
int |
getMaxBorrowTime()
Maximum period a license can be borrowed measured in hours.
|
Integer |
getMaxConsumptions()
Maximal consumptions of this license.
|
Integer |
getMaxLicenseUsers()
Maximum number of license users.
|
int |
getMaxOverages()
Maximal overages of this license (uses after consumptions have been used up).
|
int |
getMaxTransfers()
Max transfers.
|
com.google.gson.JsonElement |
getMetadata()
JSON metadata of the license.
|
String |
getOfflineSignature()
Offline signature.
|
String |
getOrderStoreId()
Order store identifier.
|
Long |
getPolicyId()
Policy ID associated with this license (used for air-gapped licenses).
|
String |
getProduct()
Product short code.
|
Product |
getProductDetails()
The parent product assigned to this license.
|
List<LicenseFeature> |
getProductFeatures()
Each license can have its own list of features included.
|
String |
getReleaseDate()
Release date of the product version.
|
String |
getReleaseNotesLink()
Link to the release notes.
|
String |
getRequest()
"activation" or "deactivation"
|
String |
getRequestId()
Request ID
|
String |
getRequiresVersion()
Minimum required version.
|
Boolean |
getResetConsumption()
Settings for licences with
LicenseType.CONSUMPTION type. |
String |
getSignature()
Digital signature of the license.
|
String |
getSize()
Size of the installation file.
|
ZonedDateTime |
getStartDate()
Start date of the license.
|
int |
getTimesActivated()
Number of times this license is activated.
|
Integer |
getTotalConsumptions()
Total consumptions of this license as seen by the LS servers.
|
int |
getTransferCount()
Counts the number of license transfers between different devices.
|
Integer |
getTrialDays()
Number of trial days.
|
LicenseUser |
getUser()
The
LicenseUser object present in user based licenses |
ZonedDateTime |
getValidityPeriod()
After validity period passes license will become invalid.
|
List<DeviceVariable> |
getVariables()
Device variables.
|
String |
getVersion()
Product version.
|
boolean |
hasConsumptionFeature(String feature)
Checks whether this license contains the passed consumption feature (by feature code and the
consumption type)
|
boolean |
hasFeature(String feature)
Checks whether this license contains the passed feature (by feature code)
|
int |
hashCode() |
boolean |
isAirGapped()
Used only with Air Gapped Licensing.
|
boolean |
isAllowOverages()
Are overages allowed.
|
boolean |
isExpired()
Returns information on license expiration.
|
boolean |
isFloatingCloud()
Indicates if the license uses floating cloud licensing.
|
boolean |
isPreventVm()
License settings if the license if permitted to run on VMs
|
boolean |
isTrial()
Trial licenses have limitations that can be set.
|
String |
toString() |
public boolean isExpired()
LicenseType.TIME_LIMITED type can expire.public boolean hasFeature(String feature)
feature - - the code of the featurepublic boolean hasConsumptionFeature(String feature)
feature - - the code of the featurepublic long daysRemaining()
LicenseType.TIME_LIMITED type can expire.public boolean allowsNegativeConsumptions()
public static LicenseData.LicenseDataBuilder builder()
public Long getId()
public Boolean getActive()
public Boolean getAllowGracePeriod()
public boolean isAllowOverages()
public Boolean getAllowUnlimitedActivations()
public Boolean getCanBorrow()
public Boolean getIsBorrowed()
public ZonedDateTime getBorrowedUntil()
public List<CustomField> getCustomFields()
public Customer getCustomer()
public Company getCompany()
public Long getDeviceId()
public Boolean getEnableMaintenancePeriod()
public int getFloatingTimeout()
public int getGracePeriod()
public boolean isAirGapped()
public boolean isFloatingCloud()
public Boolean getIsFloating()
public Boolean getIsHardwareKeyAuth()
public boolean isTrial()
public String getLicenseKey()
public LicenseType getLicenseType()
public ZonedDateTime getMaintenancePeriod()
public int getMaxActivations()
public int getMaxBorrowTime()
public int getMaxOverages()
licenseType is not LicenseType.CONSUMPTIONpublic int getMaxTransfers()
public com.google.gson.JsonElement getMetadata()
public boolean isPreventVm()
public Product getProductDetails()
public List<LicenseFeature> getProductFeatures()
public int getTimesActivated()
public int getTransferCount()
public ZonedDateTime getValidityPeriod()
LicenseType.TIME_LIMITED type of license.public List<DeviceVariable> getVariables()
public Integer getMaxConsumptions()
licenseType is not LicenseType.CONSUMPTIONpublic Boolean getAllowUnlimitedConsumptions()
public Integer getTotalConsumptions()
licenseType is
not LicenseType.CONSUMPTIONpublic Boolean getResetConsumption()
LicenseType.CONSUMPTION type. Indicates if consumptions
reset after a defined period. if true, will also have the consumptionPeriod
fieldpublic ConsumptionPeriod getConsumptionPeriod()
ConsumptionPeriodpublic Boolean getAllowNegativeConsumptions()
public String getLicenseSignature()
public String getRequestId()
public String getRequest()
public String getHardwareId()
public String getDate()
public String getOfflineSignature()
public int getFloatingUsers()
public Integer getFloatingInUseDevices()
public Boolean getFloatingInUse()
public LicenseUser getUser()
LicenseUser object present in user based licensespublic Boolean getIsDirty()
public Boolean getIsLicensed()
public Boolean getIsValid()
public Boolean getExpired()
public Boolean getLicenseActive()
public Boolean getLicenseEnabled()
public String getLastCheck()
public Integer getMaxLicenseUsers()
public String getOrderStoreId()
public Long getPolicyId()
public String getLicenseSignatureV2()
public String getProduct()
public String getSignature()
public ZonedDateTime getStartDate()
public Integer getTrialDays()
public String getChannel()
public String getEnvironment()
public String getEulaLink()
public String getHashMd5()
public String getInstallationFile()
public String getReleaseDate()
public String getReleaseNotesLink()
public String getRequiresVersion()
public String getSize()
public String getVersion()
public String getFloatingVp()
public String getLastUsageDate()
Copyright © 2026 Cense Data Inc.. All rights reserved.