public class Verifier extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AVAILABLE |
protected Properties |
features |
static String |
LICENSE_FILE_NAME |
protected int |
status |
static int |
UNAVAILABLE |
static int |
UNREAD |
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.
|
String |
getSerialNumber()
Get the serial number of the license
|
protected 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 status
public static final int UNREAD
public static final int AVAILABLE
public static final int UNAVAILABLE
public static final String LICENSE_FILE_NAME
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 Configurationprotected 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 keypublic String getSerialNumber()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.