public abstract class AbstractLicenseLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.io.Resource |
licenseFile
The location of the license file to check.
|
protected String |
licenseName
Name of the license file.
|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper
Jackson
ObjectMapper used to read from the license file. |
protected String |
privateKeyName
Name of the private publicKeyContent file.
|
protected char[] |
privateKeyPassword
Passphrase for the PGP Private Key.
|
protected String |
publicKeyName
Name of the public publicKeyContent file.
|
| Constructor and Description |
|---|
AbstractLicenseLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected License |
decryptLicense()
Reads the license file and decrypts the content.
|
protected byte[] |
readPublicKey()
Reads the license file and returns the content of the public key.
|
void |
setLicenseFile(org.springframework.core.io.Resource licenseFile) |
void |
setLicenseName(String licenseName) |
void |
setPrivateKeyName(String privateKeyName) |
void |
setPrivateKeyPassword(char[] privateKeyPassword) |
void |
setPublicKeyName(String publicKeyName) |
protected org.springframework.core.io.Resource licenseFile
protected String licenseName
protected String privateKeyName
protected char[] privateKeyPassword
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
ObjectMapper used to read from the license file.protected String publicKeyName
public void setLicenseFile(org.springframework.core.io.Resource licenseFile)
public void setLicenseName(String licenseName)
public void setPrivateKeyName(String privateKeyName)
public void setPrivateKeyPassword(char[] privateKeyPassword)
public void setPublicKeyName(String publicKeyName)
protected License decryptLicense() throws Exception
Exception - if the license file can't be read or decryptedprotected byte[] readPublicKey()
throws IOException
IOException - if the file can't be readCopyright © 2019 CrafterCMS. All rights reserved.