com.saxonica.config
Class Verifier

java.lang.Object
  extended by com.saxonica.config.Verifier

public class Verifier
extends Object

A helper class for EnterpriseConfiguration that handles license keys as issued for the Java platform. From Saxon 9.2 the same license keys are also used on the .NET platform, though the option of using older .NET license keys is retained for the time being.


Field Summary
protected  Properties features
           
 
Constructor Summary
Verifier()
           
 
Method Summary
protected  int daysLeft()
          It returns how many days are left for the license.
 void displayLicenseMessage(boolean tracing)
          Display a message about the license status
 String getFeature(String name, boolean tracing)
          This method is called to get the feature of the license.
 void loadLicense(boolean tracing)
           
 void supplyLicenseKey(BufferedReader reader)
          This method allows the contents of a license key to be supplied programmatically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

protected Properties features
Constructor Detail

Verifier

public Verifier()
Method Detail

daysLeft

protected int daysLeft()
It returns how many days are left for the license. The value 0 is valid, it may indicate a never expire license.

Returns:
how many days are left for the license.

getFeature

public String getFeature(String name,
                         boolean tracing)
This method is called to get the feature of the license.

Parameters:
name - the name of the required feature
Returns:
the feature value of the license.

displayLicenseMessage

public void displayLicenseMessage(boolean tracing)
Display a message about the license status


loadLicense

public void loadLicense(boolean tracing)

supplyLicenseKey

public void supplyLicenseKey(BufferedReader reader)
This method allows the contents of a license key to be supplied programmatically. This must be a license file as issued to authorized OEM distributors of Saxon-EE.

Parameters:
reader - A reader that will be used to read the contents of the license file (for example, a StringReader)
Throws:
IllegalArgumentException - if the key supplied is not a valid OEM license key


Copyright (c) Saxonica Limited. All rights reserved.