Class SoLicenseProperty

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.lock.SoLicenseProperty
All Implemented Interfaces:
SafeDisposable

public class SoLicenseProperty extends Inventor implements 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.
  • 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 call SafeDisposable.dispose() on the object.
      Specified by:
      isDisposable in interface SafeDisposable
      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 interface SafeDisposable
      Overrides:
      dispose in class Inventor
      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

      public String getProductVersion()
      Returns the version of the product for this license.
    • getProductName

      public String getProductName()
      Returns the name of the product for this license.
    • getCheckSum

      public String 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

      public SoLicenseProperty.SbLicenseTypes getLicenseType()
      Gets the product type (RunTime or SDK).
    • getHostID

      public String getHostID()
      Returns the HostID for this license.
    • getInfo

      public String getInfo()
      Returns the info for this license.
    • getExpirationDate

      public String getExpirationDate()
      Returns the expire date of the product for this license.
    • isExpired

      public boolean isExpired()
      Returns true if the product is expired.
    • getNumUsers

      public String getNumUsers()
      Returns the number of users of the product for this license.