com.stimulsoft.base.licenses
Class StiLicense

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

public class StiLicense
extends Object

This class is used for setup licensing of the reporting tool. Copyright Stimulsoft


Constructor Summary
StiLicense()
           
 
Method Summary
static String byteArrayToHexString(byte[] b)
           
static String getKey()
           
static StiLicenseKey getLicenseKey()
           
static void loadFromFile(String file)
          Loads a license key from the specified file.
static void loadFromStream(InputStream stream)
          Loads a license key from the specified stream.
static void loadFromString(String licenseKey)
          Loads a license key from the specified string.
static void setKey(String value)
           
static void setLicenseKey(StiLicenseKey licenseKey)
           
static void setNewLicenseKey(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiLicense

public StiLicense()
Method Detail

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)

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 -


Copyright © 2017 Stimulsoft. All Rights Reserved.