Hasp.Config Method
Namespace: Aladdin.Hasp
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
HaspStatus Config(String vendor_code, String config)
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
A HaspStatus status code.
Usage Notes
Call this function before you call the Hasp.Login Method function.
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.