public interface LicenseValidator
DefaultLicenseValidator, that ensures the current date is between the
license's good-after and good-before dates (the license has taken effect and hasn't expired).| Modifier and Type | Method and Description |
|---|---|
void |
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 validateLicense(License license) throws InvalidLicenseException
license - The license to validateInvalidLicenseException - when the license is invalid for any reason; the implementer is required to provide adequate description in this exception to indicate why the license is invalid; extending the exception is encouraged.ExpiredLicenseException - when the license is expired.Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.