com.vaadin.tools
Class CvalChecker

java.lang.Object
  extended by com.vaadin.tools.CvalChecker

public final class CvalChecker
extends java.lang.Object

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.

Since:
7.3

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

LINE

public static final java.lang.String LINE
See Also:
Constant Field Values
Constructor Detail

CvalChecker

public CvalChecker()
The constructor.

Method Detail

validateProduct

public CvalChecker.CvalInfo validateProduct(java.lang.String productName,
                                            java.lang.String productVersion,
                                            java.lang.String productTitle)
                                     throws CvalChecker.InvalidCvalException,
                                            CvalChecker.UnreachableCvalServerException
Validate whether there is a valid license key for a product.

Parameters:
productName - for example vaadin-touchkit
productVersion - for instance 4.0.1
Returns:
CvalInfo Server response or cache response if server is offline
Throws:
CvalChecker.InvalidCvalException - when there is no a valid license for the product
CvalChecker.UnreachableCvalServerException - when we have license key but server is unreachable


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.