public final class LicenseData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LicenseData.LicenseDataBuilder |
| Modifier and Type | Method and Description |
|---|---|
static LicenseData.LicenseDataBuilder |
builder() |
long |
daysRemaining()
Returns number of days before the license expires.
|
boolean |
equals(Object o) |
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.
|
Long |
getDeviceId()
Device ID represents the unique identifier of the device associated with the license.
|
Boolean |
getFloatingInUse()
Used only with floating cloud/on-premises setup.
|
Integer |
getFloatingInUseDevices()
Used only with floating cloud/on-premises setup.
|
int |
getFloatingTimeout()
Used only with floating cloud/on-premises setup.
|
int |
getFloatingUsers()
Used only with floating cloud/on-premises setup.
|
Long |
getId()
License ID represents the unique identifier of the license.
|
Boolean |
getIsFloating()
Used only with on-premise floating setup (using an on-premise server).
|
String |
getLicenseSignature()
Signature that is used to sign this license by the LS servers.
|
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.
|
int |
getMaxOverages()
Maximal overages of this license (uses after consumptions have been used up).
|
Product |
getProductDetails()
The parent product assigned to this license.
|
List<LicenseFeature> |
getProductFeatures()
Each license can have it's own list of features included.
|
Boolean |
getResetConsumption()
Settings for licences with
LicenseType.CONSUMPTION type. |
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.
|
ZonedDateTime |
getValidityPeriod()
After validity period passes license will become invalid.
|
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()
License settings if the license allows overages (used in licences with type
LicenseType.CONSUMPTION) |
boolean |
isCanBorrow()
Indicates whether a license can be borrowed.
|
boolean |
isExpired()
Returns information on license expiration.
|
boolean |
isFloatingCloud()
Used only with floating cloud setup.
|
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 static LicenseData.LicenseDataBuilder builder()
public Long getId()
public Long getDeviceId()
public String getLicenseSignature()
public LicenseType getLicenseType()
public boolean isTrial()
public List<LicenseFeature> getProductFeatures()
public List<CustomField> getCustomFields()
public ZonedDateTime getValidityPeriod()
LicenseType.TIME_LIMITED type of license.public ZonedDateTime getMaintenancePeriod()
public int getMaxActivations()
public int getTimesActivated()
public int getTransferCount()
public boolean isPreventVm()
public Customer getCustomer()
public Product getProductDetails()
public Integer getTotalConsumptions()
licenseType is not LicenseType.CONSUMPTIONpublic Integer getMaxConsumptions()
licenseType is not LicenseType.CONSUMPTIONpublic boolean isAllowOverages()
LicenseType.CONSUMPTION)public int getMaxOverages()
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 isFloatingCloud()
public Boolean getIsFloating()
public int getFloatingUsers()
public int getFloatingTimeout()
public Integer getFloatingInUseDevices()
public Boolean getFloatingInUse()
public boolean isAirGapped()
public boolean isCanBorrow()
public int getMaxBorrowTime()
Copyright © 2024 Cense Data Inc.. All rights reserved.