public final class LicenseChecker extends Object
This class serves as the default entry point of the license check functionality.
Constructor and Description |
---|
LicenseChecker(org.springframework.core.io.Resource licenseResource) |
Modifier and Type | Method and Description |
---|---|
com.edorasware.commons.core.license.License.ProductLicense |
check(LicenseContext context)
Returns the matching product license for the given license resource and context.
|
String |
checkAndReturnLicenseSummary(LicenseContext context)
Checks the license context given and returns the valid license summary.
|
com.edorasware.commons.core.license.License |
getLicense()
Returns the license against which validation takes place.
|
public LicenseChecker(org.springframework.core.io.Resource licenseResource)
public com.edorasware.commons.core.license.License getLicense()
Returns the license against which validation takes place.
public com.edorasware.commons.core.license.License.ProductLicense check(LicenseContext context)
Returns the matching product license for the given license resource and context. This implementation handles different failure scenarios, like forged licenses, expired test licenses, expired production licenses, etc.
context
- the license context to checkpublic String checkAndReturnLicenseSummary(LicenseContext context)
Checks the license context given and returns the valid license summary.
context
- the license context to checkCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.