|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.Validator
public final class Validator
Validator is responsible for reading, decoding and validating a license file.
Field Summary | |
---|---|
static int |
ERROR_READING_FILE
|
static int |
INVALID_LICENSE_KEY
|
static int |
LICENSE_KEY_EXPIRED
|
static int |
VALID_LICENSE_KEY
|
Constructor Summary | |
---|---|
Validator()
|
Method Summary | |
---|---|
java.lang.String |
getApplicationName()
Returns the application name for which this license is valid |
java.util.GregorianCalendar |
getExpirationDate()
Returns the expiration date set in the license, null if the license doesn't expire. |
int |
getMajorVersion()
Returns the major version number of the application for which this license is valid. |
java.lang.String |
getMinorVersion()
Returns the minor version number of the application for which this license is valid |
java.lang.String |
getSerialNumber()
Returns the serial number assigned to the application. |
int |
validateLicense(java.io.File licenseFile)
Reads in the specified license file and validates its contents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VALID_LICENSE_KEY
public static final int ERROR_READING_FILE
public static final int INVALID_LICENSE_KEY
public static final int LICENSE_KEY_EXPIRED
Constructor Detail |
---|
public Validator()
Method Detail |
---|
public int validateLicense(java.io.File licenseFile)
licenseFile
- the license file to be validated
public java.lang.String getApplicationName()
public int getMajorVersion()
public java.lang.String getMinorVersion()
public java.lang.String getSerialNumber()
public java.util.GregorianCalendar getExpirationDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |