public interface LicenseConsumerManager extends ContextProvider<LicenseConsumerContext>, LicenseParametersProvider, LicenseSubjectProvider
This interface lacks a method to preview the license bean which is encoded
in a license key.
However, you can work around this constraint by using a
license consumer context
to configure a license consumer manager which uses a transient
MemoryStore instead of a persistent
store - see LicenseConsumerContext.ManagerBuilder.storeIn(net.java.truelicense.core.io.Store).
Once configured, you can install the license key to
the transient memory store and view its encoded license
bean.
| Modifier and Type | Method and Description |
|---|---|
License |
install(Source source)
Installs the license key from the given source and returns an
unvalidated duplicate of its encoded license bean.
|
void |
uninstall()
Uninstalls the installed license key.
|
void |
verify()
Verifies the license bean which is encoded in the installed license key.
|
License |
view()
Returns an unvalidated duplicate of the license bean which is encoded in
the installed license key.
|
contextparameterssubjectLicense install(Source source) throws LicenseManagementException
verify(), this operation does not validate the license
bean.
This enables the caller to obtain a duplicate of the license bean even
if its validation would fail, e.g. if the license has expired.
Note that this is a change of the behavior from versions prior to
TrueLicense 2.4 where license validation was mandatory.
Calling this operation performs an initial authorization check.
source - the source for loading the license key.LicenseManagementExceptionvoid uninstall()
throws LicenseManagementException
Calling this operation performs an initial authorization check.
LicenseManagementExceptionvoid verify()
throws LicenseManagementException
Calling this operation performs an initial authorization check.
LicenseValidationException - if validating the license bean fails,
e.g. if the license has expired.LicenseManagementExceptionLicense view() throws LicenseManagementException
verify(), this operation does not validate the
license bean.
This enables the caller to obtain a duplicate of the license bean even
if its validation would fail, e.g. if the license has expired.
Calling this operation performs an initial authorization check.
LicenseManagementExceptionCopyright © 2005–2017 Schlichtherle IT Services. All rights reserved.