public class RsaLicenseCreator extends Object implements ILicenseCreator
| Constructor and Description |
|---|
RsaLicenseCreator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createLicenseKey(ILicenseContext context,
ILicense license)
Generates a key from the given license.
|
protected byte[] |
encrypt(ILicenseContext context,
byte[] bytes)
Encrypts the given bytes.
|
public String createLicenseKey(ILicenseContext context, ILicense license)
createLicenseKey in interface ILicenseCreatorcontext - the licensing context.license - the license to be created.protected byte[] encrypt(ILicenseContext context, byte[] bytes) throws GeneralSecurityException, IOException
bytes - the plain bytesEncryptionExceptionGeneralSecurityExceptionIOExceptionCopyright © 2014. All rights reserved.