LicenseProvider module
- class LicenseProvider.LicenseProvider
Bases:
object- static ClearLicense()
Clear all cached license.
- static LoadLicense()
Load the license provided by current setting to the license cache.
- SetLicense()
- static SetLicenseFileName(licenseFileName: str)
Sets the license file name, which will be used for loading license.
- Parameters:
licenseFileName – License file name.
- static SetLicenseKey(*args, **kwargs)
Provides a license by a license key, which will be used for loading license.
- Parameters:
key – The value of the Key attribute of the element License of you license xml file.
useDevOrTestLicense (could be None) – Indicates whether to apply a development or test license.
- static UnbindDevelopmentOrTestingLicenses() bool
Unbind development or testing licenses. Only development or testing licenses can be unbound, deployment licenses cannot be unbound. The approach to lifting development or testing licenses does not allow frequent invocation by the same machine code, mandating a two-hour wait period before it can be invoked again.
- Returns:
Returns true if the unbinding operation was successful; otherwise, false.
