public class LicenseChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LicenseChecker.Callback |
| Constructor and Description |
|---|
LicenseChecker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkLicense(String productName,
String productVersion)
Deprecated.
|
static void |
checkLicense(String productName,
String productVersion,
BuildType buildType)
Checks the license for the given product version.
|
static void |
checkLicense(String productName,
String productVersion,
BuildType buildType,
java.util.function.Consumer<String> noKeyUrlHandler)
Checks the license for the given product version.
|
static void |
checkLicense(String productName,
String productVersion,
BuildType buildType,
java.util.function.Consumer<String> noKeyUrlHandler,
int timeoutKeyUrlHandler)
Checks the license for the given product version.
|
static void |
checkLicense(String productName,
String productVersion,
BuildType buildType,
java.util.function.Consumer<String> noKeyUrlHandler,
String machineId,
ProKey proKey,
OfflineKey offlineKey)
Checks the license for the given pro key and product version.
|
static void |
checkLicense(String productName,
String productVersion,
java.util.function.Consumer<String> noKeyUrlHandler)
Deprecated.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
BuildType buildType,
LicenseChecker.Callback callback)
Checks the license for the given product version in the background and
invokes the callback when done.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
BuildType buildType,
LicenseChecker.Callback callback,
java.util.function.Consumer<String> noKeyUrlHandler)
Checks the license for the given product version in the background and
invokes the callback when done.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
BuildType buildType,
LicenseChecker.Callback callback,
java.util.function.Consumer<String> noKeyUrlHandler,
int timeoutKeyUrlHandler)
Checks the license for the given product version in the background and
invokes the callback when done.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
BuildType buildType,
LicenseChecker.Callback callback,
java.util.function.Consumer<String> noKeyUrlHandler,
String machineId,
ProKey proKey,
OfflineKey offlineKey)
Checks the license for the given pro key and product version in the
background and invokes the callback when done.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
LicenseChecker.Callback callback)
Deprecated.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
LicenseChecker.Callback callback,
java.util.function.Consumer<String> noKeyUrlHandler)
Deprecated.
|
static void |
checkLicenseFromStaticBlock(String productName,
String productVersion)
Deprecated.
|
static void |
checkLicenseFromStaticBlock(String productName,
String productVersion,
BuildType buildType)
Checks the license for the given product version from a
static
block. |
static org.slf4j.Logger |
getLogger() |
static void |
setStrictOffline(boolean strictOffline) |
@Deprecated public static void checkLicenseFromStaticBlock(String productName, String productVersion)
checkLicenseFromStaticBlock(String, String, BuildType)public static void checkLicenseFromStaticBlock(String productName, String productVersion, BuildType buildType)
static
block.productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: production or developmentExceptionInInitializerError - if the license check fails@Deprecated public static void checkLicense(String productName, String productVersion)
checkLicense(String, String, BuildType)public static void checkLicense(String productName, String productVersion, BuildType buildType)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productionLicenseException - if the license check failspublic static void checkLicense(String productName, String productVersion, BuildType buildType, java.util.function.Consumer<String> noKeyUrlHandler, String machineId, ProKey proKey, OfflineKey offlineKey)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productionnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL to
download the key file. Used when no key file is avialable.machineId - the identifier of machine which owns pro keyproKey - the pro key to be validatedofflineKey - the offline key to be validatedLicenseException - if the license check failspublic static void checkLicense(String productName, String productVersion, java.util.function.Consumer<String> noKeyUrlHandler)
checkLicense(String, String, BuildType, Consumer)public static void checkLicense(String productName, String productVersion, BuildType buildType, java.util.function.Consumer<String> noKeyUrlHandler)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productionnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL to
download the key file. Used when no key file is avialable.LicenseException - if the license check failspublic static void checkLicense(String productName, String productVersion, BuildType buildType, java.util.function.Consumer<String> noKeyUrlHandler, int timeoutKeyUrlHandler)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productionnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL to
download the key file. Used when no key file is avialable.timeoutKeyUrlHandler - timeout for the key url handlerLicenseException - if the license check fails@Deprecated public static void checkLicenseAsync(String productName, String productVersion, LicenseChecker.Callback callback)
checkLicenseAsync(String, String, BuildType, Callback)public static void checkLicenseAsync(String productName, String productVersion, BuildType buildType, LicenseChecker.Callback callback)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productioncallback - the callback to invoke with the resultpublic static void checkLicenseAsync(String productName, String productVersion, BuildType buildType, LicenseChecker.Callback callback, java.util.function.Consumer<String> noKeyUrlHandler, String machineId, ProKey proKey, OfflineKey offlineKey)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productioncallback - the callback to invoke with the resultnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL to
download the key file. Used when no key file is avialable.machineId - the identifier of machine which owns pro keyproKey - the pro key to be validatedofflineKey - the offline key to be validatedLicenseException - if the license check fails@Deprecated public static void checkLicenseAsync(String productName, String productVersion, LicenseChecker.Callback callback, java.util.function.Consumer<String> noKeyUrlHandler)
checkLicenseAsync(String, String, BuildType, Callback, Consumer)public static void checkLicenseAsync(String productName, String productVersion, BuildType buildType, LicenseChecker.Callback callback, java.util.function.Consumer<String> noKeyUrlHandler)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productioncallback - the callback to invoke with the resultnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL to
download the key file. Used when no key file is avialable.public static void checkLicenseAsync(String productName, String productVersion, BuildType buildType, LicenseChecker.Callback callback, java.util.function.Consumer<String> noKeyUrlHandler, int timeoutKeyUrlHandler)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productioncallback - the callback to invoke with the resultnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL to
download the key file. Used when no key file is avialable.timeoutKeyUrlHandler - timeout for the key url handlerpublic static org.slf4j.Logger getLogger()
public static void setStrictOffline(boolean strictOffline)
Copyright © 2017-2024. All Rights Reserved.