public class LicenseKey extends Object
ILicenseKeyValidator
and invokes it's corresponding methods.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VALIDATOR |
Constructor and Description |
---|
LicenseKey() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getLicenseeInfo()
Returns information about the Licensee.
|
static String[] |
getLicenseeInfoForVersion(String version)
Returns information about the Licensee.
|
static void |
loadLicenseFile(InputStream licenseIs)
Loads a license file using an InputStream.
|
static void |
loadLicenseFile(InputStream[] licenseIs)
Loads a license files using InputStreams.
|
static void |
loadLicenseFile(String pathToLicFile)
Loads a license file from a path.
|
static void |
loadLicenseFile(String[] files)
Loads license files.
|
static void |
scheduledCheck(LicenseKeyProduct product)
Performs a scheduled license check in a given time interval (LicenseKey.CHECK_INTERVAL)
|
static void |
unloadLicenseForVersion(String version)
Unloads license for specific version of core.
|
static void |
unloadLicenses()
Unload all licenses for all version
|
public static final String DEFAULT_VALIDATOR
public static void loadLicenseFile(InputStream licenseIs) throws LicenseKeyException
licenseIs
- the input stream for reading the license fileLicenseKeyException
- thrown if there's a problem with the license keypublic static void loadLicenseFile(InputStream[] licenseIs) throws LicenseKeyException
licenseIs
- the input streams for reading the license filesLicenseKeyException
- thrown if there's a problem with the license keypublic static void loadLicenseFile(String pathToLicFile) throws LicenseKeyException
pathToLicFile
- the path to the license fileLicenseKeyException
- thrown if there's a problem with the license keypublic static void loadLicenseFile(String[] files) throws LicenseKeyException
files
- the path to the license filesLicenseKeyException
- thrown if there's a problem with the license keypublic static void unloadLicenses()
public static void unloadLicenseForVersion(String version)
version
- the version of core for which license will be unloaded.public static String[] getLicenseeInfo() throws LicenseKeyException
LicenseKeyException
public static String[] getLicenseeInfoForVersion(String version) throws LicenseKeyException
LicenseKeyException
public static void scheduledCheck(LicenseKeyProduct product)
product
- Copyright © 2018. All rights reserved.