public class OfflineKeyValidator extends Object
For development, the offline key can be used if it has not expired and the checksum matches the expected for the machine it is run on.
For production, the offline key can also be used if it is a productionOnly key and has not expired.
| Constructor and Description |
|---|
OfflineKeyValidator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isExpired(OfflineKey key) |
static boolean |
validate(Product product,
BuildType buildType,
OfflineKey offlineKey,
String machineId)
Validates that the given offline license is valid and provides access to the
given product.
|
public static boolean isExpired(OfflineKey key)
public static boolean validate(Product product, BuildType buildType, OfflineKey offlineKey, String machineId)
product - the product to validatebuildType - the type of build: production or developmentofflineKey - the offline license keymachineId - the id of the machine where we are runningtrue if the validation succeededRuntimeException - if the validation fails because and invalid offline
key was providedCopyright © 2017-2022. All Rights Reserved.