public class Verifier extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AVAILABLE |
static String |
LICENSE_FILE_NAME |
protected int |
status |
static int |
UNAVAILABLE |
static int |
UNREAD |
Constructor and Description |
---|
Verifier() |
Modifier and Type | Method and Description |
---|---|
void |
displayLicenseMessage(Configuration config)
Display a message about the license status
|
String |
getFeature(String name,
Configuration config) |
String |
getSerialNumber()
Get the serial number of the license
|
boolean |
isFeatureAllowedBySecondaryLicense(int license,
int feature) |
protected com.saxonica.config.Verifier.License |
loadLicense(Configuration config) |
void |
loadLicense(File filename)
Read the primary license file directly from a specified file
|
protected void |
loadPrimaryLicense(Configuration config) |
static void |
main(String[] args)
Test program to verify that a license contained in a specific file is valid
|
int |
registerSecondaryLicense(String dmk)
Register a license held locally within a compiled stylesheet or schema
|
void |
supplyLicenseKey(BufferedReader reader)
This method allows the contents of a license key to be supplied programmatically.
|
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
public void displayLicenseMessage(Configuration config)
config
- the Configurationpublic String getFeature(String name, Configuration config)
protected final void loadPrimaryLicense(Configuration config)
protected final com.saxonica.config.Verifier.License loadLicense(Configuration config)
public void loadLicense(File filename)
filename
- the name of the license filepublic int registerSecondaryLicense(String dmk)
dmk
- the binary representation of the local licensepublic boolean isFeatureAllowedBySecondaryLicense(int license, int feature)
public 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.