![]() |
LicenseSpring C++ SDK 7.31.0
Easily add Software Licensing to your application
|
Class that encapsulates license information. More...
#include <LicenseSpring/License.h>
Public Types | |
using | ptr_t = std::shared_ptr< License > |
Public Member Functions | |
virtual | ~License () |
Destructor for license. | |
virtual const LicenseID & | id () const =0 |
Getter for license ID. | |
virtual const std::string & | key () const =0 |
Getter for license key. | |
virtual const std::string & | user () const =0 |
Getter for user. | |
virtual LicenseType | type () const =0 |
Getter for license type. | |
virtual Customer | owner () const =0 |
Getter for license owner. | |
virtual LicenseUser::ptr_t | licenseUser () const =0 |
Getter for license user, it's a person assigned to the license. | |
virtual ProductDetails | productDetails () const =0 |
Getter for product details. | |
virtual std::string | status () const =0 |
Getter for license status. | |
virtual bool | isActive () const =0 |
Checker for if the license is active. | |
virtual bool | isEnabled () const =0 |
Checker for if the license is enabled. | |
virtual bool | isValid () const =0 |
Checker for if the license is valid. | |
virtual bool | isTrial () const =0 |
Checker for if the license is a trial. | |
virtual bool | isAirGapped () const =0 |
Checker for if the license is air gapped. | |
virtual uint32_t | policyId () const =0 |
Policy id of the license. | |
virtual bool | isOfflineActivated () const =0 |
Checker for if license is offline activated. | |
virtual bool | isVMAllowed () const =0 |
Checker for whether the license is allowed to work under virtual machine or not. | |
virtual bool | isFloating () const =0 |
Checker for whether the license is floating or not. | |
virtual bool | isBorrowed () const =0 |
Checker for whether the license is borrowed. | |
virtual bool | isSubscriptionGracePeriodStarted () const =0 |
Check if grace period started for subscription license. | |
virtual bool | isGracePeriodStarted () const =0 |
Check if grace period started for a license. | |
virtual tm | gracePeriodEndDateTime () const =0 |
Getter for grace period end date time in local time. | |
virtual tm | gracePeriodEndDateTimeUTC () const =0 |
Getter for grace period end date time in UTC. | |
virtual int | gracePeriodHoursRemaining () const =0 |
How many hours remaining till grace period ends. | |
virtual uint32_t | trialPeriod () const =0 |
Trial duration of current license. | |
virtual uint32_t | maxFloatingUsers () const =0 |
Getter for max simultaneous license users (devices or instances). | |
virtual uint32_t | floatingInUseCount () const =0 |
Getter for current floatings slots in use count, including this user (instance). | |
virtual uint32_t | floatingTimeout () const =0 |
Getter for timeout of the floating license in minutes. | |
virtual const std::string & | floatingClientId () const =0 |
Getter for floating user (client) or instance id. | |
virtual tm | validityPeriod () const =0 |
Getter for license validity period in local time. | |
virtual tm | validityPeriodUtc () const =0 |
Getter for license validity period in UTC. | |
virtual tm | validityWithGracePeriod () const =0 |
Getter for license validity period including grace period in local time. | |
virtual tm | validityWithGracePeriodUtc () const =0 |
Getter for license validity period including grace period in UTC. | |
virtual uint32_t | subscriptionGracePeriod () const =0 |
Getter for grace period of the Subscription license in hours. | |
virtual uint32_t | maxBorrowTime () const =0 |
Maximum borrowing period in hours. | |
virtual tm | maintenancePeriod () const =0 |
Getter for license maintenance period in local time. | |
virtual tm | maintenancePeriodUtc () const =0 |
Getter for license maintenance period in UTC. | |
virtual tm | lastCheckDate () const =0 |
Getter for license last check date in local time. | |
virtual tm | lastCheckDateUtc () const =0 |
Getter for license last check date in UTC. | |
virtual tm | floatingEndDateTime () const =0 |
Getter for floating license validity end date time in local time zone. | |
virtual tm | floatingEndDateTimeUtc () const =0 |
Floating license validity end date time in UTC. | |
virtual const std::string & | startDate () const =0 |
Getter method license start date. | |
virtual const std::string & | metadata () const =0 |
Getter for license metadata. | |
virtual LicenseFeature | feature (const std::string &featureCode) const =0 |
Getter method for license feature. | |
virtual std::vector< LicenseFeature > | features () const =0 |
Getter for list of license features associated with the license. | |
virtual std::vector< CustomField > | customFields () const =0 |
Getter for list of custom fields associated with the license. | |
virtual const std::vector< CustomField > & | userData () const =0 |
Returns user data stored within license object. | |
virtual std::string | userData (const std::string &key) const =0 |
Getter for user data by given key. | |
virtual void | addUserData (const CustomField &data, bool saveLicense=true)=0 |
Adds user data to the license object. This method allows you to store custom data securely inside license file. | |
virtual void | removeUserData (const std::string &key=std::string(), bool saveLicense=true)=0 |
Removes user data from the license. | |
virtual int32_t | totalConsumption () const =0 |
Returns license current total consumption. | |
virtual int32_t | maxConsumption () const =0 |
Returns license maximum consumption. | |
virtual int32_t | maxOverages () const =0 |
Returns maximum overage allowed for the license. | |
virtual bool | isOveragesAllowed () const =0 |
Checks if overage is allowed for Consumption license. | |
virtual bool | isUnlimitedConsumptionAllowed () const =0 |
Checks if unlimited consumption is allowed for Consumption license. | |
virtual ConsumptionPeriod | consumptionPeriod () const =0 |
Returns period of time after which consumption is reset. | |
virtual bool | isResetConsumptionEnabled () const =0 |
Checks if consumption reset is allowed for Consumption license. | |
virtual uint32_t | timesActivated () const =0 |
How many times license already been activated. | |
virtual uint32_t | maxActivations () const =0 |
How many times license can be activated. | |
virtual uint32_t | transferCount () const =0 |
How many times license has been transferred between devices. | |
virtual int32_t | transferLimit () const =0 |
Maximum number of allowed license transfers between devices. | |
virtual bool | isDeviceTransferAllowed () const =0 |
Checks if license can be transferred between devices. | |
virtual bool | isDeviceTransferLimited () const =0 |
Checks if the license allows only limited number of transfers between devices. | |
virtual bool | isAutoReleaseSet () const =0 |
Returns auto release flag. Meaningful only for floating license. | |
virtual void | setAutoRelease (bool autoRelease)=0 |
Sets auto release flag. Meaningful only for floating license. | |
virtual void | updateConsumption (int32_t value=1, bool saveLicense=true)=0 |
Increase or decrease license consumption by given value. | |
virtual void | updateFeatureConsumption (const std::string &featureCode, int32_t value=1, bool saveLicense=true)=0 |
Increase or decrease feature consumption by given value. | |
virtual bool | isExpired () const =0 |
Compare system date time with license validity date time. | |
virtual bool | isMaintenancePeriodExpired () const =0 |
Compare system date time with maintenance period time. | |
virtual int | daysRemainingUtc () const =0 |
How many days remaining till license expires. | |
virtual int | daysRemaining () const =0 |
Almost the same as UTC counterpart, but days counter will be changed on local midnight. | |
virtual int | maintenanceDaysRemaining () const =0 |
How many days remaining till end of maintenance days. | |
virtual int | daysPassedSinceLastCheck () const =0 |
How many days passed from last online check. | |
virtual void | localCheck ()=0 |
Check license local without connection to the backend. | |
virtual bool | deactivate (bool removeLocalData=false)=0 |
Sends deactivate license request to the backend. | |
virtual bool | changePassword (const std::string &password, const std::string &newPassword)=0 |
Change password for user based license. | |
virtual InstallationFile::ptr_t | check (const InstallFileFilter &filter=InstallFileFilter(), bool includeExpiredFeatures=false)=0 |
Online license check, sync the license with the backend, throws exceptions in case of errors. | |
virtual bool | syncConsumption (int32_t requestOverage=-1)=0 |
Sync Consumption license with the server. | |
virtual bool | syncFeatureConsumption (const std::string &featureCode=std::string())=0 |
Sync Consumption Feature(s) with the backend, if code not provided sync all consumption features. | |
virtual void | addDeviceVariable (const std::string &name, const std::string &value, bool saveLicense=true)=0 |
Add new or update existing device variable to license daata. | |
virtual void | addDeviceVariable (const DeviceVariable &variable, bool saveLicense=true)=0 |
Add new or update existing device variable to license daata. | |
virtual void | addDeviceVariables (const std::vector< DeviceVariable > &variables)=0 |
Add new or update existing device variables to license daata. | |
virtual bool | sendDeviceVariables ()=0 |
Send current device variables list to the backend (see device variables on the platform) | |
virtual std::vector< DeviceVariable > | getDeviceVariables (bool getFromBackend=false)=0 |
Get device variables from the local license or from the backend. | |
virtual DeviceVariable | deviceVariable (const std::string &name) const =0 |
Get device variable by name. | |
virtual const std::string & | deviceVariableValue (const std::string &name) const =0 |
Get device variable value by name. | |
virtual void | setupLicenseWatchdog (LicenseWatchdogCallback callback, uint32_t timeout=0)=0 |
Setup and run license watchdog, a background thread which periodically checks the license. | |
virtual void | resumeLicenseWatchdog ()=0 |
Resume background thread, you can call this within your callback in order to resume periodic license checks (registrations). | |
virtual void | stopLicenseWatchdog ()=0 |
Stops license watchdog background thread. | |
virtual void | setupFeatureWatchdog (LicenseWatchdogCallback callback, uint32_t timeout=0)=0 |
Setup and run feature watchdog, a background thread which periodically checks floating license features. | |
virtual void | resumeFeatureWatchdog ()=0 |
Resume background thread, you can call this within your callback in order to resume periodic feature checks (registrations). | |
virtual void | stopFeatureWatchdog ()=0 |
Stops feature watchdog background thread. | |
virtual void | registerFloatingLicense ()=0 |
Register floating license using floatingClientId. | |
virtual void | releaseFloatingLicense (bool throwExceptions=false)=0 |
Revoke floating license, typically should be called at the end of app execution. | |
virtual void | borrow (uint32_t hours, uint32_t days=0)=0 |
Borrow floating license for provided time interval. | |
virtual void | borrow (const std::string &borrowEndDateTime=std::string())=0 |
Borrow floating license till provided end date time. | |
virtual std::wstring | deactivateOffline (const std::wstring &deactivationRequestFile=std::wstring())=0 |
Creates offline deactivation file request. | |
virtual bool | updateOffline (const std::wstring &path, bool resetConsumption=false)=0 |
Update license data accordingly to provided file. | |
virtual void | unlinkFromDevice ()=0 |
Unlinks license from cuurent device ID. | |
virtual std::string | getAirGapDeactivationCode (const std::string &initializationCode)=0 |
Get air gap Deactivation code. | |
virtual void | deactivateAirGap (const std::string &confirmationCode)=0 |
Verify Confirmation code and deactivate air gap license. | |
virtual bool | isLicenseBelongsToThisDevice (DeviceIDAlgorithm deviceIDAlgorithm)=0 |
Checks if license belongs to this DeviceIDAlgorithm. | |
virtual bool | checkLicenseBelongsToThisDevice ()=0 |
Checks if license belongs to any of the DeviceIDAlgorithm values. | |
virtual void | registerFloatingFeature (const std::string &featureCode, bool addToWatchdog=true)=0 |
Register a floating feature and occupy a floating slot. | |
virtual void | releaseFloatingFeature (const std::string &featureCode)=0 |
Release a floating feature and free a floating slot. | |
Static Public Attributes | |
static const int | MaxDaysRemainingValue |
Maximum value for daysRemaining, e.g. in case of perpetual license. | |
Class that encapsulates license information.
Used for checking, editing, and deleting characteristics of licenses
using LicenseSpring::License::ptr_t = std::shared_ptr<License> |
|
inlinevirtual |
Getter for license ID.
Getter for license key.
Getter for user.
|
pure virtual |
Getter for license type.
Getter for license owner.
|
pure virtual |
Getter for license user, it's a person assigned to the license.
Currently this method make sense only for user-based licenses.
|
pure virtual |
Getter for product details.
Returns cached data from local license, does not perform a request to backend.
See also BaseManager::getProductDetails
|
pure virtual |
Getter for license status.
Checker for if the license is active.
Checker for if the license is enabled.
Checker for if the license is valid.
Checker for if the license is a trial.
Checker for if the license is air gapped.
Policy id of the license.
Meaningful only for air gapped licenses.
Checker for if license is offline activated.
Checker for whether the license is allowed to work under virtual machine or not.
See product and license settings on the LicenseSpring platform for more details.
Checker for whether the license is floating or not.
Checker for whether the license is borrowed.
Meaningful only for Floating license, see License::borrow
Check if grace period started for subscription license.
Meaningful only for Subscription licenses.
Check if grace period started for a license.
Getter for grace period end date time in local time.
Getter for grace period end date time in UTC.
How many hours remaining till grace period ends.
Trial duration of current license.
In case trial duration of product changes, this returns the trial duration at time of license issuing.
Getter for max simultaneous license users (devices or instances).
Meaningful only for floating license.
Getter for current floatings slots in use count, including this user (instance).
Meaningful only for Floating license, please query this value only after online license check or registration (for Offline floating).
Getter for timeout of the floating license in minutes.
Getter for floating user (client) or instance id.
Meaningful only for offline floating license.
Getter for license validity period in local time.
Getter for license validity period in UTC.
Getter for license validity period including grace period in local time.
Currently grace period meaningful only for Subscription licenses.
Getter for license validity period including grace period in UTC.
Currently grace period meaningful only for Subscription licenses.
Getter for grace period of the Subscription license in hours.
For other type of licenses or if grace period is not set it returns 0.
Maximum borrowing period in hours.
Meaningful only for floating license.
Getter for license maintenance period in local time.
Getter for license maintenance period in UTC.
Getter for license last check date in local time.
Getter for license last check date in UTC.
Getter for floating license validity end date time in local time zone.
Meaningful only for floating licenses.
Floating license validity end date time in UTC.
Meaningful only for floating licenses.
Getter method license start date.
Getter for license metadata.
|
pure virtual |
Getter method for license feature.
featureCode | Feature code of the feature to get. |
InvalidLicenseFeatureException | If license feature with given code not found |
|
pure virtual |
Getter for list of license features associated with the license.
|
pure virtual |
Getter for list of custom fields associated with the license.
|
pure virtual |
Returns user data stored within license object.
Getter for user data by given key.
key | Key of data field to search. |
|
pure virtual |
Adds user data to the license object. This method allows you to store custom data securely inside license file.
data | Key/value entry to be saved. |
saveLicense | Optional parameter indicating whether license should be saved to the file after modification. |
To correctly store strings that contain Unicode characters, make sure the string is encoded in UTF-8,
when creating CustomField, for example: std::wstring_convert<std::codecvt_utf8<wchar_t>>().to_bytes( L"示例文本" )
|
pure virtual |
Removes user data from the license.
key | Key of data field that should be removed, if key is empty this method clears entire user data. |
saveLicense | Optional parameter indicating whether license should be saved to the file after modification. |
Returns license current total consumption.
Meaningful only for Consumption license type.
Returns license maximum consumption.
Meaningful only for Consumption license type.
Returns maximum overage allowed for the license.
Meaningful only for Consumption license type, returns maximum possible value in case of unlimited overages.
Checks if overage is allowed for Consumption license.
Meaningful only for Consumption license type.
Checks if unlimited consumption is allowed for Consumption license.
Meaningful only for Consumption license type.
|
pure virtual |
Returns period of time after which consumption is reset.
Meaningful only for Consumption license type
Checks if consumption reset is allowed for Consumption license.
Meaningful only for Consumption license type
How many times license already been activated.
How many times license can be activated.
How many times license has been transferred between devices.
Maximum number of allowed license transfers between devices.
Checks if license can be transferred between devices.
Checks if the license allows only limited number of transfers between devices.
Returns auto release flag. Meaningful only for floating license.
By default this flag is true for floating license.
Sets auto release flag. Meaningful only for floating license.
autoRelease | Indicates whether SDK should automatically release floating license in the destructor. |
|
pure virtual |
Increase or decrease license consumption by given value.
value | Consumption value to be added, note it can be negative, so you can decrease consumption. |
saveLicense | Controls whether license should be saved to file. |
NotEnoughConsumptionException | If license run out of resource. |
LicenseSpringException | If license is not of Consumption type. |
|
pure virtual |
Increase or decrease feature consumption by given value.
featureCode | Feature code. |
value | Consumption value to be added, note it can be negative, so you can decrease consumption. |
saveLicense | Controls whether license should be saved to file. |
NotEnoughConsumptionException | If license run out of resource. |
LicenseSpringException | If license is not of Consumption type. |
Compare system date time with license validity date time.
This method also returns true if floating period expired for floating license.
Compare system date time with maintenance period time.
How many days remaining till license expires.
For Subscription license it also counts grace period if set.
Almost the same as UTC counterpart, but days counter will be changed on local midnight.
For Subscription license it also counts grace period if set.
How many days remaining till end of maintenance days.
How many days passed from last online check.
Check license local without connection to the backend.
LicenseStateException | In case license disabled, inactive or expired |
FloatingTimeoutExpiredException | In case floating period expired |
ProductMismatchException | In case license does not belong to configured product |
DeviceNotLicensedException | In case license does not belong to current computer |
VMIsNotAllowedException | If currently running on VM but it is not allowed |
ClockTamperedException | Detected cheating with system clock |
Sends deactivate license request to the backend.
removeLocalData | If true this method will remove local license file and folders created by the SDK in other words setting this param true is equivalent to call LicenseManager::clearLocalStorage after deactivation. |
LicenseNotFoundException | In case provided license was not found, for example removed by admin using the platform or management API) |
LicenseStateException | In case license is disabled or already inactive |
DeviceNotLicensedException | In case license does not belong to current computer |
DeviceBlacklistedException | If device has been blacklisted by product manager |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
LicenseServerException | In case of internal server error, the backend returned http error code >= 500 |
UnknownLicenseSpringException | In rare case if something went wrong, please contact support |
|
pure virtual |
Change password for user based license.
password | Old password for user. |
newPassword | New password to change to. |
|
pure virtual |
Online license check, sync the license with the backend, throws exceptions in case of errors.
filter | Optional, you can filter install files by environment and channel. |
includeExpiredFeatures | Optional, when set to true, the license check includes expired license features. |
LicenseStateException | In case license disabled, was reset or expired |
DeviceNotLicensedException | In case license does not belong to current computer |
DeviceBlacklistedException | If device has been blacklisted by product manager (for Floating license) |
MaxFloatingReachedException | If no more floating licenses are available |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
LicenseServerException | In case of internal server error |
UnknownLicenseSpringException | In rare case if something went wrong, please contact support |
Sync Consumption license with the server.
requestOverage | Optional argument that allows to request consumption overage. If argument value is negative (default) this means do nothing, if value is 0 it means disable consumption overage. If value is positive it means allow overage and set max overage to provided value. |
NotEnoughConsumptionException | If consumption license run out of resource |
DeviceBlacklistedException | If device has been blacklisted by product manager (for Floating license) |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
LicenseServerException | In case of internal server error |
SignatureMismatchException | In case signature returned by LicenseSpring server is not valid |
UnknownLicenseSpringException | In rare case if something went wrong, please contact support |
|
pure virtual |
Sync Consumption Feature(s) with the backend, if code not provided sync all consumption features.
featureCode | Code of the license feature that need to be synchronized. Pass empty string to sync all consumption features (default). |
NotEnoughConsumptionException | If consumption license feature run out of resource |
InvalidLicenseFeatureException | If license feature with given code not found or not of consumption type |
DeviceBlacklistedException | If device has been blacklisted by product manager (for Floating license) |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
LicenseServerException | In case of internal server error |
SignatureMismatchException | In case signature returned by LicenseSpring server is not valid |
UnknownLicenseSpringException | In rare case if something went wrong, please contact support |
|
pure virtual |
Add new or update existing device variable to license daata.
Variable will be stored in local license, in order to send device variables to the backend see License::sendDeviceVariables.
To correctly send strings that contain Unicode characters, make sure the string is encoded in UTF-8,
for example: std::wstring_convert<std::codecvt_utf8<wchar_t>>().to_bytes( L"示例文本" )
name | Device variable name |
value | Device variable value |
saveLicense | Optional parameter indicating whether license should be saved localy after modification |
|
pure virtual |
Add new or update existing device variable to license daata.
Variable will be stored in local license, in order to send device variables to the backend see License::sendDeviceVariables
variable | Device variable |
saveLicense | Optional parameter indicating whether license should be saved localy after modification |
|
pure virtual |
Add new or update existing device variables to license daata.
Variables will be stored in local license
variables | Device variables |
Send current device variables list to the backend (see device variables on the platform)
This method does nothing if local license does not have any variables.
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
UnknownLicenseSpringException | In rare case if something went wrong |
|
pure virtual |
Get device variables from the local license or from the backend.
This method does not throw exceptions if you getting variables list from local license or during grace period.
getFromBackend | Indicates if you want to request device variables list from local license or backend |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
UnknownLicenseSpringException | In rare case if something went wrong |
|
pure virtual |
Get device variable by name.
Returns empty device variable if the variable does not exist
|
pure virtual |
Get device variable value by name.
name | Device variable name |
|
pure virtual |
Setup and run license watchdog, a background thread which periodically checks the license.
This is especially useful for floating licenses, but can be used for any.
Provided callback will be called in case of errors.
Timeout in minutes, 0 means use default (for Floating license it's floatingTimeout, for others - 1 hour).
WatchdogException | If cannot start watchdog thread. |
Resume background thread, you can call this within your callback in order to resume periodic license checks (registrations).
WatchdogException | If cannot start watchdog thread. |
Stops license watchdog background thread.
This method does not revoke floating license, just stops the watchdog.
|
pure virtual |
Setup and run feature watchdog, a background thread which periodically checks floating license features.
Useful only for floating features. Provided callback will be called in case of errors.
Timeout in minutes, 0 means use smallest floating timeout between all currently active floating features.
WatchdogException | If cannot start watchdog thread. |
Resume background thread, you can call this within your callback in order to resume periodic feature checks (registrations).
WatchdogException | If cannot start watchdog thread. |
Stops feature watchdog background thread.
This method does not release the floating feature, just stops the watchdog.
Register floating license using floatingClientId.
In order to keep floating license alive you should check in (register) it periodically. This is equivalent to check license online See also License::setupLicenseWatchdog. Alternatively you can register floating license by calling License::check.
MaxFloatingReachedException | If no more floating licenses are available |
|
pure virtual |
Revoke floating license, typically should be called at the end of app execution.
This API call will also release (return) borrowed license.
LicenseStateException | If license is invalid, disabled or expired |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
LicenseServerException | In case of internal server error |
UnknownLicenseSpringException | In rare case if something went wrong, please contact support |
Borrow floating license for provided time interval.
Meaningful only for floating licenses.
If borrowing succeeded watchdog (if set) will be stopped and license auto release flag will be set to false. During borrow period there is no need to register floating license to keep it alive.
hours | Count of hours from now you want borrow license for. |
days | Count of days from now you want borrow license for. |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
BorrowLicenseException | If borrowing is not allowed or provided borrowing period is bigger than max. |
|
pure virtual |
Borrow floating license till provided end date time.
Meaningful only for floating licenses.
If borrowing succeeded watchdog (if set) will be stopped and license auto release flag will be set to false.
borrowEndDateTime | Borrow end date time in UTC in format "%Y-%m-%dT%H:%M:%SZ", for example "2022-05-28T15:30:00Z" If it's empty the license will be borrowed for max possible period. |
NoInternetException | If cannot reach the server |
NetworkTimeoutException | In case of network timeout |
BorrowLicenseException | If borrowing is not allowed or provided borrowing period is bigger than max. |
|
pure virtual |
Creates offline deactivation file request.
deactivationRequestFile | Deactivation request file path, empty means use default path (Desktop) |
LocalLicenseException | Thrown if could not read license file or if local license corrupted |
|
pure virtual |
Update license data accordingly to provided file.
path | Update file path |
resetConsumption | False by default, set to true to reset consumption. |
LocalLicenseException | Thrown if could not read license file or if local license corrupted. |
SignatureMismatchException | Thrown if license signature is not valid. |
ProductMismatchException | If license product code does not correspond to configuration product code |
DeviceNotLicensedException | If license refresh file does not correspond to current device. |
Unlinks license from cuurent device ID.
Checks if license belongs to this device and deactivates it. May throw exceptions same as deactivate method.
ProductMismatchException | If license product code does not correspond to configuration product code |
DeviceNotLicensedException | If license does not correspond to current device. |
|
pure virtual |
Get air gap Deactivation code.
initializationCode | Code received from the air gap activation portal. |
|
pure virtual |
Verify Confirmation code and deactivate air gap license.
confirmationCode | Code received from the air gap activation portal. |
AirGapActivationException | In case confirmation code from the air gap activation portal is invalid. |
|
pure virtual |
Checks if license belongs to this DeviceIDAlgorithm.
deviceIDAlgorithm | DeviceIDAlgorithm value |
Checks if license belongs to any of the DeviceIDAlgorithm values.
|
pure virtual |
Register a floating feature and occupy a floating slot.
featureCode | Feature code of the feature to register |
addToWatchdog | True by default, set to false to avoid adding floating feature to watchdog |
InvalidLicenseFeatureCodeException | If feature code is not found on license |
|
pure virtual |
Release a floating feature and free a floating slot.
featureCode | Feature code of the feature to register |
InvalidLicenseFeatureCodeException | If feature code is not found on license |
FeatureNotFloatingException | If releasing a device on a non-floating license feature |
FloatingFeatureDeviceNotInUseException | If device was never used to check a license feature |