config Method

Package: Aladdin

Description

Configures the behavior of the Licensing API for a specific application run-time session.

This function can be used to:

>Specify the identity string to be used to access a cloud license (for identity-based licensing).

>Specify the server certificate for HTTPS communication.

>(Sentinel EMS only) Request the credentials to be used to access a cloud license.

> (Sentinel EMS only) Specify the JWT to be used to access a cloud license.

>(Sentinel EMS only) Configure collection of usage data for Sentinel Data Platform.

Syntax

boolean Aladdin.Hasp.config(String config, String vendor_code)

Parameters

config

Definition of the configuration data in XML format.

For more information, see XML Tags for the HASP_CONFIG Method.

vendor_code Bytes that contain the Vendor Code

Return Values

true/false - indicates success or failure.

Usage Notes

Call this function before you call the login Method.

The configuration defined by the function remains active for the duration of the application run-time session.

The required Vendor Codes are stored in a VendorCodes folder in your system. Without the correct Vendor Code, the method call cannot succeed.

Related Topics

XML Tags for the HASP_CONFIG Method