| Package | Description |
|---|---|
| net.nicholaswilliams.java.licensing |
| Modifier and Type | Method and Description |
|---|---|
License |
License.Builder.build()
Builds the license based on the criteria in this builder, then returns it.
|
License |
License.clone()
Performs a deep clone of this license and its content and features.
|
License |
LicenseManager.decryptAndVerifyLicense(SignedLicense signedLicense)
This method verifies the signed license object's signature, then decrypts the signed license and returns the
decrypted license.
|
protected static License |
License.deserialize(byte[] data)
Deserializes a serialized license into an actual License object.
|
License |
LicenseManager.getLicense(Object context)
If the license has already been cached for the specified context (account, client, etc.) and the cache has not
become stale (its age has not surpassed the cache time limitation configured for this manager), this returns the
cached license.
|
| Modifier and Type | Method and Description |
|---|---|
String |
DefaultLicenseValidator.getLicenseDescription(License license) |
void |
DefaultLicenseValidator.validateLicense(License license)
Ensures the current date is between the license's good-after and good-before dates (the license
has taken effect and hasn't expired).
|
void |
LicenseValidator.validateLicense(License license)
Validates the license provided and throws an exception if the license is invalid for any reason
(expired, not who it belongs to, etc.).
|
void |
LicenseManager.validateLicense(License license)
This method calls
LicenseValidator.validateLicense(License) on the validator that was provided, if one
was provided. |
Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.