public abstract class AbstractLicenseKeyValidator extends Object implements ILicenseKeyValidator
Modifier and Type | Field and Description |
---|---|
protected DateWorker |
dateWorker |
Constructor and Description |
---|
AbstractLicenseKeyValidator(CertificateWorker certificateWorker) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
afterValidLicenseLoaded(LicenseKeyLicensee licenseKeyLicensee) |
protected abstract void |
beforeValidLicenseLoaded() |
void |
checkLicense(LicenseKeyProduct product) |
protected abstract void |
checkProductCompatibility(LicenseKeyProduct product,
LicenseKeyLicensee licensee) |
protected abstract void |
compareLicenseeInfo(LicenseKeyLicensee loadingLicensee,
LicenseKeyLicensee loadedLicensee) |
protected void |
compareLicenseInfoEntry(String expectedString,
String loadedString) |
protected abstract LicenseKeyLicensee |
extractLicensee(Element licenseElement) |
protected abstract String |
formLicenseeSignatureString(LicenseKeyLicensee licensee) |
protected abstract String |
formProductSignature(LicenseKeyProduct product,
LicenseKeyLicensee licensee) |
String[] |
getLicenseeInfo() |
protected abstract String[] |
getLicenseeInfo(LicenseKeyLicensee loadedLicensee,
boolean validLicenseeWasLoaded,
boolean loadedLicenseExpired) |
void |
loadLicense(Element licenseKeyRoot)
Load and Validate the license file represented by passed DOM tree.
|
void |
unloadLicense() |
protected DateWorker dateWorker
public AbstractLicenseKeyValidator(CertificateWorker certificateWorker)
public void loadLicense(Element licenseKeyRoot) throws LicenseKeyException
ILicenseKeyValidator
loadLicense
in interface ILicenseKeyValidator
licenseKeyRoot
- root node of the license key file representationLicenseKeyException
public void checkLicense(LicenseKeyProduct product) throws LicenseKeyException
checkLicense
in interface ILicenseKeyValidator
LicenseKeyException
public void unloadLicense()
unloadLicense
in interface ILicenseKeyValidator
public String[] getLicenseeInfo() throws LicenseKeyException
getLicenseeInfo
in interface ILicenseKeyValidator
LicenseKeyException
protected abstract String[] getLicenseeInfo(LicenseKeyLicensee loadedLicensee, boolean validLicenseeWasLoaded, boolean loadedLicenseExpired)
protected abstract void compareLicenseeInfo(LicenseKeyLicensee loadingLicensee, LicenseKeyLicensee loadedLicensee)
protected abstract void beforeValidLicenseLoaded()
protected abstract void afterValidLicenseLoaded(LicenseKeyLicensee licenseKeyLicensee)
protected abstract LicenseKeyLicensee extractLicensee(Element licenseElement)
protected abstract String formLicenseeSignatureString(LicenseKeyLicensee licensee)
protected abstract String formProductSignature(LicenseKeyProduct product, LicenseKeyLicensee licensee)
protected abstract void checkProductCompatibility(LicenseKeyProduct product, LicenseKeyLicensee licensee)
Copyright © 2018. All rights reserved.