OTX-Runtime for Java  
Licensing

The OTX-Runtime API is equipped with a simple, offline licensing mechanism. To use the API a license key must be set by the user, see SetLicenseKey method. Without a valid license key no RuntimeManager can be created. The license key has the format "XXXX-XXXX-XXXX-XXXX-XXXX". The license key contains the following informations:

  1. LicenseId The license ID is a unique number that identifies the license owner.
  2. ProductId The product ID is a unique number that identifies the product.
  3. ExpirationDate (Optional) The optional expiration date can be used for time limited licenses, e.g. evaluation license. After the expiration date expires, no RuntimeManager can be created

Important: The software is copyrighted and shall not be used without a valid license key!

Code Example

The following pseudo code shows how the license manager can be used.

// Pseudo-Code example to use license manager
// ==========================================
// Please note that the exact syntax of C++, DotNet and Java is different!
void main()
{
// Release the license manager
OpenTestSystem.Otx.Runtime.Api.License.LicenseManager.SetLicenseKey("XXXXX-XXXXX-XXXXX-XXXXX-XXXXX");
try
{
// If no valid license key was set, no RuntimeManager can be created and an InvalidLicenseException is thrown.
IRuntimeManager runtimeManager = RuntimeManagerFactory.CreateSocketRuntimeManager(8889, 8888);
// ...
}
catch (Exception e)
{
throw new Exception(e);
}
}
Class to manage the OTX-Runtime API licenses.
Definition: LicenseManager.java:9
static void SetLicenseKey(String licenseKey)
Sets a valid license key to release the API.
Definition: LicenseManager.java:23
Package containing all objects related to licensing.
Definition: IpcLicenseCheckerBase.java:1
Package containing the programming interface for browsing and execution of OTX procedures in own appl...
Definition: ApiConstants.java:1
Package containing all objects for browsing and execution of OTX procedures.
Definition: opentestsystem.otx.runtime2.api/src/main/java/opentestsystem/otx/runtime/package-info.java:4
Package containing all objects which are standardized according to ISO 13209 (OTX)
Package containing all objects related to testing inside automotive industry.