public class LicenseService extends Object
LicenseLocator
Modifier and Type | Method and Description |
---|---|
static void |
activate(String activationKey)
Activates a license key.
|
static ActivationExecutor |
createActivationExecutor(InputStream licenseContent)
Deprecated.
Rather use
License.read(InputStream) to obtain a License and then request an executor. |
public static void activate(String activationKey) throws ActivationException
LicenseLocator
documentation for details on how the license is located and loaded.activationKey
- the license key to activate.ActivationException
- if the license cannot be loaded, license is invalid or the key is not part of the license.LicenseLocator
@Deprecated public static ActivationExecutor createActivationExecutor(InputStream licenseContent) throws ActivationException
License.read(InputStream)
to obtain a License and then request an executor.licenseContent
- the content of a license.ActivationException
- if the license cannot be read (e.g. content was tampered).