public class Verifier extends Object
Modifier and Type | Field and Description |
---|---|
protected Properties |
features |
Constructor and Description |
---|
Verifier() |
Modifier and Type | Method and Description |
---|---|
protected int |
daysLeft()
It returns how many days are left for the license.
|
void |
displayLicenseMessage(Configuration config)
Display a message about the license status
|
String |
getFeature(String name,
Configuration config)
This method is called to get the feature of the license.
|
void |
loadLicense(Configuration config) |
void |
loadLicense(File filename)
Read the license file directly from a specified file
|
static void |
main(String[] args)
Test program to verify that a license contained in a specific file is valid
|
void |
supplyLicenseKey(BufferedReader reader)
This method allows the contents of a license key to be supplied programmatically.
|
protected Properties features
protected int daysLeft()
public String getFeature(String name, Configuration config)
name
- the name of the required featureconfig
- the Saxon Configurationpublic void displayLicenseMessage(Configuration config)
config
- the Configurationpublic void loadLicense(Configuration config)
public void loadLicense(File filename)
filename
- the name of the license filepublic void supplyLicenseKey(BufferedReader reader)
reader
- A reader that will be used to read the contents of the license file
(for example, a StringReader)IllegalArgumentException
- if the key supplied is not a valid OEM license keyCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.