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) |
Boolean |
getActive()
Is License active.
|
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.
|
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.
|
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.
|
int |
getGracePeriod()
Grace period
|
String |
getHardwareId()
Hardware ID.
|
Long |
getId()
License ID represents the unique identifier of the license.
|
Boolean |
getIsBorrowed()
Indicates whether a license is borrowed.
|
Boolean |
getIsFloating()
Used only with on-premise floating setup (using an on-premise server).
|
Boolean |
getIsHardwareKeyAuth()
Is hardware key auth
|
String |
getLicenseKey()
License key.
|
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).
|
int |
getMaxTransfers()
Max transfers.
|
com.google.gson.JsonElement |
getMetadata()
JSON metadata of the license.
|
String |
getOfflineSignature()
Offline signature.
|
Product |
getProductDetails()
The parent product assigned to this license.
|
List<LicenseFeature> |
getProductFeatures()
Each license can have its own list of features included.
|
String |
getRequest()
"activation" or "deactivation"
|
String |
getRequestId()
Request ID
|
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.
|
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.
|
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()
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 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 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.CONSUMPTION
public 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.CONSUMPTION
public Boolean getAllowUnlimitedConsumptions()
public Integer getTotalConsumptions()
licenseType
is
not LicenseType.CONSUMPTION
public Boolean getResetConsumption()
LicenseType.CONSUMPTION
type. Indicates if consumptions
reset after a defined period. if true, will also have the consumptionPeriod
fieldpublic ConsumptionPeriod getConsumptionPeriod()
ConsumptionPeriod
public 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 licensesCopyright © 2025 Cense Data Inc.. All rights reserved.