public final class LicenseHandler extends Object implements Serializable
| Constructor and Description |
|---|
LicenseHandler(String privateKey,
String publicKey)
Constructor to construct new license handler with private and public key.
|
LicenseHandler(String privateKey,
String publicKey,
License license)
Constructor to construct new license handler with private, public key and
the license.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose reserved fields.
|
License |
getLicense()
Getter to get the license
|
boolean |
isDateValid()
Checks the license due date property.
|
LicenseHandler |
load(File licenseFile) |
LicenseHandler |
load(InputStream licenseStream) |
LicenseHandler |
load(String fileName) |
void |
save(String fileName) |
void |
save(String fileName,
String description) |
void |
setLicense(License license)
Setter to set the license
|
public LicenseHandler(String privateKey, String publicKey)
privateKey - publicKey - public LicenseHandler load(String fileName) throws LicenseException
LicenseExceptionpublic LicenseHandler load(File licenseFile) throws LicenseException
LicenseExceptionpublic LicenseHandler load(InputStream licenseStream) throws LicenseException
LicenseExceptionpublic void save(String fileName) throws LicenseException
LicenseExceptionpublic void save(String fileName, String description) throws LicenseException
LicenseExceptionpublic License getLicense()
public void setLicense(License license)
license - the license to setpublic boolean isDateValid()
public void dispose()
Copyright © 2017 PAWLIDI.DE. All rights reserved.