public class BaseLicenseHandler extends Object implements LicenseCodec, LicenseActivator
| Constructor and Description |
|---|
BaseLicenseHandler(String encryptionKey)
Create a new manager that will generate license keys with the encrypted
using the supplied encryption key and the default check-sum.
|
BaseLicenseHandler(String encryptionKey,
byte cksum)
Create a new manager that will generate license keys with the specified
check-sum and encrypted using the supplied encryption key.
|
| Modifier and Type | Method and Description |
|---|---|
License |
activate(License license)
Activates the specified license.
|
License |
deactivate(License license)
De-activates the specified license.
|
License |
decode(String licKey)
Decodes the specified license key into a license object.
|
String |
encode(License license)
Encodes the specified license data into an external license key.
|
License |
expire(License license)
Sets to expire a specified license.
|
public BaseLicenseHandler(String encryptionKey, byte cksum)
encryptionKey - key for encrypting the license datacksum - consumed and generated license keys must have this
check-sumpublic BaseLicenseHandler(String encryptionKey)
encryptionKey - key for encrypting the license datapublic License activate(License license)
LicenseActivatorLicenseStatus.NEW.activate in interface LicenseActivatorlicense - new license issued by the licensing authoritypublic License deactivate(License license)
LicenseActivatorLicenseStatus.NEW or LicenseStatus.ACTIVE.deactivate in interface LicenseActivatorlicense - license issued by the licensing authoritypublic License expire(License license)
LicenseActivatorLicenseStatus.NEW or LicenseStatus.ACTIVE.expire in interface LicenseActivatorlicense - license issued by the licensing authoritypublic License decode(String licKey)
LicenseCodecdecode in interface LicenseCodeclicKey - license keypublic String encode(License license)
LicenseCodecencode in interface LicenseCodeclicense - license dataCopyright © 2014. All Rights Reserved.