|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.tools.CvalChecker
public final class CvalChecker
This class is able to validate the vaadin CVAL license. It reads the developer license file and asks the server to validate the licenseKey. If the license is invalid it throws an exception with the information about the problem and the server response.
| Nested Class Summary | |
|---|---|
static class |
CvalChecker.CvalInfo
|
static class |
CvalChecker.CvalServer
|
static class |
CvalChecker.InvalidCvalException
Exception thrown when the user does not have a valid cval license. |
static class |
CvalChecker.UnreachableCvalServerException
Exception thrown when the license server is unreachable |
| Field Summary | |
|---|---|
static java.lang.String |
LINE
|
| Constructor Summary | |
|---|---|
CvalChecker()
The constructor. |
|
| Method Summary | |
|---|---|
CvalChecker.CvalInfo |
validateProduct(java.lang.String productName,
java.lang.String productVersion,
java.lang.String productTitle)
Validate whether there is a valid license key for a product. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LINE
| Constructor Detail |
|---|
public CvalChecker()
| Method Detail |
|---|
public CvalChecker.CvalInfo validateProduct(java.lang.String productName,
java.lang.String productVersion,
java.lang.String productTitle)
throws CvalChecker.InvalidCvalException,
CvalChecker.UnreachableCvalServerException
productName - for example vaadin-touchkitproductVersion - for instance 4.0.1
CvalChecker.InvalidCvalException - when there is no a valid license for the product
CvalChecker.UnreachableCvalServerException - when we have license key but server is unreachable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||