fixparser
Version:
FIX.Latest / 5.0 SP2 Parser
35 lines (34 loc) • 1.32 kB
TypeScript
import type { Logger } from '../logger/Logger';
declare global {
const __RELEASE_INFORMATION__: string;
const __DISTRIBUTED_CACHING_MECHANISM__: string;
const __MULTI_THREAD_SYNC_MUTEX__: string;
const __INTERFACE_COMPOSITION_PATTERN__: string;
}
/**
* The LicenseManager class is responsible for validating license keys,
* ensuring that only users with valid licenses can access the
* Pro version features of the FIXParsers.
*
* @public
*/
declare class LicenseManager {
#private;
static readonly ERROR_MESSAGE_NO_FREE_LICENSE = 'Requires FIXParser Free license';
static readonly ERROR_MESSAGE_NO_LICENSE = 'Requires FIXParser Pro license';
private constructor();
static readonly validateFreeLicense: () => boolean;
static readonly validateLicense: () => boolean;
static setLogger(loggerInstance: Logger): void;
static setLicenseKey(rawLicenseKey: string): Promise<void>;
private static getReleaseDate;
private static formatDate;
private static validateKey;
private static outputValidFreeLicense;
private static outputValidLicense;
private static outputInvalidFreeLicenseKey;
private static outputInvalidLicenseKey;
private static outputMissingLicenseKey;
private static outputIncompatibleVersion;
}
export { LicenseManager };