Zentitle2Core Library
Last updated
Was this helpful?
Last updated
Was this helpful?
The Java Licensing Client implements bindings to the library's methods, allowing Java applications to leverage the functionality of the C++ Core library using the Java code.
Download the zip package with the Zentitle2Core binaries from the page.
Extract the content from the downloaded zip package. Place the platform-specific binaries from language_bindings/java folder into your project's working directory.
In the example below, the application is targeting MacOS. Thus, only the MacOS binary has been included in the project.
This solution works for all the operating systems, as Java runtime always loads the binary depending on the OS that the application is currently running (.dll
on Windows, .so
on Linux and .dylib
on MacOS).
After the Zentitle2Core binaries have been integrated into the Java application, the following activation options can be used to leverage the functionality implemented in the Core library.
It is not trivial to persist the activation's details into a license file that is hard to tamper and should not work on a different device (or even in a different folder within the same machine). The Zentitle2Core library implements this functionality using low-level code, making the license file encrypted and unusable when copied/moved elsewhere.
Secure storage also helps place the file into the correct system directory, depending on the OS that the application is currently running on. It provides predefined directories USER_DATA
and PUBLIC_DATA
. Depending on the application's licensing model, you can decide which one to use.
The code below will create the ../{USER_DATA Dir}/YourAppName/.license
file for your app.
A is a unique identifier of the device on which the application is being executed. Therefore, it is a good candidate for use as the activation's seat ID.
The Zentitle2Core library implements the logic responsible for encrypting and decrypting the tokens exchanged in the process. Without the Zentitle2Core library, this functionality cannot be used.