Class LicenseFileProvider
java.lang.Object
com.aquima.interactions.ds.license.LicenseFileProvider
- All Implemented Interfaces:
ILicenseProvider
- Direct Known Subclasses:
DefaultLicenseProvider
License provider to read a license from a file.
- Since:
- 8.1
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseFileProvider
(IResourceManager resourceManager) Creates a license file provider with a resource manager. -
Method Summary
Modifier and TypeMethodDescriptionThis method return the license key.boolean
This method returns whether there is a license or not, but it does not validate the license.void
setLicenseFile
(String licenseKeyFile) Use this method to set a custom license file location.
-
Constructor Details
-
LicenseFileProvider
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
Use this method to set a custom license file location.- Parameters:
licenseKeyFile
- The name of the resource containing the license key.
-
getLicenseKey
Description copied from interface:ILicenseProvider
This method return the license key.- Specified by:
getLicenseKey
in interfaceILicenseProvider
- 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 interfaceILicenseProvider
- Returns:
- true when there is a license and false otherwise.
-