Package io.scanbot.sdk.licensing
Class LicenseInfo
java.lang.Object
io.scanbot.sdk.licensing.LicenseInfo
Information about the SDK license.
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseInfo(LicenseStatus status, boolean isValid, String licenseStatusMessage, double expirationTimestamp, String expirationDateString, String errorMessage, boolean onlineLicenseCheckInProgress, String license, double nextOnlineLicenseCheckInMs, List<DeviceDeregistrationError> deviceDeregistationErrors) Constructs LicenseInfo with default parameters.LicenseInfo(LicenseStatus status, boolean isValid, String licenseStatusMessage, double expirationTimestamp, String expirationDateString, String errorMessage, boolean onlineLicenseCheckInProgress, String license, Integer devices, double nextOnlineLicenseCheckInMs, List<DeviceDeregistrationError> deviceDeregistationErrors) Constructs LicenseInfo with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for deviceDeregistationErrors field.Getter for devices field.Getter for errorMessage field.Getter for expirationDateString field.doubleGetter for expirationTimestamp field.Getter for license field.Getter for licenseStatusMessage field.doubleGetter for nextOnlineLicenseCheckInMs field.booleanGetter for onlineLicenseCheckInProgress field.Getter for status field.booleanisValid()Getter for isValid field.
-
Constructor Details
-
LicenseInfo
public LicenseInfo(LicenseStatus status, boolean isValid, String licenseStatusMessage, double expirationTimestamp, String expirationDateString, String errorMessage, boolean onlineLicenseCheckInProgress, String license, Integer devices, double nextOnlineLicenseCheckInMs, List<DeviceDeregistrationError> deviceDeregistationErrors) Constructs LicenseInfo with the given params.- Parameters:
status- License status.isValid- True if the license status corresponds to a valid license.licenseStatusMessage- Message describing the license status.expirationTimestamp- Expiration timestamp of the license or trial period in seconds since the UNIX epoch.expirationDateString- Expiration date of the license or trial period in ISO 8601 date-time format.errorMessage- Additional error message in case of a license error.onlineLicenseCheckInProgress- True if an online license check is in progress.license- The currently active license. May be different from the license used to initialize the SDK if the online license check has completed and the server has sent an updated license.devices- Number of devices the license is valid for, if the license is floating.nextOnlineLicenseCheckInMs- Time in milliseconds until the next online license check will be performed. -1 if no online license check is scheduled.deviceDeregistationErrors- List of errors that occurred during device deregistration. If for some device deregistration completed successfully, it will not be listed here. For each device at most one entry will be present.
-
LicenseInfo
public LicenseInfo(LicenseStatus status, boolean isValid, String licenseStatusMessage, double expirationTimestamp, String expirationDateString, String errorMessage, boolean onlineLicenseCheckInProgress, String license, double nextOnlineLicenseCheckInMs, List<DeviceDeregistrationError> deviceDeregistationErrors) Constructs LicenseInfo with default parameters.- Parameters:
status- License status.isValid- True if the license status corresponds to a valid license.licenseStatusMessage- Message describing the license status.expirationTimestamp- Expiration timestamp of the license or trial period in seconds since the UNIX epoch.expirationDateString- Expiration date of the license or trial period in ISO 8601 date-time format.errorMessage- Additional error message in case of a license error.onlineLicenseCheckInProgress- True if an online license check is in progress.license- The currently active license. May be different from the license used to initialize the SDK if the online license check has completed and the server has sent an updated license.nextOnlineLicenseCheckInMs- Time in milliseconds until the next online license check will be performed. -1 if no online license check is scheduled.deviceDeregistationErrors- List of errors that occurred during device deregistration. If for some device deregistration completed successfully, it will not be listed here. For each device at most one entry will be present.
-
-
Method Details
-
getStatus
Getter for status field. See constructor documentation for more information about the field.- Returns:
- status
-
isValid
public boolean isValid()Getter for isValid field. See constructor documentation for more information about the field.- Returns:
- isValid
-
getLicenseStatusMessage
Getter for licenseStatusMessage field. See constructor documentation for more information about the field.- Returns:
- licenseStatusMessage
-
getExpirationTimestamp
public double getExpirationTimestamp()Getter for expirationTimestamp field. See constructor documentation for more information about the field.- Returns:
- expirationTimestamp
-
getExpirationDateString
Getter for expirationDateString field. See constructor documentation for more information about the field.- Returns:
- expirationDateString
-
getErrorMessage
Getter for errorMessage field. See constructor documentation for more information about the field.- Returns:
- errorMessage
-
getOnlineLicenseCheckInProgress
public boolean getOnlineLicenseCheckInProgress()Getter for onlineLicenseCheckInProgress field. See constructor documentation for more information about the field.- Returns:
- onlineLicenseCheckInProgress
-
getLicense
Getter for license field. See constructor documentation for more information about the field.- Returns:
- license
-
getDevices
Getter for devices field. See constructor documentation for more information about the field.- Returns:
- devices
-
getNextOnlineLicenseCheckInMs
public double getNextOnlineLicenseCheckInMs()Getter for nextOnlineLicenseCheckInMs field. See constructor documentation for more information about the field.- Returns:
- nextOnlineLicenseCheckInMs
-
getDeviceDeregistationErrors
Getter for deviceDeregistationErrors field. See constructor documentation for more information about the field.- Returns:
- deviceDeregistationErrors
-