Built-In Functions
Built-In Functions for BoxLang+ Core Licensing Module
The bx-plus module provides three built-in functions for comprehensive license management:
License Management Functions
Activate a new BoxLang+ or BoxLang++ license using an email address and license key.
Usage:
result = boxlangLicenseActivate(
email = "[email protected]",
licenseKey = "XXXX-XXXX-XXXX-XXXX",
serverType = "Production"
);Get current license status and detailed information about the active license.
Usage:
licenseInfo = boxlangLicenseInfo();
if ( licenseInfo.isValidLicense ) {
systemOutput( "License active until: " & licenseInfo.expirationDate );
}Refresh an existing license token to extend its validity period.
Usage:
try {
result = boxlangLicenseRefresh();
if ( result.success ) {
systemOutput( "License refreshed successfully" );
}
} catch ( Exception e ) {
systemOutput( "Error: " & e.message );
}Last updated
Was this helpful?
