public class LicenseChecker
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
static boolean |
loopForever
boolean to indicate whether or not to loop forever.
|
Constructor and Description |
---|
LicenseChecker()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
checkLicenseNow()
This checks the license is valid.
|
static java.lang.String |
decryptKey(java.lang.String key)
Decrypt the key
|
static int |
getLicenseStatus() |
static boolean |
isLicenseValid() |
static boolean |
isLoopForever() |
void |
run()
This thread runs forever to check the Mago License is valid.
|
static void |
setLoopForever(boolean loopForever) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static boolean loopForever
public LicenseChecker() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public static void checkLicenseNow()
public static boolean isLicenseValid()
public static int getLicenseStatus()
public static java.lang.String decryptKey(java.lang.String key)
key
- the encrypted keypublic static boolean isLoopForever()
public static void setLoopForever(boolean loopForever)
loopForever
- the loopForever to setCopyright © 2018 DS Data Systems UK Ltd.