@groovy.util.logging.Log(value: LOGGER) class Validator extends java.lang.Object
Validator for validating licenses
| Modifiers | Name | Description |
|---|---|---|
class |
Validator.1 |
| Modifiers | Name | Description |
|---|---|---|
static java.lang.Object |
PRODUCT_SIGNATURE |
| Constructor and description |
|---|
Validator
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static final void |
afterLicenseValidated(groovy.lang.Closure closure)Add listener triggered after license has been validated |
|
static final boolean |
isValidLicense(org.gradle.api.plugins.ExtensionAware project, java.lang.String product)Check if there exists a valid license for this project. |
|
static void |
validateLicense(org.gradle.api.plugins.ExtensionAware project, java.lang.String product)Performs the license validation against the validation server. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add listener triggered after license has been validated
Check if there exists a valid license for this project. Before this is called the validateLicense method must have been called.
project
- the project to check license forproduct
- the product nametrue if license is valid, false otherwise.Performs the license validation against the validation server. This should be called as soon as the license credentials are known. If successful this will product a license file at DevsoapLicenseExtension#licenseFile with the license token.
project
- the projectproduct
- the product name