|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.config.Verifier
public class Verifier
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(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,
Configuration config)
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 |
---|
protected Properties features
Constructor Detail |
---|
public Verifier()
Method Detail |
---|
protected int daysLeft()
public String getFeature(String name, Configuration config)
name
- the name of the required feature
public void displayLicenseMessage(Configuration config)
public void loadLicense(Configuration config)
public void loadLicense(File filename)
filename
- the name of the license filepublic void supplyLicenseKey(BufferedReader reader, Configuration config)
reader
- A reader that will be used to read the contents of the license file
(for example, a StringReader)config
-
IllegalArgumentException
- if the key supplied is not a valid OEM license keypublic static void main(String[] args) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |