public final class LicenseKey
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LicenseKey.Type |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LICENCE
Lite key with 5 concurrent users Expires 1-Feb-2035
|
static java.lang.String |
KEY_DATA_SEPERATOR
the data separator
|
static java.lang.String |
KEY_FILENAME
the file name
|
static int |
KEY_MODULE_CUSTOMISE
the module
|
static java.lang.String |
KEY_TYPE_SEPERATOR
the separator
|
static java.lang.String |
KEY_VERSION
the version
|
static java.lang.String |
LICENSE_KEY_FILE_LOCATION
the location
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkCompanyName(java.lang.String name) |
boolean |
checkDbaseVersion() |
boolean |
checkModule(int modNum) |
static LicenseKey |
createLocalKey(java.lang.String key) |
static LicenseKey |
find() |
java.util.Date |
getExpiryDate() |
static java.io.File |
getKeyFile() |
LicenseKey.Type |
getType() |
int |
getUserLimit() |
static void |
isValidCompanyKeyName(java.lang.String name) |
static void |
setLicenseKey(java.lang.String _licenseKey) |
java.lang.String |
toString() |
public static final java.lang.String KEY_VERSION
public static final java.lang.String KEY_TYPE_SEPERATOR
public static final java.lang.String KEY_DATA_SEPERATOR
public static final java.lang.String KEY_FILENAME
public static final int KEY_MODULE_CUSTOMISE
public static final java.lang.String LICENSE_KEY_FILE_LOCATION
public static final java.lang.String DEFAULT_LICENCE
public static void setLicenseKey(@Nonnull java.lang.String _licenseKey) throws InvalidLicenseKeyException
_licenseKey
- the licenseInvalidLicenseKeyException
public static LicenseKey find() throws InvalidLicenseKeyException
InvalidLicenseKeyException
- invalid license@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in class java.lang.Object
@CheckReturnValue @Nonnull public static LicenseKey createLocalKey(@Nonnull java.lang.String key) throws InvalidLicenseKeyException
key
- The keyInvalidLicenseKeyException
- invalid license@CheckReturnValue public boolean checkCompanyName(@Nonnull java.lang.String name)
name
- @CheckReturnValue public LicenseKey.Type getType()
public int getUserLimit()
public java.util.Date getExpiryDate()
public boolean checkDbaseVersion()
public boolean checkModule(int modNum) throws java.lang.Exception
modNum
- java.lang.Exception
- a serious problempublic static void isValidCompanyKeyName(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
- a serious problempublic static java.io.File getKeyFile() throws InvalidLicenseKeyException
InvalidLicenseKeyException
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.