Upon successful validation, the
LicenseInformation
class provides details about the license,
including its expiration date, number of valid days, the license key, the license type, and its features.
This information can be used to inform customers within your software.
License.getInstance().getLicenseInformation().getExpirationDateTime();
License.getInstance().getLicenseInformation().getLicenseKey();
License.getInstance().getLicenseInformation().getLicenseType();
License.getInstance().getLicenseInformation().getValidDays();
License.getInstance().getLicenseInformation().getFeature("some-feature-name");
License.getInstance().getLicenseInformation().getFeatures();
Upon successful validation, the
LicenseeInformation
class provides details about the license
owner, including their full name, email address, and company.
License.getInstance().getLicenseeInformation().getFullName();
License.getInstance().getLicenseeInformation().getEMail();
License.getInstance().getLicenseeInformation().getCompany();
Client-side device information can be obtained without validation since the License instance collects this
information upon initialization.
License.getInstance().getSystemInformation().getCPUCoreCount();
License.getInstance().getSystemInformation().getDomainName();
License.getInstance().getSystemInformation().getHypervisor();
License.getInstance().getSystemInformation().isVirtual();
License.getInstance().getSystemInformation().isCloud();
License.getInstance().getSystemInformation().getJava();
License.getInstance().getSystemInformation().getOSFamily();
License.getInstance().getSystemInformation().getOSHostName();
License.getInstance().getSystemInformation().getUserName();
This allows you to gather system details that can be utilized during the validation process.
For example, you may choose to license your software based on the CPU core count. First, define a feature,
such as CPUCoreCount=4. Then, during the license validation process, check the detected number of CPU cores.
int detectedCPUCoreCount = License.getInstance().getSystemInformation().getCPUCoreCount();
License.getInstance().getBuilder()
.product("some-hash-value")
.feature("CPUCoreCount", detectedCPUCoreCount, License.FeatureComparator.NUMBER_LESS_THAN_EQUALS)
.build();