fingerprint

This commit is contained in:
Anthony Stirling
2024-10-05 17:43:36 +01:00
parent 83e93688ee
commit e660237e28
3 changed files with 56 additions and 6 deletions

View File

@@ -34,15 +34,19 @@ public class LicenseKeyChecker {
}
private void checkLicense() {
log.info(applicationProperties.toString());
log.info(applicationProperties.getEnterpriseEdition().toString());
if (!applicationProperties.getEnterpriseEdition().isEnabled()) {
enterpriseEnbaledResult = false;
} else {
enterpriseEnbaledResult =
licenseService.verifyLicense(
applicationProperties.getEnterpriseEdition().getKey());
if (enterpriseEnbaledResult) {
log.info("License key is valid.");
} else {
log.info("License key is invalid.");
}
}
}
public void updateLicenseKey(String newKey) throws IOException {