Package com.openinventor.inventor.lock
Class SoLicenseProperty
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.lock.SoLicenseProperty
- All Implemented Interfaces:
SafeDisposable
Class providing information about a licensed product.
This class provides information about a product license, such as the product version or expiration date of the license.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Indicates the type of the license (SDK or RunTime).Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
dispose()
Explicitly call this method to force object to dispose its unmanaged resources.Returns the checksum of this license.int
Gets number of days before expiration for the given product version.Returns the expire date of the product for this license.Returns the HostID for this license.getInfo()
Returns the info for this license.Gets the product type (RunTime or SDK).Returns the number of users of the product for this license.Returns the name of the product for this license.Returns the version of the product for this license.boolean
Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()
on the object.boolean
Returns true if the product is expired.boolean
Returns true if the license is a master password.Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Constructor Details
-
SoLicenseProperty
public SoLicenseProperty()
-
-
Method Details
-
isDisposable
public boolean isDisposable()Description copied from interface:SafeDisposable
Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()
on the object.- Specified by:
isDisposable
in interfaceSafeDisposable
- Returns:
true
if the object can be disposed in a safe manner
-
dispose
public boolean dispose()Description copied from class:Inventor
Explicitly call this method to force object to dispose its unmanaged resources. The object may not be reused in the application code after this call.- Specified by:
dispose
in interfaceSafeDisposable
- Overrides:
dispose
in classInventor
- Returns:
true
if this object native resources were successfully disposed;false
if it was already disposed or no native resources has been registered for this object.
-
isMasterPassword
public boolean isMasterPassword()Returns true if the license is a master password. -
getProductVersion
Returns the version of the product for this license. -
getProductName
Returns the name of the product for this license. -
getCheckSum
Returns the checksum of this license. -
getDaysToExpire
public int getDaysToExpire()Gets number of days before expiration for the given product version. Returns : 0 if license has expired or never expires >0 if license has not expired -1 if license is invalid -
getLicenseType
Gets the product type (RunTime or SDK). -
getHostID
Returns the HostID for this license. -
getInfo
Returns the info for this license. -
getExpirationDate
Returns the expire date of the product for this license. -
isExpired
public boolean isExpired()Returns true if the product is expired. -
getNumUsers
Returns the number of users of the product for this license.
-