Class LicenseFileProvider

java.lang.Object
com.aquima.interactions.ds.license.LicenseFileProvider
All Implemented Interfaces:
ILicenseProvider
Direct Known Subclasses:
DefaultLicenseProvider

public class LicenseFileProvider extends Object implements ILicenseProvider
License provider to read a license from a file.
Since:
8.1
Author:
Jon van Leuven
  • Constructor Details

    • LicenseFileProvider

      public LicenseFileProvider(IResourceManager resourceManager)
      Creates a license file provider with a resource manager.
      Parameters:
      resourceManager - The resource manager that is used to locate the license file, may not be null.
  • Method Details

    • setLicenseFile

      public void setLicenseFile(String licenseKeyFile)
      Use this method to set a custom license file location.
      Parameters:
      licenseKeyFile - The name of the resource containing the license key.
    • getLicenseKey

      public LicenseKey getLicenseKey()
      Description copied from interface: ILicenseProvider
      This method return the license key.
      Specified by:
      getLicenseKey in interface ILicenseProvider
      Returns:
      LicenseKey The license key or null when no license was found.
    • hasLicenseKey

      public boolean hasLicenseKey()
      Description copied from interface: ILicenseProvider
      This method returns whether there is a license or not, but it does not validate the license.
      Specified by:
      hasLicenseKey in interface ILicenseProvider
      Returns:
      true when there is a license and false otherwise.