com.stimulsoft.base.licenses
Class StiLicense

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

public class StiLicense
extends java.lang.Object

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


Constructor Summary
StiLicense()
           
 
Method Summary
static java.lang.String byteArrayToHexString(byte[] b)
           
static java.lang.String getKey()
           
static StiLicenseKey getLicenseKey()
           
static void loadFromFile(java.lang.String file)
          Loads a license key from the specified file.
static void loadFromStream(java.io.InputStream stream)
          Loads a license key from the specified stream.
static void loadFromString(java.lang.String licenseKey)
          Loads a license key from the specified string.
static void setKey(java.lang.String value)
           
static void setLicenseKey(StiLicenseKey licenseKey)
           
static void setNewLicenseKey(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
equals, 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 java.lang.String getKey()

setKey

public static void setKey(java.lang.String value)

setNewLicenseKey

public static void setNewLicenseKey(java.lang.String value)

byteArrayToHexString

public static java.lang.String byteArrayToHexString(byte[] b)

loadFromFile

public static void loadFromFile(java.lang.String file)
                         throws java.io.FileNotFoundException,
                                java.io.IOException
Loads a license key from the specified file.

Parameters:
file - path
Throws:
java.io.IOException
java.io.FileNotFoundException

loadFromStream

public static void loadFromStream(java.io.InputStream stream)
                           throws java.io.IOException
Loads a license key from the specified stream.

Parameters:
stream - to license key
Throws:
java.io.IOException

loadFromString

public static void loadFromString(java.lang.String licenseKey)
Loads a license key from the specified string.

Parameters:
licenseKey -