public class Verifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AVAILABLE |
static java.lang.String |
LICENSE_FILE_NAME |
protected int |
status |
static int |
UNAVAILABLE |
static int |
UNREAD |
Constructor and Description |
---|
Verifier() |
Modifier and Type | Method and Description |
---|---|
void |
disableLicensing() |
void |
displayLicenseMessage(Configuration config)
Display a message about the license status
|
java.lang.String |
getFeature(java.lang.String name,
Configuration config) |
java.lang.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(java.lang.String filename)
Read the primary license file directly from a specified file
|
protected void |
loadPrimaryLicense(Configuration config) |
static void |
main(java.lang.String[] args)
Test program to verify that a license contained in a specific file is valid
|
int |
registerSecondaryLicense(java.lang.String dmk)
Register a license held locally within a compiled stylesheet or schema
|
void |
supplyLicenseKey(java.io.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 java.lang.String LICENSE_FILE_NAME
public void displayLicenseMessage(Configuration config)
config
- the Configurationpublic java.lang.String getFeature(java.lang.String name, Configuration config)
protected final void loadPrimaryLicense(Configuration config)
protected final com.saxonica.config.Verifier.License loadLicense(Configuration config)
public void loadLicense(java.lang.String filename)
filename
- the name or URI of the license filepublic int registerSecondaryLicense(java.lang.String dmk)
dmk
- the binary representation of the local licensepublic void disableLicensing()
public boolean isFeatureAllowedBySecondaryLicense(int license, int feature)
public void supplyLicenseKey(java.io.BufferedReader reader)
reader
- A reader that will be used to read the contents of the license file
(for example, a StringReader)java.lang.IllegalArgumentException
- if the key supplied is not a valid OEM license keypublic java.lang.String getSerialNumber()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Command line arguments. First argument is the filename of the license
file to be tested.java.lang.Exception
- if any failure occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.