public class LicenseGenerator extends Object
| Constructor and Description |
|---|
LicenseGenerator()
Constructor.
|
LicenseGenerator(ILicenseCreator licenseCreator)
Constructor.
|
LicenseGenerator(ILicensingScheme scheme)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createLicenseKey(Class<? extends ILicense> licenseClass,
ILicenseContext context)
Generates a license key using the given license class and context.
|
String |
createLicenseKey(ILicenseContext context)
Generates a key using the given context.
|
String |
createLicenseKey(ILicenseContext context,
ILicense license)
Generates a key from the given license.
|
ILicenseCreator |
getLicenseCreator()
Returns the
licenseCreator. |
public LicenseGenerator()
throws DecryptionException
DecryptionExceptionpublic LicenseGenerator(ILicensingScheme scheme) throws DecryptionException
DecryptionExceptionpublic LicenseGenerator(ILicenseCreator licenseCreator) throws DecryptionException
DecryptionExceptionpublic ILicenseCreator getLicenseCreator()
licenseCreator.public String createLicenseKey(ILicenseContext context)
context - containing all properties for the licensepublic String createLicenseKey(Class<? extends ILicense> licenseClass, ILicenseContext context)
licenseClass - the class to be used for generating the licensecontext - containing all properties for the licensepublic String createLicenseKey(ILicenseContext context, ILicense license)
context - the licnesing contextlicense - the license to be createdCopyright © 2014. All rights reserved.