public class CustomLicenseUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATA_ENCODING |
static String |
ENTERPRISE_LICENSE |
static String |
LICENSE_FILE_NAME |
static String |
LICENSE_FILE_NAME_WITH_PUBLIC_KEY |
static String |
MULE_TESTING_MODE |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasToVerifyLicense(String connectorName)
This method will return false if the connector is either running in test-mode or if the execution environment is a Mule Studio instance.
|
static boolean |
isEnterpriseRuntime(String connectorName)
Used to check that we are in Enterprise runtime, not accessible if we run that method in studio or in tests.
|
static boolean |
isEnterpriseRuntime(String connectorName,
String licenseManagementFactoryClassName,
String licenseManagerClassName,
String enterpriseLicenseKeyClassName,
String featureClassName,
String featureSetClassName)
This method introduced as otherwise it was impossible to make unit test for that check.
|
static boolean |
isTestMode()
This method checks a property MULE_TESTING_MODE.
|
static boolean |
validateCustomLicense(String publickeyStr,
String licenseStr,
String serialNo)
This method will return true if the custom license valid for connector.
|
public static final String ENTERPRISE_LICENSE
public static final String LICENSE_FILE_NAME_WITH_PUBLIC_KEY
public static final String LICENSE_FILE_NAME
public static final String DATA_ENCODING
public static final String MULE_TESTING_MODE
public static boolean hasToVerifyLicense(String connectorName)
connectorName
- the connection namepublic static boolean isEnterpriseRuntime(String connectorName)
connectorName
- the connector namepublic static boolean isEnterpriseRuntime(String connectorName, String licenseManagementFactoryClassName, String licenseManagerClassName, String enterpriseLicenseKeyClassName, String featureClassName, String featureSetClassName) throws AS400LicenseException
connectorName
- the connector namelicenseManagementFactoryClassName
- the class name of licenseManagementFactorylicenseManagerClassName
- the class name of licenseManagerenterpriseLicenseKeyClassName
- the class name of enterpriseLicenseKeyfeatureClassName
- the class name of featurefeatureSetClassName
- the class name featureSetAS400LicenseException
- License exceptionpublic static boolean isTestMode()
public static boolean validateCustomLicense(String publickeyStr, String licenseStr, String serialNo)
publickeyStr
- the public keylicenseStr
- the license dataserialNo
- the serial numberCopyright © 2010–2018. All rights reserved.