public class DefaultLicenseManagerImpl extends AbstractLicenseLoader implements LicenseManager, org.springframework.context.ApplicationContextAware
LicenseManager.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
appContext |
protected long |
lastModified
The last modified time of the license file.
|
licenseFile, licenseName, objectMapper, privateKeyName, privateKeyPassword, publicKeyNameLIMIT, LOG_PREFIX, LOGGER| Constructor and Description |
|---|
DefaultLicenseManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLicenseFile(boolean publishEvent) |
void |
init() |
void |
loadLicense()
Checks if the license file has changes and is valid.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
decryptLicense, readPublicKey, setLicenseFile, setLicenseName, setPrivateKeyName, setPrivateKeyPassword, setPublicKeyNameprotected long lastModified
protected org.springframework.context.ApplicationContext appContext
protected void checkLicenseFile(boolean publishEvent)
throws Exception
Exceptionpublic void loadLicense()
loadLicense in interface LicenseManagerpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2019 CrafterCMS. All rights reserved.