Class License

java.lang.Object
io.keikai.axyra.sheets.License

public final class License extends Object
Process-global licensing facade.

Licensing is a per-deployment fact, not a per-workbook one: a single license state is shared by every Workbook in the JVM. Install a token with Workbook.setLicense(byte[]) and inspect the state with Workbook.licenseStatus() or the helpers here.

Enforcement depends on the build. Distributed native libraries enforce unconditionally; development builds only when the AXYRA_LICENSE_ENFORCE=1 environment variable or the axyra.license.enforce=1 system property is set. An unlicensed engine still produces complete output — evaluation mode watermarks it and applies per-execution limits; it never drops data.

When a key is put in force the engine prints the key's customer console message to standard error once per process, and, from 30 days before the key's end, a once-per-process expiry warning.

  • Method Details

    • status

      public static LicenseInfo status()
      Returns the current licensing status of this process. Same as Workbook.licenseStatus().
      Returns:
      a snapshot; it does not follow a later license change
    • isFeatureEnabled

      public static boolean isFeatureEnabled(String feature)
      Returns whether the current license enables feature. Use this to guard premium calls in SDK code. An unlicensed, expired or invalid state enables nothing; a licensed feature list containing "*" enables everything.
      Parameters:
      feature - the feature flag name, as listed in LicenseInfo.features()