Package com.stimulsoft.base.licenses
Class StiLicense
java.lang.Object
com.stimulsoft.base.licenses.StiLicense
This class is used for setup licensing of the reporting tool. Copyright Stimulsoft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbyteArrayToHexString(byte[] b) static StringgetKey()static StiLicenseKeystatic booleanisValidLicenseKey(StiLicenseKey licenseKey) static voidloadFromFile(String file) Loads a license key from the specified file.static voidloadFromStream(InputStream stream) Loads a license key from the specified stream.static voidloadFromString(String licenseKey) Loads a license key from the specified string.static voidstatic voidsetLicenseKey(StiLicenseKey licenseKey) static voidsetNewLicenseKey(String value)
-
Constructor Details
-
StiLicense
public StiLicense()
-
-
Method Details
-
getLicenseKey
- Returns:
- the licenseKey
-
setLicenseKey
- Parameters:
licenseKey- the licenseKey to set
-
getKey
-
setKey
-
setNewLicenseKey
-
isValidLicenseKey
-
byteArrayToHexString
-
loadFromFile
Loads a license key from the specified file.- Parameters:
file- path- Throws:
IOExceptionFileNotFoundException
-
loadFromStream
Loads a license key from the specified stream.- Parameters:
stream- to license key- Throws:
IOException
-
loadFromString
Loads a license key from the specified string.- Parameters:
licenseKey-
-