Inheritance Path. java.lang.Object-> com.itmill.toolkit.service.License
Parameters
applicationClass
Class of the application this license is used for
concurrentUsers
Number if users concurrently using this application
majorVersion
Major version number (for example 4 if version is 4.1.7)
minorVersion
Minor version number (for example 1 if version is 4.1.7)
productName
The name of the product
productEdition
The name of the product edition
Exceptions
LicenseFileHasNotBeenRead
if the license file has not been read
LicenseSignatureIsInvalid
if the license file has been changed or signature is otherwise invalid
InvalidLicenseFile
License if the license file is not of correct XML format
LicenseViolation
com.itmill.toolkit.service.License.LicenseViolation
Check if the license valid for given usage? Checks that the license is valid for specified usage. Throws an exception if there is something wrong with the license or use.
Parameters
true if the license-file has already been read.
Is the license file already been read.
Parameters
is
Input stream where the license file is read from.
Exceptions
SAXException
Error parsing the license file
IOException
Error reading the license file
LicenseFileHasAlreadyBeenRead
License file has already been read.
Read the license-file from input stream. License file can only ne read once, after it has been read it stays.