public class LicenseKey extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PLATFORM
Default name for java platform
|
static String |
FEATURE_ELEMENT_NAME
License file tag name
|
static String |
FEATURE_NAME
License file tag name
|
static String |
FEATURE_VERSION
License file tag name
|
static String |
LICENSE_DATE
License file attribute name
|
static String |
LICENSE_ELEMENT_NAME
License file tag name
|
static String |
LICENSE_ISSUER
License file attribute name
|
static String |
LICENSEE_COMMENT
License file tag name
|
static String |
LICENSEE_COMPANY
License file tag name
|
static String |
LICENSEE_ELEMENT_NAME
License file tag name
|
static String |
LICENSEE_EMAIL
License file tag name
|
static String |
LICENSEE_EXPIRE
License file attribute name
|
static String |
LICENSEE_KEY
License file tag name
|
static String |
LICENSEE_NAME
License file tag name
|
static String |
LICENSEE_PRODUCER_LINE
License file tag name
|
static String |
LICENSEE_SIGNATURE
License file tag name
|
static String |
LICENSEE_SUBTYPE
License file tag name
|
static String |
LICENSEE_TYPE
License file tag name
|
static String |
LICENSEE_VERSION
License file tag name
|
static SimpleDateFormat |
parserSDF
The format used for date Strings
|
static String |
PRODUCT_ELEMENT_NAME
License file tag name
|
static String |
PRODUCT_EXPIRE
License file attribute name
|
static String |
PRODUCT_MAJOR
License file attribute name
|
static String |
PRODUCT_MINOR
License file attribute name
|
static String |
PRODUCT_NAME
License file attribute name
|
static String |
PRODUCT_PLATFORM
License file attribute name
|
static String |
PRODUCT_SIGNATURE
License file tag name
|
static String |
PRODUCT_SUBTYPE
License file attribute name
|
static String |
PRODUCT_TYPE
License file attribute name
|
Constructor and Description |
---|
LicenseKey() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getLicenseeInfo()
Returns information about the Licensee.
|
static String |
getLicenseeSignatureString(LicenseKeyLicensee licensee)
Returns the string that will be used for the licensee signature.
|
static String |
getProductSignatureString(LicenseKeyProduct product,
LicenseKeyLicensee licensee)
Returns the string that will be used for the product signature.
|
static InputStream |
getResourceStream(String key)
Tries to get a resource as stream using different strategies.
|
static boolean |
isTrial()
Check if a trial license is loaded.
|
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)
|
public static final String LICENSE_ELEMENT_NAME
public static final String LICENSE_ISSUER
public static final String LICENSE_DATE
public static final String LICENSEE_ELEMENT_NAME
public static final String LICENSEE_NAME
public static final String LICENSEE_EMAIL
public static final String LICENSEE_COMPANY
public static final String LICENSEE_KEY
public static final String LICENSEE_TYPE
public static final String LICENSEE_SUBTYPE
public static final String LICENSEE_PRODUCER_LINE
public static final String LICENSEE_COMMENT
public static final String LICENSEE_EXPIRE
public static final String LICENSEE_SIGNATURE
public static final String LICENSEE_VERSION
public static final String PRODUCT_ELEMENT_NAME
public static final String PRODUCT_NAME
public static final String PRODUCT_MAJOR
public static final String PRODUCT_MINOR
public static final String PRODUCT_TYPE
public static final String PRODUCT_SUBTYPE
public static final String PRODUCT_EXPIRE
public static final String PRODUCT_PLATFORM
public static final String PRODUCT_SIGNATURE
public static final String FEATURE_ELEMENT_NAME
public static final String FEATURE_NAME
public static final String FEATURE_VERSION
public static final String DEFAULT_PLATFORM
public static final SimpleDateFormat parserSDF
public static void loadLicenseFile(InputStream licenseIs) throws LicenseKeyException
licenseIs
- the input stream for reading the license fileLicenseKeyException
public static void loadLicenseFile(InputStream[] licenseIs) throws LicenseKeyException
licenseIs
- the input streams for reading the license filesLicenseKeyException
public static void loadLicenseFile(String pathToLicFile) throws LicenseKeyException
pathToLicFile
- the path to the license fileLicenseKeyException
public static void loadLicenseFile(String[] files) throws LicenseKeyException
files
- the path to the license filesLicenseKeyException
public static InputStream getResourceStream(String key)
key
- the path to the resourcepublic static String[] getLicenseeInfo()
public static boolean isTrial()
public static void scheduledCheck(LicenseKeyProduct product)
product
- public static String getLicenseeSignatureString(LicenseKeyLicensee licensee)
public static String getProductSignatureString(LicenseKeyProduct product, LicenseKeyLicensee licensee)
Copyright © 2017. All rights reserved.