Class StiLicense

java.lang.Object
com.stimulsoft.base.licenses.StiLicense

public class StiLicense extends Object
This class is used for setup licensing of the reporting tool. Copyright Stimulsoft
  • Constructor Details

    • StiLicense

      public StiLicense()
  • Method Details

    • getLicenseKey

      public static StiLicenseKey getLicenseKey()
      Returns:
      the licenseKey
    • setLicenseKey

      public static void setLicenseKey(StiLicenseKey licenseKey)
      Parameters:
      licenseKey - the licenseKey to set
    • getKey

      public static String getKey()
    • setKey

      public static void setKey(String value)
    • setNewLicenseKey

      public static void setNewLicenseKey(String value)
    • isValidLicenseKey

      public static boolean isValidLicenseKey(StiLicenseKey licenseKey)
    • byteArrayToHexString

      public static String byteArrayToHexString(byte[] b)
    • loadFromFile

      public static void loadFromFile(String file) throws FileNotFoundException, IOException
      Loads a license key from the specified file.
      Parameters:
      file - path
      Throws:
      IOException
      FileNotFoundException
    • loadFromStream

      public static void loadFromStream(InputStream stream) throws IOException
      Loads a license key from the specified stream.
      Parameters:
      stream - to license key
      Throws:
      IOException
    • loadFromString

      public static void loadFromString(String licenseKey)
      Loads a license key from the specified string.
      Parameters:
      licenseKey -